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
unsigned data_len
 the actual length of the data field
unsigned data_ext_len
 max.
unsigned char data [256]
 the PCI data
char * log
 log messages
unsigned flags
 various info, see enum pci_flags
unsigned cmd
 PCI_COMMAND.
unsigned hdr_type
 PCI_HEADER_TYPE.
unsigned secondary_bus
 > 0 for PCI & CB bridges
unsigned bus
 PCI bus #, *nothing* to do with hw_t.bus.
unsigned slot
unsigned func
 slot & function
unsigned base_class
unsigned sub_class
unsigned prog_if
 PCI device classes.
unsigned dev
unsigned vend
unsigned sub_dev
unsigned sub_vend
unsigned rev
 vendor & device ids
unsigned irq
 used irq, if any
uint64_t base_addr [7]
 I/O or memory base.
uint64_t base_len [7]
 I/O or memory ranges.
unsigned addr_flags [7]
 I/O or memory address flags.
uint64_t rom_base_addr
 memory base for card ROM
uint64_t rom_base_len
 memory range for card ROM
char * sysfs_id
 sysfs path
char * sysfs_bus_id
 sysfs bus id
char * modalias
 module alias
unsigned edid_len [4]
 edid record length
unsigned char edid_data [4][0x80]
 edid record

Detailed Description

structure holding the (raw) PCI data


Field Documentation

unsigned s_pci_t::addr_flags[7]

I/O or memory address flags.

Referenced by hd_pci_complete_data(), and hd_pci_read_data().

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().

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().

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().

unsigned s_pci_t::cmd

PCI_COMMAND.

Referenced by hd_pci_read_data().

unsigned char s_pci_t::data[256]

the PCI data

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

max.

accessed config byte; see code

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

the actual length of the data field

Referenced by hd_pci_read_data().

unsigned s_pci_t::dev
unsigned char s_pci_t::edid_data[4][0x80]

edid record

Referenced by hd_pci_read_data(), and hd_scan_monitor().

unsigned s_pci_t::edid_len[4]

edid record length

Referenced by hd_pci_read_data(), and hd_scan_monitor().

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().

unsigned s_pci_t::func

slot & function

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

PCI_HEADER_TYPE.

Referenced by dump_pci_data(), and hd_pci_read_data().

unsigned s_pci_t::irq

used irq, if any

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

char* s_pci_t::log

log messages

Referenced by dump_pci_data(), and free_hd_detail().

module alias

Referenced by hd_pci_complete_data(), and hd_pci_read_data().

linked list

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

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().

unsigned s_pci_t::rev

vendor & device ids

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

memory base for card ROM

Referenced by dump_pci_data().

memory range for card ROM

> 0 for PCI & CB bridges

Referenced by dump_pci_data(), and hd_pci_read_data().

unsigned s_pci_t::slot
unsigned s_pci_t::sub_dev

sysfs bus id

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

sysfs path

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

unsigned s_pci_t::vend

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