20 if (
RCBA32(0x2030) & (1 << 31)) {
24 reg32 |=
RCBA32(0x2030) & 0xfe;
129 static const struct pci_driver pch_azalia
__pci_driver = {
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
void azalia_codecs_init(u8 *base, u16 codec_mask)
#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_config32(const struct device *dev, u16 reg, u32 ormask)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline void pci_and_config16(const struct device *dev, u16 reg, u16 andmask)
static __always_inline void pci_and_config8(const struct device *dev, u16 reg, u8 andmask)
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
static __always_inline void pci_or_config8(const struct device *dev, u16 reg, u8 ormask)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_and_config32(const struct device *dev, u16 reg, u32 andmask)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
static void azalia_final(struct device *dev)
static const unsigned short pci_device_ids[]
static void azalia_pch_init(struct device *dev, u8 *base)
static void azalia_init(struct device *dev)
static struct device_operations azalia_ops
static const struct pci_driver pch_azalia __pci_driver
#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)
#define PCI_DID_INTEL_LPT_LP_AUDIO
#define PCI_DID_INTEL_LPT_H_AUDIO
static void * res2mmio(const struct resource *res, unsigned long offset, unsigned long mask)
int hda_codec_detect(u8 *base)
static int pch_is_lp(void)
void(* read_resources)(struct device *dev)