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

Go to the source code of this file.

Macros

#define PCI_DEVFN_OFFSET(x)   ((x))
 
#define PCI_DEV(SEGBUS, DEV, FN)
 
#define PCI_DEV_INVALID   (0xffffffffU)
 
#define PCI_DEVFN_INVALID   (0xffffffffU)
 
#define PCI_BDF(dev)   pcidev_assert((dev))
 

Typedefs

typedef u32 pci_devfn_t
 

Macro Definition Documentation

◆ PCI_BDF

#define PCI_BDF (   dev)    pcidev_assert((dev))

Definition at line 28 of file pci_type.h.

◆ PCI_DEV

#define PCI_DEV (   SEGBUS,
  DEV,
  FN 
)
Value:
( \
(((SEGBUS) & 0xFFF) << 20) | \
(((DEV) & 0x1F) << 15) | \
(((FN) & 0x07) << 12))

Definition at line 14 of file pci_type.h.

◆ PCI_DEV_INVALID

#define PCI_DEV_INVALID   (0xffffffffU)

Definition at line 19 of file pci_type.h.

◆ PCI_DEVFN_INVALID

#define PCI_DEVFN_INVALID   (0xffffffffU)

Definition at line 20 of file pci_type.h.

◆ PCI_DEVFN_OFFSET

#define PCI_DEVFN_OFFSET (   x)    ((x))

Definition at line 12 of file pci_type.h.

Typedef Documentation

◆ pci_devfn_t

typedef u32 pci_devfn_t

Definition at line 8 of file pci_type.h.