58 if (
CONFIG(AZALIA_LOCK_DOWN_R_WO_GCAP)) {
133 while (idx < (verb_table_bytes /
sizeof(
u32))) {
135 u32 verb_size = 4 * verb_table[idx + 2];
136 if (verb_table[idx] != viddid) {
137 idx += verb_size + 3;
140 *verb = &verb_table[idx + 3];
218 for (
u32 i = 0; i < verb_size; i++) {
243 reg32 = (
addr << 28) | 0x000f0000;
276 for (i = 14; i >= 0; i--) {
277 if (codec_mask & (1 << i))
static void write32(void *addr, uint32_t val)
static uint16_t read16(const void *addr)
static uint32_t read32(const void *addr)
static void write16(void *addr, uint16_t val)
int azalia_enter_reset(u8 *base)
__weak void mainboard_azalia_program_runtime_verbs(u8 *base, u32 viddid)
void azalia_codec_init(u8 *base, int addr, const u32 *verb_table, u32 verb_table_bytes)
static u16 codec_detect(u8 *base)
static int wait_for_ready(u8 *base)
static int azalia_write_verb(u8 *base, u32 verb)
void azalia_audio_init(struct device *dev)
static int wait_for_valid(u8 *base)
int azalia_set_bits(void *port, u32 mask, u32 val)
int azalia_program_verb_table(u8 *base, const u32 *verbs, u32 verb_size)
void azalia_codecs_init(u8 *base, u16 codec_mask)
struct device_operations default_azalia_audio_ops
int azalia_exit_reset(u8 *base)
u32 azalia_find_verb(const u32 *verb_table, u32 verb_table_bytes, u32 viddid, const u32 **verb)
const u32 cim_verb_data[]
const u32 cim_verb_data_size
const u32 pc_beep_verbs[]
const u32 pc_beep_verbs_size
#define printk(level,...)
void mdelay(unsigned int msecs)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
static int stopwatch_expired(struct stopwatch *sw)
static void stopwatch_init_msecs_expire(struct stopwatch *sw, long ms)
static void stopwatch_init_usecs_expire(struct stopwatch *sw, long us)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define PCI_BASE_ADDRESS_0
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
static void * res2mmio(const struct resource *res, unsigned long offset, unsigned long mask)
const struct smm_save_state_ops *legacy_ops __weak
void(* read_resources)(struct device *dev)