#include "rsnd.h"
struct rsnd_gen { … };
#define rsnd_priv_to_gen(p) …
#define rsnd_reg_name(gen, id) …
struct rsnd_regmap_field_conf { … };
#define RSND_REG_SET(id, offset, _id_offset, n) …
#define RSND_GEN_S_REG(id, offset) …
#define RSND_GEN_M_REG(id, offset, _id_offset) …
static int rsnd_is_accessible_reg(struct rsnd_priv *priv,
struct rsnd_gen *gen, enum rsnd_reg reg)
{ … }
static int rsnd_mod_id_cmd(struct rsnd_mod *mod)
{ … }
u32 rsnd_mod_read(struct rsnd_mod *mod, enum rsnd_reg reg)
{ … }
void rsnd_mod_write(struct rsnd_mod *mod,
enum rsnd_reg reg, u32 data)
{ … }
void rsnd_mod_bset(struct rsnd_mod *mod,
enum rsnd_reg reg, u32 mask, u32 data)
{ … }
phys_addr_t rsnd_gen_get_phy_addr(struct rsnd_priv *priv, int reg_id)
{ … }
#ifdef CONFIG_DEBUG_FS
void __iomem *rsnd_gen_get_base_addr(struct rsnd_priv *priv, int reg_id)
{ … }
#endif
#define rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf) …
static int _rsnd_gen_regmap_init(struct rsnd_priv *priv,
int id_size,
int reg_id,
const char *name,
const struct rsnd_regmap_field_conf *conf,
int conf_size)
{ … }
static const struct rsnd_regmap_field_conf conf_common_ssiu[] = …;
static const struct rsnd_regmap_field_conf conf_common_scu[] = …;
static const struct rsnd_regmap_field_conf conf_common_adg[] = …;
static const struct rsnd_regmap_field_conf conf_common_ssi[] = …;
static int rsnd_gen4_probe(struct rsnd_priv *priv)
{ … }
static int rsnd_gen2_probe(struct rsnd_priv *priv)
{ … }
static int rsnd_gen1_probe(struct rsnd_priv *priv)
{ … }
int rsnd_gen_probe(struct rsnd_priv *priv)
{ … }