Returns true for a VGA-compatible display controller and for the pre-PCI 2.0 VGA class (base 0x00, subclass 0x01), as Linux's pci_is_vga() does. LinuxKPI keeps only the base class in pdev->class, so the subclass comes from pci_get_subclass(), using the native class constants as linuxkpi_pci_map_rom() does. Used by drm/virtio to decide whether to remove the firmware framebuffer on virtio-vga.
Details
Details
- Reviewers
wulf manu - Commits
- rG8558dd61e674: linuxkpi: add pci_is_vga()
Built on main with this applied: linuxkpi, linuxkpi_wlan, mlx5, iwlwifi and ath10k for aarch64 and amd64, and drm-kmod's virtio-gpu (freebsd/drm-kmod#517) without its interim copy. drm-kmod's identical interim copy runs at virtio-gpu attach on 16.0-CURRENT aarch64 under UTM.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 416 | Than we should fix lkpifill_pci_dev() and/or use native FreeBSD code. See e.g. linuxkpi_pci_map_rom() for example | |
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 416 | Switched to native code, like linuxkpi_pci_map_rom(): pdev->class plus pci_get_subclass() against PCIC_DISPLAY/PCIS_DISPLAY_VGA and PCIC_OLD/PCIS_OLD_VGA. That also drops the pci_ids.h change. | |