mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
Check vendor_id for PCI based external programmers
Restructure PCI device detection code. Rename pcidev_validate to pcidev_readbar. Note: Slight changes in behaviour are possible, especially on dual/quad chip NICs which appear as more than one PCI device. Found devices are no longer printed at _pinfo level, but rather at _pdbg level. Corresponding to flashrom svn r1548. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
@ -87,7 +87,7 @@ int nicintel_init(void)
|
||||
goto error_out_unmap;
|
||||
|
||||
/* FIXME: Using pcidev_dev _will_ cause pretty explosions in the future. */
|
||||
addr = pcidev_validate(pcidev_dev, PCI_BASE_ADDRESS_0, nics_intel);
|
||||
addr = pcidev_readbar(pcidev_dev, PCI_BASE_ADDRESS_0);
|
||||
/* FIXME: This is not an aligned mapping. Use 4k? */
|
||||
nicintel_control_bar = physmap("Intel NIC control/status reg",
|
||||
addr, NICINTEL_CONTROL_MEMMAP_SIZE);
|
||||
|
Reference in New Issue
Block a user