coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
amd_pci_util.c File Reference
#include <console/console.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/pci_ops.h>
#include "amd_pci_util.h"
#include <pc80/i8259.h>
#include "amd_pci_int_defs.h"
#include "amd_pci_int_types.h"
Include dependency graph for amd_pci_util.c:

Go to the source code of this file.

Functions

u8 read_pci_int_idx (u8 index, int mode)
 
void write_pci_int_idx (u8 index, int mode, u8 data)
 
void write_pci_int_table (void)
 
void write_pci_cfg_irqs (void)
 

Variables

const struct pirq_structpirq_data_ptr = NULL
 
u32 pirq_data_size = 0
 
const u8intr_data_ptr = NULL
 
const u8picr_data_ptr = NULL
 

Function Documentation

◆ read_pci_int_idx()

u8 read_pci_int_idx ( u8  index,
int  mode 
)

Definition at line 21 of file amd_pci_util.c.

References inb(), outb(), PCI_INTR_DATA, and PCI_INTR_INDEX.

Here is the call graph for this function:

◆ write_pci_cfg_irqs()

◆ write_pci_int_idx()

void write_pci_int_idx ( u8  index,
int  mode,
u8  data 
)

Definition at line 31 of file amd_pci_util.c.

References outb(), PCI_INTR_DATA, and PCI_INTR_INDEX.

Here is the call graph for this function:

◆ write_pci_int_table()

void write_pci_int_table ( void  )

Definition at line 42 of file amd_pci_util.c.

References BIOS_DEBUG, BIOS_ERR, FCH_INT_TABLE_SIZE, irq_idx_name::index, intr_data_ptr, intr_types, name, NULL, picr_data_ptr, printk, read_pci_int_idx(), sb_get_apic_reg_association(), and write_pci_int_idx().

Referenced by set_pci_irqs().

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

Variable Documentation

◆ intr_data_ptr

const u8* intr_data_ptr = NULL

Definition at line 14 of file amd_pci_util.c.

Referenced by pirq_setup(), and smp_write_config_table().

◆ picr_data_ptr

const u8* picr_data_ptr = NULL

Definition at line 15 of file amd_pci_util.c.

Referenced by pirq_setup().

◆ pirq_data_ptr

const struct pirq_struct* pirq_data_ptr = NULL

Definition at line 12 of file amd_pci_util.c.

Referenced by pirq_setup(), and populate_pirq_data().

◆ pirq_data_size

u32 pirq_data_size = 0

Definition at line 13 of file amd_pci_util.c.

Referenced by pirq_setup(), and populate_pirq_data().