vga_pci: Improve vga boot display detection.
authorImre Vadasz <imre@vdsz.com>
Fri, 27 Jun 2014 19:29:04 +0000 (21:29 +0200)
committerImre Vadasz <imre@vdsz.com>
Sat, 28 Jun 2014 12:11:27 +0000 (14:11 +0200)
commit2a979d810b3ef64e1bbd20c55e113d5e39db5362
tree21d3efeb54d22df83f13bcb099ce76cad9f5daa9
parentd5a7158eca527110a20ffdf1b1db59be1300a679
vga_pci: Improve vga boot display detection.

* Check the "VGA Enable" bit on the parent bridge only if it is a
  PCI-to-PCI bridge.

* Always check the "I/O" and "Memory address space decoding" bits on the
  video card itself.

* Furthermore, vga_pci_attach() logs "Boot video device" if the card
  being attached is the Chosen One:
    vgapci0: <VGA-compatible display> [...]
    vgapci0: Boot video device

This is FreeBSD's r259579.

Tested-by: François Tigeot <ftigeot@wolfpond.org>
sys/bus/pci/vga_pci.c