libhd  5.0
Data Fields
s_pci_t Struct Reference

structure holding the (raw) PCI data More...

#include <hd.h>

Data Fields

struct s_pci_tnext
 linked list More...
 
unsigned data_len
 the actual length of the data field More...
 
unsigned data_ext_len
 max. More...
 
unsigned char data [256]
 the PCI data More...
 
char * log
 log messages More...
 
unsigned flags
 various info, see enum pci_flags More...
 
unsigned cmd
 PCI_COMMAND. More...
 
unsigned hdr_type
 PCI_HEADER_TYPE. More...
 
unsigned secondary_bus
 

0 for PCI & CB bridges

More...
 
unsigned bus
 PCI bus #, nothing to do with hw_t.bus. More...
 
unsigned slot
 
unsigned func
 slot & function More...
 
unsigned base_class
 
unsigned sub_class
 
unsigned prog_if
 PCI device classes. More...
 
unsigned dev
 
unsigned vend
 
unsigned sub_dev
 
unsigned sub_vend
 
unsigned rev
 vendor & device ids More...
 
unsigned irq
 used irq, if any More...
 
uint64_t base_addr [7]
 I/O or memory base. More...
 
uint64_t base_len [7]
 I/O or memory ranges. More...
 
unsigned addr_flags [7]
 I/O or memory address flags. More...
 
uint64_t rom_base_addr
 memory base for card ROM More...
 
uint64_t rom_base_len
 memory range for card ROM More...
 
char * sysfs_id
 sysfs path More...
 
char * sysfs_bus_id
 sysfs bus id More...
 
char * modalias
 module alias More...
 
char * label
 Consistant Device Name (CDN), pci firmware spec 3.1, chapter 4.6.7. More...
 
unsigned edid_len [6]
 edid record length More...
 
unsigned char edid_data [6][0x80]
 edid record More...
 

Detailed Description

structure holding the (raw) PCI data

Field Documentation

◆ addr_flags

unsigned s_pci_t::addr_flags[7]

I/O or memory address flags.

Referenced by hd_pci_complete_data(), and hd_pci_read_data().

◆ base_addr

uint64_t s_pci_t::base_addr[7]

I/O or memory base.

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ base_class

unsigned s_pci_t::base_class

◆ base_len

uint64_t s_pci_t::base_len[7]

I/O or memory ranges.

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ bus

unsigned s_pci_t::bus

PCI bus #, nothing to do with hw_t.bus.

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ cmd

unsigned s_pci_t::cmd

PCI_COMMAND.

Referenced by hd_pci_read_data().

◆ data

unsigned char s_pci_t::data[256]

the PCI data

Referenced by dump_pci_data(), hd_pci_read_data(), and pci_cfg_byte().

◆ data_ext_len

unsigned s_pci_t::data_ext_len

max.

accessed config byte; see code

Referenced by dump_pci_data(), hd_pci_read_data(), and pci_cfg_byte().

◆ data_len

unsigned s_pci_t::data_len

the actual length of the data field

Referenced by hd_pci_read_data().

◆ dev

unsigned s_pci_t::dev

◆ edid_data

unsigned char s_pci_t::edid_data[6][0x80]

edid record

Referenced by add_edid_from_file(), and hd_scan_monitor().

◆ edid_len

unsigned s_pci_t::edid_len[6]

edid record length

Referenced by add_edid_from_file(), hd_pci_read_data(), and hd_scan_monitor().

◆ flags

unsigned s_pci_t::flags

various info, see enum pci_flags

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ func

unsigned s_pci_t::func

slot & function

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ hdr_type

unsigned s_pci_t::hdr_type

PCI_HEADER_TYPE.

Referenced by dump_pci_data(), and hd_pci_read_data().

◆ irq

unsigned s_pci_t::irq

used irq, if any

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ label

char* s_pci_t::label

Consistant Device Name (CDN), pci firmware spec 3.1, chapter 4.6.7.

Referenced by hd_pci_complete_data(), and hd_pci_read_data().

◆ log

char* s_pci_t::log

log messages

Referenced by dump_pci_data(), and free_hd_detail().

◆ modalias

char* s_pci_t::modalias

module alias

Referenced by hd_pci_complete_data(), and hd_pci_read_data().

◆ next

struct s_pci_t* s_pci_t::next

linked list

Referenced by add_pci(), add_pci_data(), add_pci_entry(), and dump_pci_data().

◆ prog_if

unsigned s_pci_t::prog_if

PCI device classes.

Referenced by dump_pci_data(), hd_modinfo_db(), hd_pci_complete_data(), and hd_pci_read_data().

◆ rev

unsigned s_pci_t::rev

vendor & device ids

Referenced by dump_pci_data(), hd_pci_complete_data(), and hd_pci_read_data().

◆ rom_base_addr

uint64_t s_pci_t::rom_base_addr

memory base for card ROM

Referenced by dump_pci_data().

◆ rom_base_len

uint64_t s_pci_t::rom_base_len

memory range for card ROM

◆ secondary_bus

unsigned s_pci_t::secondary_bus

0 for PCI & CB bridges

Referenced by dump_pci_data(), and hd_pci_read_data().

◆ slot

unsigned s_pci_t::slot

◆ sub_class

unsigned s_pci_t::sub_class

◆ sub_dev

unsigned s_pci_t::sub_dev

◆ sub_vend

unsigned s_pci_t::sub_vend

◆ sysfs_bus_id

char* s_pci_t::sysfs_bus_id

sysfs bus id

Referenced by free_hd_detail(), hd_pci_complete_data(), and hd_pci_read_data().

◆ sysfs_id

char* s_pci_t::sysfs_id

sysfs path

Referenced by add_pci(), add_pci_data(), free_hd_detail(), and hd_pci_read_data().

◆ vend

unsigned s_pci_t::vend

The documentation for this struct was generated from the following file: