80 for (i = 3; i >= 0; i--) {
81 if (codec_mask & (1 << i))
96 static const unsigned short pci_device_ids[] = { 0x0a0c, 0x0c0c, 0x0d0c, 0 };
98 static const struct pci_driver haswell_minihd
__pci_driver = {
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
void azalia_codec_init(u8 *base, int addr, const u32 *verb_table, u32 verb_table_bytes)
#define printk(level,...)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
static const u32 minihd_verb_table[]
static const struct pci_driver haswell_minihd __pci_driver
static const unsigned short pci_device_ids[]
static struct device_operations minihd_ops
static void minihd_init(struct device *dev)
#define PCI_COMMAND_MASTER
#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)
int hda_codec_detect(u8 *base)
void(* read_resources)(struct device *dev)