rvp
$ uname -a
NetBSD hackbox 9.1_STABLE NetBSD 9.1_STABLE (GENERIC) #0: Fri Jan 15 17:47:48 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
$ ls -l $(which intel_backlight)
-r-sr-xr-x 1 root wheel 14880 Jan 20 16:02 /usr/pkg/sbin/intel_backlight
$ ldd $(which intel_backlight)
/usr/pkg/sbin/intel_backlight:
-ldrm_intel.0 => /usr/X11R7/lib/libdrm_intel.so.0
-ldrm.3 => /usr/X11R7/lib/libdrm.so.3
-lm.0 => /usr/lib/libm.so.0
-lc.12 => /usr/lib/libc.so.12
-lpci.2 => /usr/lib/libpci.so.2
-lpciaccess.0 => /usr/X11R7/lib/libpciaccess.so.0
-lz.1 => /usr/lib/libz.so.1
-lx86_64.0 => /usr/lib/libx86_64.so.0
$ pcictl pci0 list -N
000:00:0: Intel Ivy Bridge Host Bridge (host bridge, revision 0x09) [pchb0]
000:02:0: Intel Ivy Bridge Integrated Graphics Device (VGA display, revision 0x09) [i915drmkms0]
000:20:0: Intel 7 Series USB xHCI (USB serial bus, xHCI, revision 0x04) [xhci0]
000:22:0: Intel 7 Series MEI Controller (miscellaneous communications, revision 0x04)
000:22:3: Intel 7 Series KT (serial communications, 16550-compat, revision 0x04) [puc0]
000:25:0: Intel 82579LM Gigabit Network Connection (ethernet network, revision 0x04) [wm0]
000:26:0: Intel 7 Series USB EHCI (USB serial bus, EHCI, revision 0x04) [ehci0]
000:27:0: Intel 7 Series HD Audio (mixed mode multimedia, revision 0x04) [hdaudio0]
000:28:0: Intel 7 Series PCIe (PCI bridge, revision 0xc4) [ppb0]
000:28:1: Intel 7 Series PCIe (PCI bridge, revision 0xc4) [ppb1]
000:28:2: Intel 7 Series PCIe (PCI bridge, revision 0xc4) [ppb2]
000:29:0: Intel 7 Series USB EHCI (USB serial bus, EHCI, revision 0x04) [ehci1]
000:31:0: Intel Mobile QM77 LPC (ISA bridge, revision 0x04) [ichlpcib0]
000:31:2: Intel 7 Series (mobile) SATA Controller (AHCI) (SATA mass storage, AHCI 1.0, revision 0x04) [ahcisata0]
000:31:3: Intel 7 Series SMBus Controller (SMBus serial bus, revision 0x04) [ichsmb0]
002:00:0: Ricoh 5U823 SD/MMC Controller (miscellaneous system, interface 0x01, revision 0x04) [sdhc0]
003:00:0: Intel Centrino Advanced-N 6205 WiFi (miscellaneous network, revision 0x34) [iwn0]
$ pcictl pci0 dump -d 2
PCI configuration registers:
Common header:
0x00: 0x01668086 0x00900007 0x03000009 0x00000000
Vendor Name: Intel (0x8086)
Device Name: Ivy Bridge Integrated Graphics Device (0x0166)
Command register: 0x0007
I/O space accesses: on
Memory space accesses: on
Bus mastering: on
Special cycles: off
MWI transactions: off
Palette snooping: off
Parity error checking: off
Address/data stepping: off
System error (SERR): off
Fast back-to-back transactions: off
Interrupt disable: off
Status register: 0x0090
Immediate Readiness: off
Interrupt status: inactive
Capability List support: on
66 MHz capable: off
User Definable Features (UDF) support: off
Fast back-to-back capable: on
Data parity error detected: off
DEVSEL timing: fast (0x0)
Slave signaled Target Abort: off
Master received Target Abort: off
Master received Master Abort: off
Asserted System Error (SERR): off
Parity error detected: off
Class Name: display (0x03)
Subclass Name: VGA (0x00)
Interface: 0x00
Revision ID: 0x09
BIST: 0x00
Header Type: 0x00 (0x00)
Latency Timer: 0x00
Cache Line Size: 0bytes (0x00)
Type 0 ("normal" device) header:
0x10: 0xf0000004 0x00000000 0xe000000c 0x00000000
0x20: 0x00006001 0x00000000 0x00000000 0x21fa17aa
0x30: 0x00000000 0x00000090 0x00000000 0x0000010b
Base address register at 0x10
type: 64-bit nonprefetchable memory
base: 0x00000000f0000000
Base address register at 0x18
type: 64-bit prefetchable memory
base: 0x00000000e0000000
Base address register at 0x20
type: I/O
base: 0x00006000
Base address register at 0x24
not implemented
Cardbus CIS Pointer: 0x00000000
Subsystem vendor ID: 0x17aa
Subsystem ID: 0x21fa
Expansion ROM Base Address Register: 0x00000000
base: 0x00000000
Expansion ROM Enable: off
Validation Status: Validation not supported
Validation Details: 0x0
Capability list pointer: 0x90
Reserved @ 0x38: 0x00000000
Maximum Latency: 0x00
Minimum Grant: 0x00
Interrupt pin: 0x01 (pin A)
Interrupt line: 0x0b
Capability register at 0x90
type: 0x05 (MSI)
Capability register at 0xd0
type: 0x01 (Power Management)
Capability register at 0xa4
type: 0x13 (Advanced Features)
PCI Power Management Capabilities Register
Capabilities register: 0x0022
Version: 1.1
PME# clock: off
Device specific initialization: on
3.3V auxiliary current: self-powered
D1 power management state support: off
D2 power management state support: off
PME# support D0: off
PME# support D1: off
PME# support D2: off
PME# support D3 hot: off
PME# support D3 cold: off
Control/status register: 0x00000000
Power state: D0
PCI Express reserved: off
No soft reset: off
PME# assertion: disabled
Data Select: 0
Data Scale: 0
PME# status: off
Bridge Support Extensions register: 0x00
B2/B3 support: off
Bus Power/Clock Control Enable: off
Data register: 0x00
PCI Message Signaled Interrupt
Message Control register: 0x0000
MSI Enabled: off
Multiple Message Capable: no (1 vector)
Multiple Message Enabled: off (1 vector)
64 Bit Address Capable: off
Per-Vector Masking Capable: off
Extended Message Data Capable: off
Extended Message Data Enable: off
Message Address register: 0x00000000
Message Data register: 0x0000
Advanced Features Capability Register
AF Capabilities register: 0x03
AF Structure Length: 0x06
Transaction Pending: on
Function Level Reset: on
AF Control register: 0x00
AF Status register: 0x00
Transaction Pending: off
Device-dependent header:
0x40: 0x010c0009 0xe200619b 0x14e800d0 0x00000000
0x50: 0x00000211 0x00000011 0x00000000 0xdba00001
0x60: 0x00020000 0x00000000 0x00000000 0x00000000
0x70: 0x00000000 0x00000000 0x00000000 0x00000000
0x80: 0x00000000 0x00000000 0x00000000 0x00000000
0x90: 0x0000d005 0x00000000 0x00000000 0x00000000
0xa0: 0x00000000 0x03060013 0x00000000 0x00000000
0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
0xd0: 0x0022a401 0x00000000 0x00000000 0x00000000
0xe0: 0x00000000 0x00000000 0x00008000 0x00000000
0xf0: 0x00000000 0x00000000 0x00090000 0xdaf55018