patch-2.4.0-test6 linux/include/asm-sh/pci.h

Next file: linux/include/asm-sh/pgtable.h
Previous file: linux/include/asm-sh/page.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-sh/pci.h linux/include/asm-sh/pci.h
@@ -9,6 +9,15 @@
 
 #define pcibios_assign_all_busses()	0
 
+/* These are currently the correct values for the STM overdrive board. 
+ * We need some way of setting this on a board specific way, it will 
+ * not be the same on other boards I think
+ */
+#if 1 /* def CONFIG_SH_OVERDRIVE */
+#define PCIBIOS_MIN_IO		0x2000
+#define PCIBIOS_MIN_MEM		0x10000000
+#endif
+
 extern inline void pcibios_set_master(struct pci_dev *dev)
 {
 	/* No special bus mastering setup handling */
@@ -59,7 +68,7 @@
  * until either pci_unmap_single or pci_dma_sync_single is performed.
  */
 extern inline dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr,
-					size_t size)
+					size_t size,int directoin)
 {
 	return virt_to_bus(ptr);
 }
@@ -72,7 +81,7 @@
  * whatever the device wrote there.
  */
 extern inline void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr,
-				    size_t size)
+				    size_t size,int direction)
 {
 	/* Nothing to do */
 }
@@ -93,7 +102,7 @@
  * the same here.
  */
 extern inline int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg,
-			     int nents)
+			     int nents,int direction)
 {
 	return nents;
 }
@@ -103,7 +112,7 @@
  * pci_unmap_single() above.
  */
 extern inline void pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg,
-				int nents)
+				int nents,int direction)
 {
 	/* Nothing to do */
 }
@@ -119,7 +128,7 @@
  */
 extern inline void pci_dma_sync_single(struct pci_dev *hwdev,
 				       dma_addr_t dma_handle,
-				       size_t size)
+				       size_t size,int direction)
 {
 	/* Nothing to do */
 }
@@ -132,7 +141,7 @@
  */
 extern inline void pci_dma_sync_sg(struct pci_dev *hwdev,
 				   struct scatterlist *sg,
-				   int nelems)
+				   int nelems,int direction)
 {
 	/* Nothing to do */
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)