Restructured PCI subsystem to fit the new device model.
authorMichael Brown <mcb30@etherboot.org>
Tue, 16 May 2006 15:12:06 +0000 (15:12 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 16 May 2006 15:12:06 +0000 (15:12 +0000)
commit15ee09ed10d71969abeea9f578f061e096ef43d0
treefe9465a87de8f62287474b1c2dc85516b868fbf5
parentfcdab6299c1d2714164672f3313523d366b033f8
Restructured PCI subsystem to fit the new device model.

Generic PCI code now handles 64-bit BARs correctly when setting
"membase"; drivers should need to call pci_bar_start() only if they want
to use BARs other than the first memory or I/O BAR.

Split rarely-used PCI functions out into pciextra.c.

Core PCI code is now 662 bytes (down from 1308 bytes in Etherboot 5.4).
284 bytes of this saving comes from the pci/pciextra split.

Cosmetic changes to lots of drivers (e.g. vendor_id->vendor in order to
match the names used in Linux).
35 files changed:
src/arch/i386/core/pci_io.c
src/arch/i386/prefix/select_pci.c [deleted file]
src/core/btext.c
src/drivers/bus/pci.c
src/drivers/bus/pciextra.c [new file with mode: 0644]
src/drivers/net/3c595.c
src/drivers/net/3c90x.c
src/drivers/net/amd8111e.c
src/drivers/net/davicom.c
src/drivers/net/dmfe.c
src/drivers/net/e1000.c
src/drivers/net/eepro100.c
src/drivers/net/epic100.c
src/drivers/net/etherfabric.c
src/drivers/net/forcedeth.c
src/drivers/net/mtd80x.c
src/drivers/net/natsemi.c
src/drivers/net/ns83820.c
src/drivers/net/ns8390.c
src/drivers/net/pcnet32.c
src/drivers/net/pnic.c
src/drivers/net/prism2_pci.c
src/drivers/net/prism2_plx.c
src/drivers/net/r8169.c
src/drivers/net/rtl8139.c
src/drivers/net/sis900.c
src/drivers/net/skel.c
src/drivers/net/sundance.c
src/drivers/net/tg3.c
src/drivers/net/tlan.c
src/drivers/net/tulip.c
src/drivers/net/via-rhine.c
src/drivers/net/via-velocity.c
src/drivers/net/w89c840.c
src/include/gpxe/pci.h