Page MenuHomeFreeBSD

LinuxKPI: pci.h add more defines and functions
ClosedPublic

Authored by bz on Sep 21 2022, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 22, 12:48 PM
Unknown Object (File)
Wed, Oct 22, 12:48 PM
Unknown Object (File)
Wed, Oct 22, 12:48 PM
Unknown Object (File)
Tue, Oct 21, 11:58 PM
Unknown Object (File)
Mon, Oct 13, 12:27 PM
Unknown Object (File)
Aug 3 2025, 7:52 PM
Unknown Object (File)
Jul 26 2025, 8:04 PM
Unknown Object (File)
Jul 24 2025, 12:44 PM

Details

Summary

Add #defines for PCI_DEVICE_ID and repoint the PCI_VENDOR_ID one.
Add dev_is_pci().
Add pcie_capability_clear_word() according to similar implementations.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Sep 21 2022, 7:42 PM
hselasky added a subscriber: hselasky.
hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/pci.h
1172

Mixing u16 and uint16_t

This revision is now accepted and ready to land.Sep 22 2022, 11:29 AM
bz marked an inline comment as done.Sep 22 2022, 2:35 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/pci.h
1172

Fixed locally; very common in this file.

This revision was automatically updated to reflect the committed changes.
bz marked an inline comment as done.