patch-2.4.22 linux-2.4.22/include/asm-sh/pci.h

Next file: linux-2.4.22/include/asm-sh/pgalloc.h
Previous file: linux-2.4.22/include/asm-sh/pci-sh7751.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-sh/pci.h linux-2.4.22/include/asm-sh/pci.h
@@ -11,8 +11,8 @@
 
 #define pcibios_assign_all_busses()	1
 
-#if defined(CONFIG_CPU_SUBTYPE_ST40STB1)
-/* These are currently the correct values for the STM overdrive board. 
+#if defined(CONFIG_CPU_SUBTYPE_ST40)
+/* These are currently the correct values for the ST40 based chips.
  * We need some way of setting this on a board specific way, it will 
  * not be the same on other boards I think
  */
@@ -25,10 +25,12 @@
 #elif defined(CONFIG_SH_BIGSUR) && defined(CONFIG_CPU_SUBTYPE_SH7751)
 #define PCIBIOS_MIN_IO		0x2000
 #define PCIBIOS_MIN_MEM		0xFD000000
-
-#elif defined(CONFIG_SH_7751_SOLUTION_ENGINE)
+#elif defined(CONFIG_SH_7751_SOLUTION_ENGINE) || defined(CONFIG_SH_SECUREEDGE5410)
 #define PCIBIOS_MIN_IO          0x4000
 #define PCIBIOS_MIN_MEM         0xFD000000
+#elif defined(CONFIG_PCI_SD0001)
+#define PCIBIOS_MIN_IO		0x2000
+#define PCIBIOS_MIN_MEM		0x01000000L
 #endif
 
 struct pci_dev;
@@ -50,6 +52,14 @@
 #include <linux/string.h>
 #include <asm/io.h>
 
+struct pci_dev;
+
+/* The PCI address space does equal the physical memory
+ * address space.  The networking and block device layers use
+ * this boolean for bounce buffer decisions.
+ */
+#define PCI_DMA_BUS_IS_PHYS	(1)
+
 /* Allocate and map kernel buffer using consistent mode DMA for a device.
  * hwdev should be valid struct pci_dev pointer for PCI devices,
  * NULL for PCI-like buses (ISA, EISA).

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