]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: PlatformBdsLib: Dynamic PCI Interrupt Line register setup
authorGabriel Somlo <somlo@cmu.edu>
Mon, 17 Nov 2014 19:09:12 +0000 (19:09 +0000)
committerlersek <lersek@Edk2>
Mon, 17 Nov 2014 19:09:12 +0000 (19:09 +0000)
commit5218c27950c4d238abe85ab17127755cb6e39fbf
tree8f7b1b7b2d47a709b6d56c5dd64e2bbf34b03fee
parent9840b1299de78458a42d35b8d1d6cbadd1f6da72
OvmfPkg: PlatformBdsLib: Dynamic PCI Interrupt Line register setup

Remove hard-coded list of PCI devices for which the Interrupt Line
register is initialized. Instead, provide a "visitor" function to
initialize the register only for present and applicable PCI devices.

At this time, we match the behavior of SeaBIOS (file src/fw/pciinit.c,
functions *_pci_slot_get_irq() and "map the interrupt" block from
pci_bios_init_device()).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16398 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c