#ifndef _VC4_HDMI_REGS_H_
#define _VC4_HDMI_REGS_H_
#include <linux/pm_runtime.h>
#include "vc4_hdmi.h"
#define VC4_HDMI_PACKET_STRIDE …
enum vc4_hdmi_regs { … };
enum vc4_hdmi_field { … };
struct vc4_hdmi_register { … };
#define _VC4_REG(_base, _reg, _offset) …
#define VC4_HD_REG(reg, offset) …
#define VC4_HDMI_REG(reg, offset) …
#define VC5_CEC_REG(reg, offset) …
#define VC5_CSC_REG(reg, offset) …
#define VC5_DVP_REG(reg, offset) …
#define VC5_PHY_REG(reg, offset) …
#define VC5_RAM_REG(reg, offset) …
#define VC5_RM_REG(reg, offset) …
static const struct vc4_hdmi_register __maybe_unused vc4_hdmi_fields[] = …;
static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi0_fields[] = …;
static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi1_fields[] = …;
static inline
void __iomem *__vc4_hdmi_get_field_base(struct vc4_hdmi *hdmi,
enum vc4_hdmi_regs reg)
{ … }
static inline u32 vc4_hdmi_read(struct vc4_hdmi *hdmi,
enum vc4_hdmi_field reg)
{ … }
#define HDMI_READ(reg) …
static inline void vc4_hdmi_write(struct vc4_hdmi *hdmi,
enum vc4_hdmi_field reg,
u32 value)
{ … }
#define HDMI_WRITE(reg, val) …
#endif