coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
azalia.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <device/mmio.h>
#include <delay.h>
#include <device/azalia_device.h>
#include <stdint.h>
#include "chip.h"
#include "i82801gx.h"
Include dependency graph for azalia.c:

Go to the source code of this file.

Functions

static int codec_detect (u8 *base)
 
static void azalia_init (struct device *dev)
 

Variables

static struct device_operations azalia_ops
 
static const struct pci_driver i82801gx_azalia __pci_driver
 

Function Documentation

◆ azalia_init()

static void azalia_init ( struct device dev)
static

Definition at line 40 of file azalia.c.

◆ codec_detect()

static int codec_detect ( u8 base)
static

Definition at line 15 of file azalia.c.

References azalia_enter_reset(), azalia_exit_reset(), base, BIOS_DEBUG, HDA_STATESTS_REG, printk, and read32().

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver i82801gx_azalia __pci_driver
static
Initial value:
= {
.ops = &azalia_ops,
.vendor = PCI_VID_INTEL,
.device = 0x27d8,
}
static struct device_operations azalia_ops
Definition: azalia.c:102
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 40 of file azalia.c.

◆ azalia_ops

struct device_operations azalia_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = azalia_init,
.enable = i82801gx_enable,
.ops_pci = &pci_dev_ops_pci,
}
static void azalia_init(struct device *dev)
Definition: azalia.c:40
void i82801gx_enable(struct device *dev)
Definition: i82801gx.c:54
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 40 of file azalia.c.