Page MenuHomeFreeBSD

linuxkpi: Add `pci_map_rom()` and `pci_unmap_rom()`
Needs ReviewPublic

Authored by dumbbell on Jun 14 2026, 9:13 AM.
Referenced Files
Unknown Object (File)
Thu, Aug 13, 2:36 AM
Unknown Object (File)
Thu, Aug 13, 12:26 AM
Unknown Object (File)
Tue, Aug 11, 5:29 PM
Unknown Object (File)
Tue, Aug 11, 8:15 AM
Unknown Object (File)
Mon, Aug 10, 1:16 PM
Unknown Object (File)
Mon, Aug 10, 8:14 AM
Unknown Object (File)
Sat, Aug 8, 4:06 PM
Unknown Object (File)
Sat, Aug 8, 10:53 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

They were already defined as macros in various places in DRM drivers, aliasing the vga_pci_map_bios() and vga_pci_unmap_bios() functions. Let's move them to linuxkpi and avoid copies everywhere.

Because they use the vga_pci code internally, pci_map_rom() checks whether the given device is a video card. If it is not, it logs a "TODO" and returns NULL.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped