commit | 4059598a068f7694f2238a3811d85cbfa520a8d5 | [log] [tgz] |
---|---|---|
author | Uwe Hermann <uwe@hermann-uwe.de> | Sat May 16 01:30:48 2009 +0000 |
committer | Uwe Hermann <uwe@hermann-uwe.de> | Sat May 16 01:30:48 2009 +0000 |
tree | a1ae8fe1136cb4e2d406477fb5c3e5a758801c0d | |
parent | 9ee107721f746b0b81dcacf2f59c4f48d4210b9e [diff] |
Older libpci versions (e.g 2.2.8, as it's default on current FreeBSD 7.2) don't properly fill the base_addr[0] struct member, so revert back to an explicit pci_read_long() call, otherwise detection of PCI devices and their base address will fail with strange error messages. Thanks Idwer Vollering <vidwer@gmail.com> for reporting and testing. Corresponding to flashrom svn r518. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>