patch-2.4.0-test4 linux/include/asm-ppc/pci.h
Next file: linux/include/asm-ppc/processor.h
Previous file: linux/include/asm-ppc/pci-bridge.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Jul 13 09:42:51 2000
- Orig file:
v2.4.0-test3/linux/include/asm-ppc/pci.h
- Orig date:
Fri Jun 23 21:55:11 2000
diff -u --recursive --new-file v2.4.0-test3/linux/include/asm-ppc/pci.h linux/include/asm-ppc/pci.h
@@ -1,6 +1,13 @@
#ifndef __PPC_PCI_H
#define __PPC_PCI_H
+/* Values for the `which' argument to sys_pciconfig_iobase syscall. */
+#define IOBASE_BRIDGE_NUMBER 0
+#define IOBASE_MEMORY 1
+#define IOBASE_IO 2
+
+#ifdef __KERNEL__
+
/* Can be used to override the logic in pci_scan_bus for skipping
* already-configured bus numbers - to be used for buggy BIOSes
* or architectures with incomplete PCI setup by the loader.
@@ -94,5 +101,7 @@
#define sg_dma_address(sg) (virt_to_bus((sg)->address))
#define sg_dma_len(sg) ((sg)->length)
+
+#endif /* __KERNEL__ */
#endif /* __PPC_PCI_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)