libhd  5.0
Macros | Functions

PCI bus scan functions. More...

Macros

#define IORESOURCE_BITS   0x000000ff
 
#define IORESOURCE_IO   0x00000100
 
#define IORESOURCE_MEM   0x00000200
 
#define IORESOURCE_IRQ   0x00000400
 
#define IORESOURCE_DMA   0x00000800
 
#define IORESOURCE_PREFETCH   0x00001000
 
#define IORESOURCE_READONLY   0x00002000
 
#define IORESOURCE_CACHEABLE   0x00004000
 
#define IORESOURCE_DISABLED   0x10000000
 

Functions

static void add_pci_data (hd_data_t *hd_data)
 
static pci_tadd_pci_entry (hd_data_t *hd_data, pci_t *new_pci)
 
static unsigned char pci_cfg_byte (pci_t *pci, int fd, unsigned idx)
 
static void dump_pci_data (hd_data_t *hd_data)
 
static void hd_read_macio (hd_data_t *hd_data)
 
static void hd_read_vio (hd_data_t *hd_data)
 
static void hd_read_xen (hd_data_t *hd_data)
 
static void hd_read_ps3_system_bus (hd_data_t *hd_data)
 
static void hd_read_vm (hd_data_t *hd_data)
 
static void add_mv643xx_eth (hd_data_t *hd_data, char *entry, char *platform_type)
 
static void hd_read_platform (hd_data_t *hd_data)
 
static void hd_read_of_platform (hd_data_t *hd_data)
 
static void add_xen_network (hd_data_t *hd_data)
 
static void add_xen_storage (hd_data_t *hd_data)
 
static void hd_read_virtio (hd_data_t *hd_data)
 
static void hd_read_uisvirtpci (hd_data_t *hd_data)
 
static void hd_read_ibmebus (hd_data_t *hd_data)
 
static void add_edid_from_file (const char *file, pci_t *pci, int index, hd_data_t *hd_data)
 
static void hd_read_mmc (hd_data_t *hd_data)
 
static void hd_read_sdio (hd_data_t *hd_data)
 
static void hd_read_nd (hd_data_t *hd_data)
 
static void hd_read_visorbus (hd_data_t *hd_data)
 
static void hd_read_mdio (hd_data_t *hd_data)
 
void hd_scan_sysfs_pci (hd_data_t *hd_data)
 
void hd_pci_read_data (hd_data_t *hd_data)
 
void hd_pci_complete_data (hd_t *hd)
 

Detailed Description

PCI bus scan functions.

Macro Definition Documentation

◆ IORESOURCE_BITS

#define IORESOURCE_BITS   0x000000ff

◆ IORESOURCE_CACHEABLE

#define IORESOURCE_CACHEABLE   0x00004000

◆ IORESOURCE_DISABLED

#define IORESOURCE_DISABLED   0x10000000

◆ IORESOURCE_DMA

#define IORESOURCE_DMA   0x00000800

◆ IORESOURCE_IO

#define IORESOURCE_IO   0x00000100

◆ IORESOURCE_IRQ

#define IORESOURCE_IRQ   0x00000400

◆ IORESOURCE_MEM

#define IORESOURCE_MEM   0x00000200

◆ IORESOURCE_PREFETCH

#define IORESOURCE_PREFETCH   0x00001000

Referenced by hd_pci_complete_data().

◆ IORESOURCE_READONLY

#define IORESOURCE_READONLY   0x00002000

Referenced by hd_pci_complete_data().

Function Documentation

◆ add_edid_from_file()

void add_edid_from_file ( const char *  file,
pci_t pci,
int  index,
hd_data_t hd_data 
)
static

◆ add_mv643xx_eth()

void add_mv643xx_eth ( hd_data_t hd_data,
char *  entry,
char *  platform_type 
)
static

◆ add_pci_data()

void add_pci_data ( hd_data_t hd_data)
static

◆ add_pci_entry()

pci_t * add_pci_entry ( hd_data_t hd_data,
pci_t new_pci 
)
static

References hd_data, s_pci_t::next, and hd_data_t::pci.

Referenced by hd_pci_read_data().

◆ add_xen_network()

void add_xen_network ( hd_data_t hd_data)
static

◆ add_xen_storage()

void add_xen_storage ( hd_data_t hd_data)
static

◆ dump_pci_data()

void dump_pci_data ( hd_data_t hd_data)
static

◆ hd_pci_complete_data()

void hd_pci_complete_data ( hd_t hd)

◆ hd_pci_read_data()

void hd_pci_read_data ( hd_data_t hd_data)

◆ hd_read_ibmebus()

void hd_read_ibmebus ( hd_data_t hd_data)
static

◆ hd_read_macio()

void hd_read_macio ( hd_data_t hd_data)
static

◆ hd_read_mdio()

void hd_read_mdio ( hd_data_t hd_data)
static

◆ hd_read_mmc()

void hd_read_mmc ( hd_data_t hd_data)
static

◆ hd_read_nd()

void hd_read_nd ( hd_data_t hd_data)
static

◆ hd_read_of_platform()

void hd_read_of_platform ( hd_data_t hd_data)
static

◆ hd_read_platform()

void hd_read_platform ( hd_data_t hd_data)
static

◆ hd_read_ps3_system_bus()

void hd_read_ps3_system_bus ( hd_data_t hd_data)
static

◆ hd_read_sdio()

void hd_read_sdio ( hd_data_t hd_data)
static

◆ hd_read_uisvirtpci()

void hd_read_uisvirtpci ( hd_data_t hd_data)
static

◆ hd_read_vio()

void hd_read_vio ( hd_data_t hd_data)
static

◆ hd_read_virtio()

void hd_read_virtio ( hd_data_t hd_data)
static

◆ hd_read_visorbus()

void hd_read_visorbus ( hd_data_t hd_data)
static

◆ hd_read_vm()

void hd_read_vm ( hd_data_t hd_data)
static

◆ hd_read_xen()

void hd_read_xen ( hd_data_t hd_data)
static

◆ hd_scan_sysfs_pci()

void hd_scan_sysfs_pci ( hd_data_t hd_data)

◆ pci_cfg_byte()

unsigned char pci_cfg_byte ( pci_t pci,
int  fd,
unsigned  idx 
)
static

References s_pci_t::data, and s_pci_t::data_ext_len.

Referenced by hd_pci_read_data().