HyperDbg Debugger
Loading...
Searching...
No Matches
pci-id.h
Go to the documentation of this file.
1
12#pragma once
13
14#define PCI_ID_AS_STR_LENGTH (sizeof(UINT16) * 2)
15#define PCI_NAME_STR_LENGTH 255
16
24
32
39
40//
41// PCI ID database courtesy of PCI ID Database (pciutils) project at
42// https://pci-ids.ucw.cz/
43//
44#define PCI_ID_DATABASE_PATH "constants\\pci.ids"
45
47// Functions //
49Vendor *
50GetVendorById(UINT16 VendorId);
51void
52FreeVendor(Vendor * VendorToFree);
53void
55Device *
56GetDeviceFromVendor(Vendor * VendorToUse, UINT16 DeviceId);
58GetSubDeviceFromDevice(Device * DeviceToUse, UINT16 SubVendorId, UINT16 SubDeviceId);
unsigned short UINT16
Definition BasicTypes.h:53
char CHAR
Definition BasicTypes.h:33
void FreeVendor(Vendor *VendorToFree)
Frees Vendor and all of its members.
Definition pci-id.cpp:260
#define PCI_NAME_STR_LENGTH
Definition pci-id.h:15
Device * GetDeviceFromVendor(Vendor *VendorToUse, UINT16 DeviceId)
Returns Device entry corresponding to DeviceId.
Definition pci-id.cpp:339
Vendor * GetVendorById(UINT16 VendorId)
Returns Vendor entry, including corresponding devices and subdevices.
Definition pci-id.cpp:305
void FreePciIdDatabase()
Frees PciIdDatabaseBuffer.
Definition pci-id.cpp:288
SubDevice * GetSubDeviceFromDevice(Device *DeviceToUse, UINT16 SubVendorId, UINT16 SubDeviceId)
Returns SubDevice entry corresponding to SubVendorId and DeviceId.
Definition pci-id.cpp:368
Definition pci-id.h:26
UINT16 DeviceId
Definition pci-id.h:27
SubDevice * SubDevices
Definition pci-id.h:29
CHAR DeviceName[PCI_NAME_STR_LENGTH]
Definition pci-id.h:28
struct Device * Next
Definition pci-id.h:30
Definition pci-id.h:18
UINT16 SubDeviceId
Definition pci-id.h:20
UINT16 SubVendorId
Definition pci-id.h:19
CHAR SubSystemName[PCI_NAME_STR_LENGTH]
Definition pci-id.h:21
struct SubDevice * Next
Definition pci-id.h:22
Definition pci-id.h:34
Device * Devices
Definition pci-id.h:37
CHAR VendorName[PCI_NAME_STR_LENGTH]
Definition pci-id.h:36
UINT16 VendorId
Definition pci-id.h:35