patch-2.1.94 linux/include/linux/pci.h

Next file: linux/include/linux/swap.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.93/linux/include/linux/pci.h linux/include/linux/pci.h
@@ -977,6 +977,9 @@
 
 #ifdef __KERNEL__
 
+/* Create an index into the pci_dev base_address[] array from an offset.  */
+#define PCI_BASE_INDEX(o) (((o)-PCI_BASE_ADDRESS_0)>>2)
+
 /*
  * Error values that may be returned by the PCI bios.  Use
  * pcibios_strerror() to convert to a printable string.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov