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

Go to the source code of this file.

Data Structures

struct  slot_pin_irq_map
 
struct  pic_pirq_map
 

Macros

#define MAX_SLOTS   32
 

Enumerations

enum  pci_pin {
  PCI_INT_NONE = 0 , PCI_INT_A , PCI_INT_B , PCI_INT_C ,
  PCI_INT_D , PCI_INT_MAX = PCI_INT_D
}
 
enum  pirq {
  PIRQ_INVALID , PIRQ_A , PIRQ_B , PIRQ_C ,
  PIRQ_D , PIRQ_E , PIRQ_F , PIRQ_G ,
  PIRQ_H , PIRQ_COUNT = PIRQ_H
}
 
enum  pirq_map_type { PIRQ_GSI , PIRQ_SOURCE_PATH }
 

Functions

static size_t pirq_idx (enum pirq pirq)
 
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, unsigned int pin)
 

Macro Definition Documentation

◆ MAX_SLOTS

#define MAX_SLOTS   32

Definition at line 9 of file acpi_pirq_gen.h.

Enumeration Type Documentation

◆ pci_pin

enum pci_pin
Enumerator
PCI_INT_NONE 
PCI_INT_A 
PCI_INT_B 
PCI_INT_C 
PCI_INT_D 
PCI_INT_MAX 

Definition at line 11 of file acpi_pirq_gen.h.

◆ pirq

enum pirq
Enumerator
PIRQ_INVALID 
PIRQ_A 
PIRQ_B 
PIRQ_C 
PIRQ_D 
PIRQ_E 
PIRQ_F 
PIRQ_G 
PIRQ_H 
PIRQ_COUNT 

Definition at line 20 of file acpi_pirq_gen.h.

◆ pirq_map_type

Enumerator
PIRQ_GSI 
PIRQ_SOURCE_PATH 

Definition at line 65 of file acpi_pirq_gen.h.

Function Documentation

◆ 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,
unsigned int  pin 
)

◆ pirq_idx()

static size_t pirq_idx ( enum pirq  pirq)
inlinestatic

Definition at line 33 of file acpi_pirq_gen.h.

References assert, PIRQ_A, PIRQ_H, and PIRQ_INVALID.

Referenced by assign_pirq(), gen_pic_route(), intel_acpi_gen_def_acpi_pirq(), and pirq_to_irq().

Here is the caller graph for this function: