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 "pch.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 unsigned short pci_device_ids []
 
static const struct pci_driver pch_azalia __pci_driver
 

Function Documentation

◆ azalia_init()

◆ codec_detect()

static int codec_detect ( u8 base)
static

Definition at line 13 of file azalia.c.

References azalia_enter_reset(), azalia_exit_reset(), base, BIOS_DEBUG, HDA_GCAP_REG, HDA_STATESTS_REG, printk, read16(), read8(), and write16().

Referenced by azalia_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver pch_azalia __pci_driver
static
Initial value:
= {
.ops = &azalia_ops,
.vendor = PCI_VID_INTEL,
.devices = pci_device_ids,
}
static const unsigned short pci_device_ids[]
Definition: azalia.c:117
static struct device_operations azalia_ops
Definition: azalia.c:109
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 117 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,
.ops_pci = &pci_dev_ops_pci,
}
static void azalia_init(struct device *dev)
Definition: azalia.c:38
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 38 of file azalia.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0x1c20,
0x1e20,
0
}
#define PCI_DID_INTEL_IBEXPEAK_AUDIO
Definition: pci_ids.h:2813

Definition at line 117 of file azalia.c.