]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r254882, r254883, r255571:
authordumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 8 Feb 2014 07:53:39 +0000 (07:53 +0000)
committerdumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 8 Feb 2014 07:53:39 +0000 (07:53 +0000)
commit56133fccacb6171fa10997f6224df681b7874cf4
tree5482119021888a7ef82d5d8eb5ae28967bcc12a6
parentf52c009528d5bf1903d88498c0a528b3cf403386
MFC r254882, r254883, r255571:

vga_pci: Add API to map the Video BIOS

Here are two new functions to map and unmap the Video BIOS:
    void * vga_pci_map_bios(device_t dev, size_t *size);
    void   vga_pci_unmap_bios(device_t dev, void *bios);

The BIOS is either taken from the shadow copy made by the System BIOS at
boot time if the given device was used for the default display (i386,
amd64 and ia64 only), or from the PCI expansion ROM.

Additionally, one can determine if a given device was the default
display at boot time using the following new function:
    int    vga_pci_is_boot_display(device_t dev);

Submitted by: jhb@ (r255571)

git-svn-id: svn://svn.freebsd.org/base/stable/9@261622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/pci/pcivar.h
sys/dev/pci/vga_pci.c