Repository navigation
freebsd: add pciio.h - #5766
Open
jheanlee wants to merge 1 commit into
Open
freebsd: add pciio.h#5766jheanlee wants to merge 1 commit into
pciio.h#5766jheanlee wants to merge 1 commit into
Conversation
jheanlee
force-pushed
the
freebsd-pciio
branch
from
November 22, 2026 04:27
56e2927 to
10a08f1
Compare
jheanlee
marked this pull request as draft
November 22, 2026 05:14
jheanlee
force-pushed
the
freebsd-pciio
branch
from
November 22, 2026 05:44
10a08f1 to
ff6b40b
Compare
Author
|
I need a bit of help with Update: According to #5026, it seems that I have a different toolchain than CI |
jheanlee
force-pushed
the
freebsd-pciio
branch
3 times, most recently
from
November 23, 2026 03:07
668441d to
bfa5d37
Compare
Author
|
FreeBSD added pci_conf::pc_secbus and pci_conf::pc_subbus, and reduced pci_conf::pc_spare from 64 to 62 in version 15.1. Is there a cfg value for minor releases? |
jheanlee
marked this pull request as ready for review
November 23, 2026 03:30
This comment has been minimized.
This comment has been minimized.
Add bindings for all members of `sys/pciio.h`.
`sys/pciio.h` provides enumeration and information of PCI(e) devices through `ioctl`.
Compatibility for `#define PCIOCGETCONF _IOWR('p', 1, struct pci_conf_io)` is not added because it was deprecated in FreeBSD 7.0.
Link: https://github.com/freebsd/freebsd-src/blob/4f6f4aacaf97f301e5c5646649a1217ca8099349/sys/sys/pciio.h
jheanlee
force-pushed
the
freebsd-pciio
branch
from
November 23, 2026 04:08
bfa5d37 to
c5c5061
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add bindings for all members of
sys/pciio.h.sys/pciio.hprovides enumeration and information of PCI(e) devices throughioctl.Compatibility for
#define PCIOCGETCONF _IOWR('p', 1, struct pci_conf_io)is not added because it was deprecated in FreeBSD 7.0.Help needed
FreeBSD added
pci_conf::pc_secbusandpci_conf::pc_subbus, and reducedpci_conf::pc_sparefrom 64 to 62 in version 15.1.Checklist
libc-test/semverhave been updated*LASTor*MAXhave the standarddoc comment
cargo test -p libc-test --target mytarget);especially relevant for platforms that may not be checked in CI
I ran the test locally on FreeBSD 14.5 and 15.1, and they both failed.
For 14.5, according to #5026, it seems that I have a different toolchain than CI.
For 15.1, FreeBSD added
pci_conf::pc_secbusandpci_conf::pc_subbus, and reducedpci_conf::pc_sparefrom 64 to 62. The API is backwards compatible, butlibc-testwon't pass when comparing it to the new API.@rustbot label +stable-nominated