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

Go to the source code of this file.

Macros

#define _PCH_DEVFN(slot, func)   PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func)
 
#define _PCH_DEV(slot, func)   pcidev_path_on_root_debug(_PCH_DEVFN(slot, func), __func__)
 
#define SA_DEV_SLOT_ROOT   0x00
 
#define SA_DEVFN_ROOT   PCI_DEVFN(SA_DEV_SLOT_ROOT, 0)
 
#define HOST_BRIDGE   PCI_DEV(0, SA_DEV_SLOT_ROOT, 0)
 
#define SA_DEV_SLOT_IGD   0x02
 
#define SA_DEVFN_IGD   PCI_DEVFN(SA_DEV_SLOT_IGD, 0)
 
#define SA_DEV_IGD   PCI_DEV(0, SA_DEV_SLOT_IGD, 0)
 
#define SA_DEV_SLOT_MINIHD   0x03
 
#define SA_DEVFN_MINIHD   PCI_DEVFN(SA_DEV_SLOT_MINIHD, 0)
 
#define SA_DEV_MINIHD   PCI_DEV(0, SA_DEV_SLOT_MINIHD, 0)
 
#define PCH_DEV_SLOT_ADSP   0x13
 
#define PCH_DEVFN_ADSP   _PCH_DEVFN(ADSP, 0)
 
#define PCH_DEV_SLOT_XHCI   0x14
 
#define PCH_DEVFN_XHCI   _PCH_DEVFN(XHCI, 0)
 
#define PCH_DEV_XHCI   _PCH_DEV(XHCI, 0)
 
#define PCH_DEV_SLOT_SIO   0x15
 
#define PCH_DEV_UART0   _PCH_DEV(SIO, 5)
 
#define PCH_DEV_UART1   _PCH_DEV(SIO, 6)
 
#define PCH_DEVFN_SDMA   _PCH_DEVFN(SIO, 0)
 
#define PCH_DEVFN_I2C0   _PCH_DEVFN(SIO, 1)
 
#define PCH_DEVFN_I2C1   _PCH_DEVFN(SIO, 2)
 
#define PCH_DEVFN_SPI0   _PCH_DEVFN(SIO, 3)
 
#define PCH_DEVFN_SPI1   _PCH_DEVFN(SIO, 4)
 
#define PCH_DEVFN_UART0   _PCH_DEVFN(SIO, 5)
 
#define PCH_DEVFN_UART1   _PCH_DEVFN(SIO, 6)
 
#define PCH_DEV_SLOT_ME   0x16
 
#define PCH_DEVFN_ME   _PCH_DEVFN(ME, 0)
 
#define PCH_DEVFN_ME_2   _PCH_DEVFN(ME, 1)
 
#define PCH_DEVFN_ME_IDER   _PCH_DEVFN(ME, 2)
 
#define PCH_DEVFN_ME_KT   _PCH_DEVFN(ME, 3)
 
#define PCH_DEV_ME   _PCH_DEV(ME, 0)
 
#define PCH_DEV_SLOT_SDIO   0x17
 
#define PCH_DEVFN_SDIO   _PCH_DEVFN(SDIO, 0)
 
#define PCH_DEV_SLOT_GBE   0x19
 
#define PCH_DEVFN_GBE   _PCH_DEVFN(GBE, 0)
 
#define PCH_DEV_SLOT_HDA   0x1b
 
#define PCH_DEVFN_HDA   _PCH_DEVFN(HDA, 0)
 
#define PCH_DEV_SLOT_PCIE   0x1c
 
#define PCH_DEV_SLOT_EHCI   0x1d
 
#define PCH_DEVFN_EHCI   _PCH_DEVFN(EHCI, 0)
 
#define PCH_DEV_SLOT_LPC   0x1f
 
#define PCH_DEVFN_LPC   _PCH_DEVFN(LPC, 0)
 
#define PCH_DEVFN_IDE   _PCH_DEVFN(LPC, 1)
 
#define PCH_DEVFN_SATA   _PCH_DEVFN(LPC, 2)
 
#define PCH_DEVFN_SMBUS   _PCH_DEVFN(LPC, 3)
 
#define PCH_DEVFN_SATA2   _PCH_DEVFN(LPC, 5)
 
#define PCH_DEVFN_THERMAL   _PCH_DEVFN(LPC, 6)
 
#define PCH_DEV_LPC   _PCH_DEV(LPC, 0)
 
#define PCH_IOAPIC_PCI_BUS   250
 
#define PCH_IOAPIC_PCI_SLOT   31
 
#define PCH_HPET_PCI_BUS   250
 
#define PCH_HPET_PCI_SLOT   15
 

Macro Definition Documentation

◆ _PCH_DEV

#define _PCH_DEV (   slot,
  func 
)    pcidev_path_on_root_debug(_PCH_DEVFN(slot, func), __func__)

Definition at line 13 of file pci_devs.h.

◆ _PCH_DEVFN

#define _PCH_DEVFN (   slot,
  func 
)    PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func)

Definition at line 6 of file pci_devs.h.

◆ HOST_BRIDGE

#define HOST_BRIDGE   PCI_DEV(0, SA_DEV_SLOT_ROOT, 0)

Definition at line 20 of file pci_devs.h.

◆ PCH_DEV_LPC

#define PCH_DEV_LPC   _PCH_DEV(LPC, 0)

Definition at line 78 of file pci_devs.h.

◆ PCH_DEV_ME

#define PCH_DEV_ME   _PCH_DEV(ME, 0)

Definition at line 55 of file pci_devs.h.

◆ PCH_DEV_SLOT_ADSP

#define PCH_DEV_SLOT_ADSP   0x13

Definition at line 32 of file pci_devs.h.

◆ PCH_DEV_SLOT_EHCI

#define PCH_DEV_SLOT_EHCI   0x1d

Definition at line 68 of file pci_devs.h.

◆ PCH_DEV_SLOT_GBE

#define PCH_DEV_SLOT_GBE   0x19

Definition at line 60 of file pci_devs.h.

◆ PCH_DEV_SLOT_HDA

#define PCH_DEV_SLOT_HDA   0x1b

Definition at line 63 of file pci_devs.h.

◆ PCH_DEV_SLOT_LPC

#define PCH_DEV_SLOT_LPC   0x1f

Definition at line 71 of file pci_devs.h.

◆ PCH_DEV_SLOT_ME

#define PCH_DEV_SLOT_ME   0x16

Definition at line 50 of file pci_devs.h.

◆ PCH_DEV_SLOT_PCIE

#define PCH_DEV_SLOT_PCIE   0x1c

Definition at line 66 of file pci_devs.h.

◆ PCH_DEV_SLOT_SDIO

#define PCH_DEV_SLOT_SDIO   0x17

Definition at line 57 of file pci_devs.h.

◆ PCH_DEV_SLOT_SIO

#define PCH_DEV_SLOT_SIO   0x15

Definition at line 39 of file pci_devs.h.

◆ PCH_DEV_SLOT_XHCI

#define PCH_DEV_SLOT_XHCI   0x14

Definition at line 35 of file pci_devs.h.

◆ PCH_DEV_UART0

#define PCH_DEV_UART0   _PCH_DEV(SIO, 5)

Definition at line 40 of file pci_devs.h.

◆ PCH_DEV_UART1

#define PCH_DEV_UART1   _PCH_DEV(SIO, 6)

Definition at line 41 of file pci_devs.h.

◆ PCH_DEV_XHCI

#define PCH_DEV_XHCI   _PCH_DEV(XHCI, 0)

Definition at line 37 of file pci_devs.h.

◆ PCH_DEVFN_ADSP

#define PCH_DEVFN_ADSP   _PCH_DEVFN(ADSP, 0)

Definition at line 33 of file pci_devs.h.

◆ PCH_DEVFN_EHCI

#define PCH_DEVFN_EHCI   _PCH_DEVFN(EHCI, 0)

Definition at line 69 of file pci_devs.h.

◆ PCH_DEVFN_GBE

#define PCH_DEVFN_GBE   _PCH_DEVFN(GBE, 0)

Definition at line 61 of file pci_devs.h.

◆ PCH_DEVFN_HDA

#define PCH_DEVFN_HDA   _PCH_DEVFN(HDA, 0)

Definition at line 64 of file pci_devs.h.

◆ PCH_DEVFN_I2C0

#define PCH_DEVFN_I2C0   _PCH_DEVFN(SIO, 1)

Definition at line 43 of file pci_devs.h.

◆ PCH_DEVFN_I2C1

#define PCH_DEVFN_I2C1   _PCH_DEVFN(SIO, 2)

Definition at line 44 of file pci_devs.h.

◆ PCH_DEVFN_IDE

#define PCH_DEVFN_IDE   _PCH_DEVFN(LPC, 1)

Definition at line 73 of file pci_devs.h.

◆ PCH_DEVFN_LPC

#define PCH_DEVFN_LPC   _PCH_DEVFN(LPC, 0)

Definition at line 72 of file pci_devs.h.

◆ PCH_DEVFN_ME

#define PCH_DEVFN_ME   _PCH_DEVFN(ME, 0)

Definition at line 51 of file pci_devs.h.

◆ PCH_DEVFN_ME_2

#define PCH_DEVFN_ME_2   _PCH_DEVFN(ME, 1)

Definition at line 52 of file pci_devs.h.

◆ PCH_DEVFN_ME_IDER

#define PCH_DEVFN_ME_IDER   _PCH_DEVFN(ME, 2)

Definition at line 53 of file pci_devs.h.

◆ PCH_DEVFN_ME_KT

#define PCH_DEVFN_ME_KT   _PCH_DEVFN(ME, 3)

Definition at line 54 of file pci_devs.h.

◆ PCH_DEVFN_SATA

#define PCH_DEVFN_SATA   _PCH_DEVFN(LPC, 2)

Definition at line 74 of file pci_devs.h.

◆ PCH_DEVFN_SATA2

#define PCH_DEVFN_SATA2   _PCH_DEVFN(LPC, 5)

Definition at line 76 of file pci_devs.h.

◆ PCH_DEVFN_SDIO

#define PCH_DEVFN_SDIO   _PCH_DEVFN(SDIO, 0)

Definition at line 58 of file pci_devs.h.

◆ PCH_DEVFN_SDMA

#define PCH_DEVFN_SDMA   _PCH_DEVFN(SIO, 0)

Definition at line 42 of file pci_devs.h.

◆ PCH_DEVFN_SMBUS

#define PCH_DEVFN_SMBUS   _PCH_DEVFN(LPC, 3)

Definition at line 75 of file pci_devs.h.

◆ PCH_DEVFN_SPI0

#define PCH_DEVFN_SPI0   _PCH_DEVFN(SIO, 3)

Definition at line 45 of file pci_devs.h.

◆ PCH_DEVFN_SPI1

#define PCH_DEVFN_SPI1   _PCH_DEVFN(SIO, 4)

Definition at line 46 of file pci_devs.h.

◆ PCH_DEVFN_THERMAL

#define PCH_DEVFN_THERMAL   _PCH_DEVFN(LPC, 6)

Definition at line 77 of file pci_devs.h.

◆ PCH_DEVFN_UART0

#define PCH_DEVFN_UART0   _PCH_DEVFN(SIO, 5)

Definition at line 47 of file pci_devs.h.

◆ PCH_DEVFN_UART1

#define PCH_DEVFN_UART1   _PCH_DEVFN(SIO, 6)

Definition at line 48 of file pci_devs.h.

◆ PCH_DEVFN_XHCI

#define PCH_DEVFN_XHCI   _PCH_DEVFN(XHCI, 0)

Definition at line 36 of file pci_devs.h.

◆ PCH_HPET_PCI_BUS

#define PCH_HPET_PCI_BUS   250

Definition at line 82 of file pci_devs.h.

◆ PCH_HPET_PCI_SLOT

#define PCH_HPET_PCI_SLOT   15

Definition at line 83 of file pci_devs.h.

◆ PCH_IOAPIC_PCI_BUS

#define PCH_IOAPIC_PCI_BUS   250

Definition at line 80 of file pci_devs.h.

◆ PCH_IOAPIC_PCI_SLOT

#define PCH_IOAPIC_PCI_SLOT   31

Definition at line 81 of file pci_devs.h.

◆ SA_DEV_IGD

#define SA_DEV_IGD   PCI_DEV(0, SA_DEV_SLOT_IGD, 0)

Definition at line 24 of file pci_devs.h.

◆ SA_DEV_MINIHD

#define SA_DEV_MINIHD   PCI_DEV(0, SA_DEV_SLOT_MINIHD, 0)

Definition at line 28 of file pci_devs.h.

◆ SA_DEV_SLOT_IGD

#define SA_DEV_SLOT_IGD   0x02

Definition at line 22 of file pci_devs.h.

◆ SA_DEV_SLOT_MINIHD

#define SA_DEV_SLOT_MINIHD   0x03

Definition at line 26 of file pci_devs.h.

◆ SA_DEV_SLOT_ROOT

#define SA_DEV_SLOT_ROOT   0x00

Definition at line 18 of file pci_devs.h.

◆ SA_DEVFN_IGD

#define SA_DEVFN_IGD   PCI_DEVFN(SA_DEV_SLOT_IGD, 0)

Definition at line 23 of file pci_devs.h.

◆ SA_DEVFN_MINIHD

#define SA_DEVFN_MINIHD   PCI_DEVFN(SA_DEV_SLOT_MINIHD, 0)

Definition at line 27 of file pci_devs.h.

◆ SA_DEVFN_ROOT

#define SA_DEVFN_ROOT   PCI_DEVFN(SA_DEV_SLOT_ROOT, 0)

Definition at line 19 of file pci_devs.h.