From 6b6096d28ba0ac47af9070df7ebaf1fdda099a4f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 17 May 2006 01:12:11 +0000 Subject: Strip down i386 PCI configuration space I/O to the bare minimum. A typical build will now include 880 bytes of PCI support code, compared to 2327 bytes in Etherboot 5.4. (There is a slight cost of around 5 extra bytes per access to a non-constant config space address; this should be an overall win. Driver-specific accesses will usually be to constant addresses, for which there is no additional cost.) --- src/include/gpxe/pci.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/include') diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h index 28fa93c5f..5fc210095 100644 --- a/src/include/gpxe/pci.h +++ b/src/include/gpxe/pci.h @@ -19,6 +19,7 @@ #include #include #include +#include #include "pci_ids.h" /* @@ -318,19 +319,6 @@ struct pci_driver { .name = _name, \ } -extern unsigned int pci_max_bus; -extern int pci_read_config_byte ( struct pci_device *pci, unsigned int where, - uint8_t *value ); -extern int pci_write_config_byte ( struct pci_device *pci, unsigned int where, - uint8_t value ); -extern int pci_read_config_word ( struct pci_device *pci, unsigned int where, - uint16_t *value ); -extern int pci_write_config_word ( struct pci_device *pci, unsigned int where, - uint16_t value ); -extern int pci_read_config_dword ( struct pci_device *pci, unsigned int where, - uint32_t *value ); -extern int pci_write_config_dword ( struct pci_device *pci, unsigned int where, - uint32_t value ); extern void adjust_pci_device ( struct pci_device *pci ); extern unsigned long pci_bar_start ( struct pci_device *pci, unsigned int reg ); -- cgit v1.2.3-55-g7522