coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpigen_pci.c File Reference
#include <acpi/acpigen.h>
#include <acpi/acpigen_pci.h>
#include <assert.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_type.h>
#include <types.h>
Include dependency graph for acpigen_pci.c:

Go to the source code of this file.

Functions

void acpigen_write_ADR_pci_devfn (pci_devfn_t devfn)
 
void acpigen_write_ADR_pci_device (const struct device *dev)
 
void acpigen_write_PRT_GSI_entry (unsigned int pci_dev, unsigned int acpi_pin, unsigned int gsi)
 
void acpigen_write_PRT_source_entry (unsigned int pci_dev, unsigned int acpi_pin, const char *source_path, unsigned int index)
 

Function Documentation

◆ acpigen_write_ADR_pci_devfn()

void acpigen_write_ADR_pci_devfn ( pci_devfn_t  devfn)

Definition at line 11 of file acpigen_pci.c.

References acpigen_write_ADR(), PCI_FUNC, and PCI_SLOT.

Referenced by acpigen_write_ADR_pci_device().

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

◆ acpigen_write_ADR_pci_device()

void acpigen_write_ADR_pci_device ( const struct device dev)

◆ acpigen_write_PRT_GSI_entry()

void acpigen_write_PRT_GSI_entry ( unsigned int  pci_dev,
unsigned int  acpi_pin,
unsigned int  gsi 
)

Definition at line 28 of file acpigen_pci.c.

References acpigen_pop_len(), acpigen_write_byte(), acpigen_write_dword(), acpigen_write_package(), and pci_dev.

Referenced by acpigen_write_PRT_GSI(), gen_apic_route(), and gen_pic_route().

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

◆ acpigen_write_PRT_source_entry()

void acpigen_write_PRT_source_entry ( unsigned int  pci_dev,
unsigned int  acpi_pin,
const char *  source_path,
unsigned int  index 
)

Definition at line 43 of file acpigen_pci.c.

References acpigen_emit_namestring(), acpigen_pop_len(), acpigen_write_byte(), acpigen_write_dword(), acpigen_write_package(), and pci_dev.

Referenced by acpigen_write_PRT_PIC(), and gen_pic_route().

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