HyperDbg Debugger
Toggle main menu visibility
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
17
typedef
struct
SubDevice
18
{
19
UINT16
SubVendorId
;
20
UINT16
SubDeviceId
;
21
CHAR
SubSystemName
[
PCI_NAME_STR_LENGTH
];
22
struct
SubDevice
*
Next
;
23
}
SubDevice
;
24
25
typedef
struct
Device
26
{
27
UINT16
DeviceId
;
28
CHAR
DeviceName
[
PCI_NAME_STR_LENGTH
];
29
SubDevice
*
SubDevices
;
30
struct
Device
*
Next
;
31
}
Device
;
32
33
typedef
struct
Vendor
34
{
35
UINT16
VendorId
;
36
CHAR
VendorName
[
PCI_NAME_STR_LENGTH
];
37
Device
*
Devices
;
38
}
Vendor
;
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 //
49
Vendor
*
50
GetVendorById
(
UINT16
VendorId);
51
void
52
FreeVendor
(
Vendor
* VendorToFree);
53
void
54
FreePciIdDatabase
();
55
Device
*
56
GetDeviceFromVendor
(
Vendor
* VendorToUse,
UINT16
DeviceId);
57
SubDevice
*
58
GetSubDeviceFromDevice
(
Device
* DeviceToUse,
UINT16
SubVendorId,
UINT16
SubDeviceId);
UINT16
unsigned short UINT16
Definition
BasicTypes.h:53
CHAR
char CHAR
Definition
BasicTypes.h:33
FreeVendor
void FreeVendor(Vendor *VendorToFree)
Frees Vendor and all of its members.
Definition
pci-id.cpp:260
PCI_NAME_STR_LENGTH
#define PCI_NAME_STR_LENGTH
Definition
pci-id.h:15
GetDeviceFromVendor
Device * GetDeviceFromVendor(Vendor *VendorToUse, UINT16 DeviceId)
Returns Device entry corresponding to DeviceId.
Definition
pci-id.cpp:339
GetVendorById
Vendor * GetVendorById(UINT16 VendorId)
Returns Vendor entry, including corresponding devices and subdevices.
Definition
pci-id.cpp:305
FreePciIdDatabase
void FreePciIdDatabase()
Frees PciIdDatabaseBuffer.
Definition
pci-id.cpp:288
GetSubDeviceFromDevice
SubDevice * GetSubDeviceFromDevice(Device *DeviceToUse, UINT16 SubVendorId, UINT16 SubDeviceId)
Returns SubDevice entry corresponding to SubVendorId and DeviceId.
Definition
pci-id.cpp:368
Device
Definition
pci-id.h:26
Device::DeviceId
UINT16 DeviceId
Definition
pci-id.h:27
Device::SubDevices
SubDevice * SubDevices
Definition
pci-id.h:29
Device::DeviceName
CHAR DeviceName[PCI_NAME_STR_LENGTH]
Definition
pci-id.h:28
Device::Next
struct Device * Next
Definition
pci-id.h:30
SubDevice
Definition
pci-id.h:18
SubDevice::SubDeviceId
UINT16 SubDeviceId
Definition
pci-id.h:20
SubDevice::SubVendorId
UINT16 SubVendorId
Definition
pci-id.h:19
SubDevice::SubSystemName
CHAR SubSystemName[PCI_NAME_STR_LENGTH]
Definition
pci-id.h:21
SubDevice::Next
struct SubDevice * Next
Definition
pci-id.h:22
Vendor
Definition
pci-id.h:34
Vendor::Devices
Device * Devices
Definition
pci-id.h:37
Vendor::VendorName
CHAR VendorName[PCI_NAME_STR_LENGTH]
Definition
pci-id.h:36
Vendor::VendorId
UINT16 VendorId
Definition
pci-id.h:35
hyperdbg
libhyperdbg
header
pci-id.h
Generated by
1.17.0