HyperDbg Debugger
Loading...
Searching...
No Matches
Pci.h
Go to the documentation of this file.
1
12#pragma once
13#include "pch.h"
14
16// Definition //
18
19#define CFGADR 0xCF8
20#define CFGDAT 0xCFC
21
23// Functions //
25
27PciReadCam(WORD Bus, WORD Device, WORD Function, BYTE Offset, UINT8 Width);
29PciWriteCam(WORD Bus, WORD Device, WORD Function, BYTE Offset, UINT8 Width, QWORD Value);
BOOLEAN PciWriteCam(WORD Bus, WORD Device, WORD Function, BYTE Offset, UINT8 Width, QWORD Value)
Write to PCI configuration space (CAM) at given offset.
Definition Pci.c:74
QWORD PciReadCam(WORD Bus, WORD Device, WORD Function, BYTE Offset, UINT8 Width)
Read from PCI configuration space (CAM) at given offset.
Definition Pci.c:25
unsigned short WORD
Definition BasicTypes.h:42
UCHAR BOOLEAN
Definition BasicTypes.h:35
unsigned char BYTE
Definition BasicTypes.h:40
unsigned long long QWORD
Definition BasicTypes.h:24
unsigned char UINT8
Definition BasicTypes.h:52
RequestedActionOfThePacket Value(0x1) 00000000
Definition pci-id.h:26