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
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 420 | 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 | ||
|---|---|---|
| 420 | 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. | |