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

Go to the source code of this file.

Functions

static void gen_apic_route (const struct slot_pin_irq_map *pin_irq_map, unsigned int map_count)
 
static void gen_pic_route (const struct slot_pin_irq_map *pin_irq_map, unsigned int map_count, const struct pic_pirq_map *pirq_map)
 
void intel_write_pci0_PRT (const struct slot_pin_irq_map *pin_irq_map, unsigned int map_count, const struct pic_pirq_map *pirq_map)
 
bool is_slot_pin_assigned (const struct slot_pin_irq_map *pin_irq_map, unsigned int map_count, unsigned int slot, enum pci_pin pin)
 

Function Documentation

◆ gen_apic_route()

static void gen_apic_route ( const struct slot_pin_irq_map pin_irq_map,
unsigned int  map_count 
)
static

Definition at line 10 of file acpi_pirq_gen.c.

References acpigen_write_PRT_GSI_entry(), and PCI_INT_A.

Referenced by intel_write_pci0_PRT().

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

◆ gen_pic_route()

static void gen_pic_route ( const struct slot_pin_irq_map pin_irq_map,
unsigned int  map_count,
const struct pic_pirq_map pirq_map 
)
static

Definition at line 23 of file acpi_pirq_gen.c.

References acpigen_write_PRT_GSI_entry(), acpigen_write_PRT_source_entry(), pic_pirq_map::gsi, PCI_INT_A, slot_pin_irq_map::pic_pirq, slot_pin_irq_map::pin, PIRQ_GSI, pirq_idx(), PIRQ_INVALID, pic_pirq_map::source_path, and pic_pirq_map::type.

Referenced by intel_write_pci0_PRT().

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

◆ intel_write_pci0_PRT()

void intel_write_pci0_PRT ( const struct slot_pin_irq_map pin_irq_map,
unsigned int  map_count,
const struct pic_pirq_map pirq_map 
)

◆ is_slot_pin_assigned()

bool is_slot_pin_assigned ( const struct slot_pin_irq_map pin_irq_map,
unsigned int  map_count,
unsigned int  slot,
enum pci_pin  pin 
)

Definition at line 69 of file acpi_pirq_gen.c.

Referenced by generate_pin_irq_map(), and intel_acpi_gen_def_acpi_pirq().

Here is the caller graph for this function: