]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Make adjust_pci_device global, since many drivers call it.
authorMichael Brown <mcb30@etherboot.org>
Tue, 12 Apr 2005 18:10:57 +0000 (18:10 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 12 Apr 2005 18:10:57 +0000 (18:10 +0000)
src/drivers/bus/pci.c
src/include/pci.h

index 892eb0b710bdd3fe5bde1b8f546cf120eacb3e98..03b936726281b40191d8617e915a22dd9240c846 100644 (file)
@@ -87,7 +87,7 @@ static int fill_pci_device ( struct pci_device *pci ) {
  * Set device to be a busmaster in case BIOS neglected to do so.  Also
  * adjust PCI latency timer to a reasonable value, 32.
  */
-static void adjust_pci_device ( struct pci_device *pci ) {
+void adjust_pci_device ( struct pci_device *pci ) {
        unsigned short  new_command, pci_command;
        unsigned char   pci_latency;
 
index f2ba6c98ade74d69115f4c6aa32ee39dec94ef05..36edc0f585cff0319b0cb7db75f0c0be0a4744cc 100644 (file)
@@ -325,6 +325,7 @@ extern unsigned long pci_bus_base ( struct pci_device *dev );
 extern struct pci_device * pci_device ( struct dev *dev );
 extern int find_pci_device ( struct pci_device *pci,
                             struct pci_driver *driver );
+extern void adjust_pci_device ( struct pci_device *pci );
 extern unsigned long pci_bar_start ( struct pci_device *pci,
                                     unsigned int bar );
 extern unsigned long pci_bar_size ( struct pci_device *pci, unsigned int bar );