Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / ppc / syslib / m8260_pci_erratum9.c
index ae76a1b..99e4bc0 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * arch/ppc/platforms/mpc8260_pci9.c
- *
  * Workaround for device erratum PCI 9.
  * See Motorola's "XPC826xA Family Device Errata Reference."
  * The erratum applies to all 8260 family Hip4 processors.  It is scheduled 
@@ -31,7 +29,7 @@
 #include <asm/immap_cpm2.h>
 #include <asm/cpm2.h>
 
-#include "m8260_pci.h"
+#include "m82xx_pci.h"
 
 #ifdef CONFIG_8260_PCI9
 /*#include <asm/mpc8260_pci9.h>*/ /* included in asm/io.h */
@@ -89,9 +87,8 @@ void idma_pci9_init(void)
        volatile cpm2_map_t *immap = cpm2_immr;
 
        /* allocate IDMA dpram */
-       dpram_offset = cpm2_dpalloc(sizeof(idma_dpram_t), 64);
-       idma_dpram = 
-               (volatile idma_dpram_t *)&immap->im_dprambase[dpram_offset];
+       dpram_offset = cpm_dpalloc(sizeof(idma_dpram_t), 64);
+       idma_dpram = cpm_dpram_addr(dpram_offset); 
 
        /* initialize the IDMA parameter RAM */
        memset((void *)idma_dpram, 0, sizeof(idma_dpram_t));
@@ -249,11 +246,11 @@ EXPORT_SYMBOL(idma_pci9_read_le);
 
 static inline int is_pci_mem(unsigned long addr)
 {
-       if (addr >= MPC826x_PCI_LOWER_MMIO &&
-           addr <= MPC826x_PCI_UPPER_MMIO)
+       if (addr >= M82xx_PCI_LOWER_MMIO &&
+               addr <= M82xx_PCI_UPPER_MMIO)
                return 1;
-       if (addr >= MPC826x_PCI_LOWER_MEM &&
-           addr <= MPC826x_PCI_UPPER_MEM)
+       if (addr >= M82xx_PCI_LOWER_MEM &&
+               addr <= M82xx_PCI_UPPER_MEM)
                return 1;
        return 0;
 }