PCIDev
for (PCIDev *dev = bus->child; dev; dev = dev->next) {
PCIDev *newDev = _CreateDevice(bus, dev, function);
PCI::_CreateBus(PCIDev *parent, uint8 domain, uint8 bus)
PCIDev *
PCIDev *newDev = new(std::nothrow) PCIDev;
PCIDev *sub = parent->child;
PCI::_GetBarInfo(PCIDev *dev, uint8 offset, uint32 &_ramAddress,
PCI::_GetRomBarInfo(PCIDev *dev, uint8 offset, uint32 &_address, uint32 *_size,
PCI::_ReadBasicInfo(PCIDev *dev)
PCI::_ReadHeaderInfo(PCIDev *dev)
for (PCIDev *dev = bus->child; dev; dev = dev->next) {
PCI::ReadConfig(PCIDev *device, uint16 offset, uint8 size)
PCI::WriteConfig(PCIDev *device, uint16 offset, uint8 size, uint32 value)
PCI::FindCapability(PCIDev *device, uint8 capID, uint8 *offset)
PCI::FindExtendedCapability(PCIDev *device, uint16 capID, uint16 *offset)
PCI::FindHTCapability(PCIDev *device, uint16 capID, uint8 *offset)
PCIDev *
PCIDev *
for (PCIDev *child = current->child; child != NULL;
PCIDev *found = _FindDevice(child->child, domain, bus, device,
PCIDev *device = FindDevice(domain, bus, _device, function);
PCI::GetPowerstate(PCIDev *device)
PCI::SetPowerstate(PCIDev *device, uint8 newState)
PCIDev *device = FindDevice(domain, bus, _device, function);
PCIDev *device = FindDevice(domain, bus, _device, function);
PCI::GetMSICount(PCIDev *device)
PCI::ConfigureMSI(PCIDev *device, uint32 count, uint32 *startVector)
PCI::UnconfigureMSI(PCIDev *device)
PCI::EnableMSI(PCIDev *device)
PCI::DisableMSI(PCIDev *device)
PCI::GetMSIXCount(PCIDev *device)
PCI::ConfigureMSIX(PCIDev *device, uint32 count, uint32 *startVector)
PCI::EnableMSIX(PCIDev *device)
PCI::_HtMSIMap(PCIDev *device, uint64 address)
PCI::_ReadMSIInfo(PCIDev *device)
PCI::_ReadMSIXInfo(PCIDev *device)
PCI::_ReadHtMappingInfo(PCIDev *device)
PCI::_UnconfigureMSIX(PCIDev *device)
PCI::_DisableMSIX(PCIDev *device)
PCIDev *dev = bus->child;
for (PCIDev *dev = bus->child; dev; dev = dev->next) {
status_t WriteConfig(PCIDev *device, uint16 offset,
status_t FindCapability(PCIDev *device, uint8 capID,
status_t FindExtendedCapability(PCIDev *device,
status_t FindHTCapability(PCIDev *device,
PCIDev * FindDevice(uint8 domain, uint8 bus, uint8 device,
uint8 GetPowerstate(PCIDev *device);
void SetPowerstate(PCIDev *device, uint8 state);
uint32 GetMSICount(PCIDev *device);
status_t ConfigureMSI(PCIDev *device, uint32 count, uint32 *startVector);
status_t UnconfigureMSI(PCIDev *device);
status_t EnableMSI(PCIDev *device);
status_t DisableMSI(PCIDev *device);
uint32 GetMSIXCount(PCIDev *device);
status_t ConfigureMSIX(PCIDev *device, uint32 count, uint32 *startVector);
status_t EnableMSIX(PCIDev *device);
PCIDev * _CreateDevice(PCIBus *parent, uint8 dev,
PCIBus * _CreateBus(PCIDev *parent, uint8 domain,
void _ReadBasicInfo(PCIDev *dev);
void _ReadHeaderInfo(PCIDev *dev);
size_t _GetBarInfo(PCIDev *dev, uint8 offset,
void _GetRomBarInfo(PCIDev *dev, uint8 offset,
PCIDev * _FindDevice(PCIBus *current, uint8 domain,
void _HtMSIMap(PCIDev *device, uint64 address);
void _ReadMSIInfo(PCIDev *device);
void _ReadMSIXInfo(PCIDev *device);
void _ReadHtMappingInfo(PCIDev *device);
status_t _UnconfigureMSIX(PCIDev *device);
status_t _DisableMSIX(PCIDev *device);
struct PCIDev;
PCIDev * parent;
PCIDev * child;
PCIDev * next;
uint32 ReadConfig(PCIDev *device, uint16 offset,
PCIDev* device;
PCIDev *dev = gPCI->FindDevice(domain, bus, deviceNumber, function);
PCIDev* dev;
PCIDev* dev;
PCIDev* dev;
PCIDev* dev;
PCIDev* dev;
PCIDev* dev;
PCIDev* dev;
ResolveBDF(uint8 virtualBus, uint8 device, uint8 function, PCIDev*& dev)
PCIDev* dev;
for (PCIDev* dev = bus->child; dev != NULL; dev = dev->next) {