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

Go to the source code of this file.

Data Structures

struct  domain_path
 
struct  pci_path
 
struct  pnp_path
 
struct  i2c_path
 
struct  spi_path
 
struct  apic_path
 
struct  ioapic_path
 
struct  cpu_cluster_path
 
struct  cpu_path
 
struct  cpu_bus_path
 
struct  generic_path
 
struct  usb_path
 
struct  mmio_path
 
struct  gpio_path
 
struct  device_path
 

Macros

#define DEVICE_PATH_NAMES
 
#define DEVICE_PATH_MAX   40
 
#define BUS_PATH_MAX   (DEVICE_PATH_MAX+10)
 

Enumerations

enum  device_path_type {
  DEVICE_PATH_NONE = 0 , DEVICE_PATH_ROOT , DEVICE_PATH_PCI , DEVICE_PATH_PNP ,
  DEVICE_PATH_I2C , DEVICE_PATH_APIC , DEVICE_PATH_DOMAIN , DEVICE_PATH_CPU_CLUSTER ,
  DEVICE_PATH_CPU , DEVICE_PATH_CPU_BUS , DEVICE_PATH_IOAPIC , DEVICE_PATH_GENERIC ,
  DEVICE_PATH_SPI , DEVICE_PATH_USB , DEVICE_PATH_MMIO , DEVICE_PATH_GPIO
}
 

Functions

const char * dev_path_name (enum device_path_type type)
 

Macro Definition Documentation

◆ BUS_PATH_MAX

#define BUS_PATH_MAX   (DEVICE_PATH_MAX+10)

Definition at line 134 of file path.h.

◆ DEVICE_PATH_MAX

#define DEVICE_PATH_MAX   40

Definition at line 133 of file path.h.

◆ DEVICE_PATH_NAMES

#define DEVICE_PATH_NAMES
Value:
{ \
"DEVICE_PATH_NONE", \
"DEVICE_PATH_ROOT", \
"DEVICE_PATH_PCI", \
"DEVICE_PATH_PNP", \
"DEVICE_PATH_I2C", \
"DEVICE_PATH_APIC", \
"DEVICE_PATH_DOMAIN", \
"DEVICE_PATH_CPU_CLUSTER", \
"DEVICE_PATH_CPU", \
"DEVICE_PATH_CPU_BUS", \
"DEVICE_PATH_IOAPIC", \
"DEVICE_PATH_GENERIC", \
"DEVICE_PATH_SPI", \
"DEVICE_PATH_USB", \
"DEVICE_PATH_MMIO", \
"DEVICE_PATH_GPIO", \
}

Definition at line 30 of file path.h.

Enumeration Type Documentation

◆ device_path_type

Enumerator
DEVICE_PATH_NONE 
DEVICE_PATH_ROOT 
DEVICE_PATH_PCI 
DEVICE_PATH_PNP 
DEVICE_PATH_I2C 
DEVICE_PATH_APIC 
DEVICE_PATH_DOMAIN 
DEVICE_PATH_CPU_CLUSTER 
DEVICE_PATH_CPU 
DEVICE_PATH_CPU_BUS 
DEVICE_PATH_IOAPIC 
DEVICE_PATH_GENERIC 
DEVICE_PATH_SPI 
DEVICE_PATH_USB 
DEVICE_PATH_MMIO 
DEVICE_PATH_GPIO 

Definition at line 6 of file path.h.

Function Documentation

◆ dev_path_name()

const char* dev_path_name ( enum device_path_type  type)

Definition at line 925 of file device_util.c.

References ARRAY_SIZE, DEVICE_PATH_NAMES, and type.