summaryrefslogtreecommitdiff
path: root/lib/pci.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-03-04 01:07:53 +0100
committerMartin Mares <mj@ucw.cz>2022-11-18 12:06:52 +0100
commitaa5a16ef419d2fe30cb6a17be5194f87b9b7785c (patch)
treea61976fe78c39575266e6d6b07e0521967c98441 /lib/pci.h
parent92bd9d99a1140593996ccaf6aed0f50df27c004d (diff)
downloadpciutils-aa5a16ef419d2fe30cb6a17be5194f87b9b7785c.tar.gz
libpci: Add new windows kldbgdrv.sys implementation
Microsoft Kernel Local Debugging Driver (kldbgdrv.sys) allow access for userspace processes to the PCI config space. It supports access up to 65536 domains and whole 4096 bytes long extended PCIe config space. Driver is signed by Microsoft and is available for both 32-bit and 64-bit systems. Driver is not part of Windows system and has to be installed via WinDbg installation package. Standalone installers for WinDbg 6.12.2.633 version: https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools_amd64/dbg_amd64.msi https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools/dbg_x86.msi This kldbgdrv.sys API is used by the !pci command of new WinDbg kernel debugger for displaying PCI config space. API of this driver is available only for processes with Debug privilege and only if system was booted with Debugging option.
Diffstat (limited to 'lib/pci.h')
-rw-r--r--lib/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pci.h b/lib/pci.h
index f6197c4..f198f11 100644
--- a/lib/pci.h
+++ b/lib/pci.h
@@ -44,6 +44,7 @@ enum pci_access_type {
PCI_ACCESS_SYLIXOS_DEVICE, /* SylixOS pci */
PCI_ACCESS_HURD, /* GNU/Hurd */
PCI_ACCESS_WIN32_CFGMGR32, /* Win32 cfgmgr32.dll */
+ PCI_ACCESS_WIN32_KLDBG, /* Win32 kldbgdrv.sys */
PCI_ACCESS_WIN32_SYSDBG, /* Win32 NT SysDbg */
PCI_ACCESS_MMIO_TYPE1, /* MMIO ports, type 1 */
PCI_ACCESS_MAX