aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/amd64/(developers-only)
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-06-03 05:36:35 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-10-11 13:51:11 +0000
commit7c9ee41f4fe4a6de6e5f4c3d7c3a38ff447c8cf3 (patch)
treebef946929b697d125381bc5c9fa9a13563e8fde6 /lib/libsys/amd64/(developers-only)
parente2bef7e30aa74ed3d46a5ce5d171993e9e2c14b8 (diff)
LinuxKPI: pci: first round of file cleanupHEADmain
While the multiple sections of the file are mostly clearly separated some bits were spread around. Get the device methods array to the end of the file saving us a lot of forward function delcarations and making it easier to rename them to a common lkpi_ prefix instead of linux_ showing that they are file local internal functions not part of any official LinuxKPI KPI. Sort the various lkpi_pci_* bus attachment functions together, followed by the lkpi_pci_iov_ ones. Then add the pci_[un]register_driver* driver bits. This keeps the group logically together. For the PCI functions then group the pdev allocations and free/release functions--for the two paths--together, giving them more homogeneous names and add comments to some of them so it is more clear which ones are shared ("common") and which ones belong to which code path. Move some helper function around to where they are needed now. There is still more to do for the resource section which sits somewhere in the middle but that will better be a separate pass. For the DMA and backlight parts, rename various private bits to a lkpi_ prefix as well (structures, variables, functions) away from the public linux_ prefix which should belong to the linuxolator in first place. No functional changes intended. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell (before rebase) Differential Revision: https://reviews.freebsd.org/D57433
Diffstat (limited to 'lib/libsys/amd64/(developers-only)')
0 files changed, 0 insertions, 0 deletions