78 printk(
BIOS_DEBUG,
"Azalia: codec type: %s\n", (reg8 & (1 << 1))?
"Azalia":
"AC97");
112 static const struct pci_driver i82801gx_azalia
__pci_driver = {
static uint32_t read32(const void *addr)
int azalia_enter_reset(u8 *base)
void azalia_codecs_init(u8 *base, u16 codec_mask)
int azalia_exit_reset(u8 *base)
#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 codec_detect(u8 *base)
static const struct pci_driver i82801gx_azalia __pci_driver
static void azalia_init(struct device *dev)
static struct device_operations azalia_ops
void i82801gx_enable(struct device *dev)
static __always_inline void pci_or_config32(const struct device *dev, u16 reg, u32 ormask)
static __always_inline void pci_and_config8(const struct device *dev, u16 reg, u8 andmask)
static __always_inline void pci_update_config32(const struct device *dev, u16 reg, u32 mask, u32 or)
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 u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#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)
void(* read_resources)(struct device *dev)