coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
amd_pci_util.h File Reference
#include <stdint.h>
#include "amd_pci_int_defs.h"
Include dependency graph for amd_pci_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pirq_struct
 

Macros

#define PCI_INTR_INDEX   0xc00
 
#define PCI_INTR_DATA   0xc01
 

Functions

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

Variables

const struct pirq_structpirq_data_ptr
 
u32 pirq_data_size
 
const u8intr_data_ptr
 
const u8picr_data_ptr
 

Macro Definition Documentation

◆ PCI_INTR_DATA

#define PCI_INTR_DATA   0xc01

Definition at line 11 of file amd_pci_util.h.

◆ PCI_INTR_INDEX

#define PCI_INTR_INDEX   0xc00

Definition at line 10 of file amd_pci_util.h.

Function Documentation

◆ read_pci_int_idx()

u8 read_pci_int_idx ( u8  index,
int  mode 
)

Definition at line 20 of file amd_pci_util.c.

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

Referenced by write_pci_cfg_irqs(), and write_pci_int_table().

Here is the call graph for this function:
Here is the caller 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 30 of file amd_pci_util.c.

References outb(), PCI_INTR_DATA, and PCI_INTR_INDEX.

Referenced by write_pci_int_table().

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

◆ write_pci_int_table()

void write_pci_int_table ( void  )

Definition at line 41 of file amd_pci_util.c.

References BIOS_DEBUG, BIOS_ERR, FCH_INT_TABLE_SIZE, intr_data_ptr, intr_types, NULL, picr_data_ptr, printk, read_pci_int_idx(), and write_pci_int_idx().

Here is the call graph for this function:

Variable Documentation

◆ intr_data_ptr

const u8* intr_data_ptr
extern

Definition at line 13 of file amd_pci_util.c.

Referenced by write_pci_int_table().

◆ picr_data_ptr

const u8* picr_data_ptr
extern

Definition at line 14 of file amd_pci_util.c.

Referenced by write_pci_int_table().

◆ pirq_data_ptr

const struct pirq_struct* pirq_data_ptr
extern

Definition at line 11 of file amd_pci_util.c.

Referenced by write_pci_cfg_irqs().

◆ pirq_data_size

u32 pirq_data_size
extern

Definition at line 12 of file amd_pci_util.c.

Referenced by write_pci_cfg_irqs().