iPXE
Data Fields
pci_device Struct Reference

A PCI device. More...

#include <pci.h>

Data Fields

struct device dev
 Generic device. More...
 
unsigned long membase
 Memory base. More...
 
unsigned long ioaddr
 I/O address. More...
 
uint16_t vendor
 Vendor ID. More...
 
uint16_t device
 Device ID. More...
 
uint32_t class
 Device class. More...
 
uint8_t irq
 Interrupt number. More...
 
uint32_t busdevfn
 Segment, bus, device, and function (bus:dev.fn) number. More...
 
struct pci_driverdriver
 Driver for this device. More...
 
void * priv
 Driver-private data. More...
 
struct pci_device_idid
 Driver device ID. More...
 

Detailed Description

A PCI device.

Definition at line 187 of file pci.h.

Field Documentation

◆ dev

struct device pci_device::dev

◆ membase

unsigned long pci_device::membase

◆ ioaddr

unsigned long pci_device::ioaddr

◆ vendor

uint16_t pci_device::vendor

◆ device

uint16_t pci_device::device

◆ class

uint32_t pci_device::class

Device class.

Definition at line 206 of file pci.h.

Referenced by efipci_supported(), pci_find_driver(), pci_read_config(), and pcibus_probe().

◆ irq

uint8_t pci_device::irq

◆ busdevfn

uint32_t pci_device::busdevfn

◆ driver

struct pci_driver* pci_device::driver

Driver for this device.

Definition at line 212 of file pci.h.

Referenced by pci_probe(), pci_remove(), and pci_set_driver().

◆ priv

void* pci_device::priv

Driver-private data.

Use pci_set_drvdata() and pci_get_drvdata() to access this field.

Definition at line 218 of file pci.h.

Referenced by pci_get_drvdata(), and pci_set_drvdata().

◆ id

struct pci_device_id* pci_device::id

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