Page MenuHomeFreeBSD

linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c
ClosedPublic

Authored by imp on Apr 4 2022, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 13, 9:50 PM
Unknown Object (File)
Apr 22 2025, 2:54 AM
Unknown Object (File)
Apr 21 2025, 9:21 AM
Unknown Object (File)
Apr 10 2025, 5:17 PM
Unknown Object (File)
Mar 30 2025, 1:47 PM
Unknown Object (File)
Mar 13 2025, 9:35 PM
Unknown Object (File)
Feb 22 2025, 12:09 AM
Unknown Object (File)
Feb 17 2025, 2:28 AM

Details

Summary

Both pci_request_region and _lkpi_pci_iomap encode the size of struct
pci_mmio_region into their code. Move from .h to .c files to move that
knowledge from the client drivers into the linuxkpi module.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Apr 4 2022, 5:04 PM
hselasky added a subscriber: hselasky.
hselasky added inline comments.
sys/compat/linuxkpi/common/src/linux_pci.c
758

Maybe _lkpi_pci_request_region will be required. Make sure LINT passes.

This revision is now accepted and ready to land.Apr 4 2022, 5:20 PM
sys/compat/linuxkpi/common/src/linux_pci.c
758

I don't think we need this since FreeBSD doesn't have a conflicting global symbol.
LINT on x86 passes and a grep shows no conflicts: just linuxkpi drivers and this definition.