Page MenuHomeFreeBSD

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

Authored by dumbbell on Jun 14 2026, 9:13 AM.
Tags
None
Referenced Files
F164156852: D57573.diff
Wed, Jul 29, 5:41 AM
Unknown Object (File)
Tue, Jul 28, 9:21 AM
Unknown Object (File)
Fri, Jul 24, 4:54 AM
Unknown Object (File)
Thu, Jul 23, 6:26 AM
Unknown Object (File)
Mon, Jul 20, 1:45 PM
Unknown Object (File)
Sat, Jul 18, 6:57 AM
Unknown Object (File)
Sat, Jul 18, 3:46 AM
Unknown Object (File)
Thu, Jul 16, 4:32 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