Page MenuHomeFreeBSD

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

Authored by dumbbell on Sun, Jun 14, 9:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 6, 1:56 AM
Unknown Object (File)
Sun, Jul 5, 2:48 AM
Unknown Object (File)
Fri, Jul 3, 6:37 AM
Unknown Object (File)
Thu, Jul 2, 9:07 PM
Unknown Object (File)
Sun, Jun 28, 12:20 AM
Unknown Object (File)
Sat, Jun 20, 2:46 AM
Unknown Object (File)
Fri, Jun 19, 7:43 AM
Unknown Object (File)
Fri, Jun 19, 7:04 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