class Capability

Defined at line 19 of file ../../src/devices/bus/drivers/pci/capabilities.h

General PCI/PCIe capability classes. Final calculated address

for config corresponds to cfg's base plus cap's base along with

the specific register's offset.

Public Methods

void Capability (uint8_t id, uint8_t base, const char * addr)

Defined at line 50 of file ../../src/devices/bus/drivers/pci/capabilities.h

void ~Capability ()

Defined at line 52 of file ../../src/devices/bus/drivers/pci/capabilities.h

uint8_t id ()

Defined at line 53 of file ../../src/devices/bus/drivers/pci/capabilities.h

uint8_t base ()

Defined at line 54 of file ../../src/devices/bus/drivers/pci/capabilities.h

const char * addr ()

Defined at line 55 of file ../../src/devices/bus/drivers/pci/capabilities.h

Enumerations

enum class Id : RegType
Name Value Comments
kNull 0

0x00

kPciPowerManagement 1

0x01

kAgp 2

0x02

kVitalProductData 3

0x03

kSlotIdentification 4

0x04

kMsi 5

0x05

kCompactPciHotSwap 6

0x06

kPciX 7

0x07

kHyperTransport 8

0x08

kVendor 9

0x09

kDebugPort 10

0x0a

kCompactPciCrc 11

0x0b

kPciHotplug 12

0x0c

kPciBridgeSubsystemVendorId 13

0x0d

kAgp8x 14

0x0e

kSecureDevice 15

0x0f

kPciExpress 16

0x10

kMsiX 17

0x11

kSataDataNdxCfg 18

0x12

kAdvancedFeatures 19

0x13

kEnhancedAllocation 20

0x14

kFlatteningPortalBridge 21

0x15

PCI Code and ID Assignment Specification Revision 1.9 section 2.

Defined at line 25 of file ../../src/devices/bus/drivers/pci/capabilities.h