agp: Do not limit attachment to primary devices
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 8 Dec 2012 08:55:02 +0000 (09:55 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 9 Dec 2012 13:37:47 +0000 (14:37 +0100)
commit1e058a4369b9e46deb9a78083d554f9a37d4600e
tree9cfda9c63dd97d36fb43dcdad67b7d9822bff3d7
parent246f9ec5f32ad470bed1719299ce50ed81fed267
agp: Do not limit attachment to primary devices

* PCIS_DISPLAY_VGA really corresponds to the first graphic device
  initialized by the BIOS at boot time.

* Recent Intel chips contain both AGP and graphic hardware, identified by
  the same PCI ids

* The agp device thus has no associated PCIS_DISPLAY_VGA flag when the
  Intel graphic device is not set as primary display in BIOS

* Tested with:
  - ATI Radeon X550 (primary graphic card)
  - Intel Xeon E3-1245v2 (agp device)
sys/dev/agp/agp.c
sys/dev/agp/agp_i810.c