]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY for clarity
authorKumar Gala <galak@kernel.crashing.org>
Fri, 6 Feb 2009 15:49:31 +0000 (09:49 -0600)
committerWolfgang Denk <wd@denx.de>
Sat, 7 Feb 2009 22:50:04 +0000 (23:50 +0100)
The PCI_REGION_MEMORY and PCI_REGION_MEM are a bit to similar and
can be confusing when reading the code.

Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY to clarify its used
for system memory mapping purposes.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
32 files changed:
board/MAI/AmigaOneG3SE/articiaS_pci.c
board/ads5121/pci.c
board/amirix/ap1000/pci.c
board/armltd/integratorap/integratorap.c
board/dave/common/pci.c
board/eltec/bab7xx/pci.c
board/eltec/elppc/pci.c
board/esd/common/pci.c
board/freescale/mpc832xemds/pci.c
board/freescale/mpc8349itx/pci.c
board/freescale/mpc8360emds/pci.c
board/pcippc2/cpc710_pci.c
board/ppmc7xx/pci.c
board/sbc8349/pci.c
board/sbc8548/sbc8548.c
board/tb0229/vr4131-pci.c
board/tqc/tqm834x/pci.c
common/fdt_support.c
cpu/i386/sc520.c
cpu/mcf5445x/pci.c
cpu/mcf547x_8x/pci.c
cpu/mpc5xxx/pci_mpc5200.c
cpu/mpc8220/pci.c
cpu/mpc824x/pci.c
cpu/mpc8260/pci.c
cpu/mpc83xx/pci.c
cpu/mpc83xx/pcie.c
cpu/ppc4xx/4xx_pci.c
drivers/pci/fsl_pci_init.c
drivers/pci/pci_ixp.c
drivers/pci/tsi108_pci.c
include/pci.h

index 45b8195012f9fb177344d3b769875355aea0acbd..371f67f41d9b22afa1a030f543901b024c368551 100644 (file)
@@ -313,7 +313,7 @@ void articiaS_pci_init (void)
                   ARTICIAS_SYS_BUS,
                   ARTICIAS_SYS_PHYS,
                   ARTICIAS_SYS_MAXSIZE,
-                  PCI_REGION_MEM | PCI_REGION_MEMORY);
+                  PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
     /* PCI memory space */
     pci_set_region(articiaS_hose.regions + 1,
index b747e812ada3f2181c215927c1ae33cef99c3f91..806c428e4c3d5b5688a72fc22ad47de633d2e998 100644 (file)
@@ -153,7 +153,7 @@ pci_init_board(void)
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
                       gd->ram_size,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
index a9b3fd89fb6d37da5596cd523130e3cf3d67363a..5fbcd37cee15b97f491c546f285d379049ff2f79 100644 (file)
@@ -294,7 +294,7 @@ void pci_init_board (void)
        pci_set_region (hose->regions + 0,
                        AP1000_SYS_MEM_START, AP1000_SYS_MEM_START,
                        AP1000_SYS_MEM_SIZE,
-                       PCI_REGION_MEM | PCI_REGION_MEMORY);
+                       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI Memory space */
        pci_set_region (hose->regions + 1,
index ddacabb2eac8f5aff3439b83a9ebc55f9d53ae80..9631967b07136f95dcfa5279adc71e246f5e234c 100644 (file)
@@ -428,7 +428,7 @@ void pci_init_board (void)
        /* System memory space */
        pci_set_region (hose->regions + 0,
                        0x00000000, 0x40000000, 0x01000000,
-                       PCI_REGION_MEM | PCI_REGION_MEMORY);
+                       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI Memory - config space */
        pci_set_region (hose->regions + 1,
index ec0d76125ed3ff83ae1f7dc5d25daecf57c89433..ddfbea9a08c89f654f352eaf5cfabee7ca242e46 100644 (file)
@@ -179,7 +179,7 @@ void pci_init(void)
   /* System memory space */
   pci_set_region(hose->regions + 0,
                 0x00000000, 0x00000000, 0x01000000,
-                PCI_REGION_MEM | PCI_REGION_MEMORY);
+                PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
   /* PCI Memory space */
   pci_set_region(hose->regions + 1,
index 46e5a8bb17bf8762a6c078e10f9aa550eec09782..38dd49856bff57bff07cfbe0543e218e90baf8e6 100644 (file)
@@ -50,7 +50,7 @@ void pci_init_board(void)
     * so we need (CONFIG_SYS_PCI_MEMORY_SIZE-1)
     */
        CONFIG_SYS_PCI_MEMORY_SIZE-1,
-       PCI_REGION_MEM | PCI_REGION_MEMORY);
+       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
index bf133b77de95d3b8afbf4fac8cf0dec52e0be639..29485319a5aabab9e28327bd2566185243a07826 100644 (file)
@@ -45,7 +45,7 @@ void pci_init_board(void)
        CONFIG_SYS_PCI_MEMORY_BUS,
        CONFIG_SYS_PCI_MEMORY_PHYS,
        CONFIG_SYS_PCI_MEMORY_SIZE,
-       PCI_REGION_MEM | PCI_REGION_MEMORY);
+       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
index dcb764cd1f3c0c625ea31b2af2b1e0a133f0b70b..83f810307bd488f286025fc6d920451d847f9502 100644 (file)
@@ -179,7 +179,7 @@ void pci_init_board(void)
   /* System memory space */
   pci_set_region(hose->regions + 0,
                 0x00000000, 0x00000000, 0x01000000,
-                PCI_REGION_MEM | PCI_REGION_MEMORY);
+                PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
   /* PCI Memory space */
   pci_set_region(hose->regions + 1,
index 2a48dd24ee55ebdcf00c48d4e7640d521f2b420d..212fb5219833ae1103a9261b34047ea176dd7a58 100644 (file)
@@ -228,7 +228,7 @@ void pci_init_board(void)
                       CONFIG_SYS_PCI_SLV_MEM_LOCAL,
                       CONFIG_SYS_PCI_SLV_MEM_BUS,
                       CONFIG_SYS_PCI_SLV_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose[0].region_count = 4;
 
index fd2c172de4e46f297adc096a0b01f1291fd6da6c..8da7117ec23f2f3cb3604895384d342abc16fcd3 100644 (file)
@@ -210,7 +210,7 @@ void pci_init_board(void)
        pci_set_region(hose->regions + 3,
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
-                      gd->ram_size, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      gd->ram_size, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
@@ -301,7 +301,7 @@ void pci_init_board(void)
        pci_set_region(hose->regions + 3,
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
-                      gd->ram_size, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      gd->ram_size, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
index 935aca26dbbb09bfac09c1c744c864c076d98995..7ac35dced963409323cbece0340a3c6a4858f81d 100644 (file)
@@ -228,7 +228,7 @@ void pci_init_board(void)
                       CONFIG_SYS_PCI_SLV_MEM_LOCAL,
                       CONFIG_SYS_PCI_SLV_MEM_BUS,
                       CONFIG_SYS_PCI_SLV_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose[0].region_count = 4;
 
index bed8aeab091eaa8b1f857febc1b8c7309ac45251..ccd18e1513c9accb84d8fbee7143b20358ee5725 100644 (file)
@@ -215,7 +215,7 @@ void cpc710_pci_init (void)
                 PCI_MEMORY_BUS,
                 PCI_MEMORY_PHYS,
                 PCI_MEMORY_MAXSIZE,
-                PCI_REGION_MEM | PCI_REGION_MEMORY);
+                PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
   /* PCI memory space */
   pci_set_region(local_hose.regions + 1,
@@ -265,7 +265,7 @@ void cpc710_pci_init (void)
                 PCI_MEMORY_BUS,
                 PCI_MEMORY_PHYS,
                 PCI_MEMORY_MAXSIZE,
-                PCI_REGION_MEMORY);
+                PCI_REGION_SYS_MEMORY);
 
   /* PCI memory space */
   pci_set_region(cpci_hose.regions + 1,
index bf133b77de95d3b8afbf4fac8cf0dec52e0be639..29485319a5aabab9e28327bd2566185243a07826 100644 (file)
@@ -45,7 +45,7 @@ void pci_init_board(void)
        CONFIG_SYS_PCI_MEMORY_BUS,
        CONFIG_SYS_PCI_MEMORY_PHYS,
        CONFIG_SYS_PCI_MEMORY_SIZE,
-       PCI_REGION_MEM | PCI_REGION_MEMORY);
+       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
index 9022c55d576a73c259d8d2d1366f19c288b4a0e3..ac5f30b46e9da375b8c85ddd941400029bd479c3 100644 (file)
@@ -197,7 +197,7 @@ pci_init_board(void)
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
                       gd->ram_size,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
@@ -293,7 +293,7 @@ pci_init_board(void)
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
                       gd->ram_size,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
index 519b0f749d315c3635970d046dcad66de639f22a..a77942022a75572d9bc2701b088cabbc3afc9e04 100644 (file)
@@ -470,7 +470,7 @@ pci_init_board(void)
                               CONFIG_SYS_PCI_MEMORY_BUS,
                               CONFIG_SYS_PCI_MEMORY_PHYS,
                               CONFIG_SYS_PCI_MEMORY_SIZE,
-                              PCI_REGION_MEM | PCI_REGION_MEMORY);
+                              PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
                /* outbound memory */
                pci_set_region(r++,
index 4c9192341e0f51205607d2af7374219883f5ce66..6ff42937c80e87d5bc97aff24ec8a76c2d9340de 100644 (file)
@@ -235,7 +235,7 @@ void init_vr4131_pci (struct pci_controller *hose)
        pci_set_region (hose->regions + 3,
                        0x00000000,
                        0x80000000,
-                       0x04000000, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                       0x04000000, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 4;
 
index 0eedf4ae4681e59343c54a0ef8082b0cc41eef23..cb2cb8d32d4e652563e75576ebcb726f1ba79e03 100644 (file)
@@ -181,7 +181,7 @@ pci_init_board(void)
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
                       CONFIG_PCI_SYS_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 3;
 
index a79bc085b205a042ec146e255481d1e7cb934fc2..b54f8868d9daf1cd71777135fcdbb56ae1e4f9c8 100644 (file)
@@ -646,8 +646,8 @@ int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose) {
        for (r = 0; r < hose->region_count; r++) {
                u64 bus_start, phys_start, size;
 
-               /* skip if !PCI_REGION_MEMORY */
-               if (!(hose->regions[r].flags & PCI_REGION_MEMORY))
+               /* skip if !PCI_REGION_SYS_MEMORY */
+               if (!(hose->regions[r].flags & PCI_REGION_SYS_MEMORY))
                        continue;
 
                bus_start = (u64)hose->regions[r].bus_start;
index 12e8f38716f519779b672cbc90ba4b569b748719..b958f8dc043606b079a9dd3a25a0bed03f38b1bd 100644 (file)
@@ -341,7 +341,7 @@ void pci_sc520_init(struct pci_controller *hose)
                       SC520_PCI_MEMORY_BUS,
                       SC520_PCI_MEMORY_PHYS,
                       SC520_PCI_MEMORY_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
index c4a3b05ee6c2b74e8abc77dc03474eb1a83d8da1..7f9784c3cbdb11aac7e9885726e24202972e4d7b 100644 (file)
@@ -146,7 +146,7 @@ void pci_mcf5445x_init(struct pci_controller *hose)
 
        pci_set_region(hose->regions + 2, CONFIG_SYS_PCI_SYS_MEM_BUS,
                       CONFIG_SYS_PCI_SYS_MEM_PHYS, CONFIG_SYS_PCI_SYS_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 3;
 
index f5c25367fbe0e7e1acef95996714b38804db2fbf..f867dc1279847d5c76e18dcbeb7f68257da201aa 100644 (file)
@@ -149,7 +149,7 @@ void pci_mcf547x_8x_init(struct pci_controller *hose)
 
        pci_set_region(hose->regions + 2, CONFIG_SYS_PCI_SYS_MEM_BUS,
                       CONFIG_SYS_PCI_SYS_MEM_PHYS, CONFIG_SYS_PCI_SYS_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 3;
 
index a3251abf58d80a7eb715919c4aa00ede7f0bbf5f..225738a0731c7ee6631c5d4648d5c6d0b4c0bc89 100644 (file)
@@ -93,7 +93,7 @@ void pci_mpc5xxx_init (struct pci_controller *hose)
                       CONFIG_PCI_MEMORY_BUS,
                       CONFIG_PCI_MEMORY_PHYS,
                       CONFIG_PCI_MEMORY_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
index a78a82850c676523a7fa82f5944a2a6f2f874157..7ef43b72cd77112356e7d1775b6d31e315e6b7da 100644 (file)
@@ -165,7 +165,7 @@ pci_mpc8220_init(struct pci_controller *hose)
                CONFIG_PCI_SYS_MEM_BUS,
                CONFIG_PCI_SYS_MEM_PHYS,
                CONFIG_PCI_SYS_MEM_SIZE,
-               PCI_REGION_MEM | PCI_REGION_MEMORY);
+               PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        hose->region_count = 3;
 
index 7e3c4c3b7823788cb7779ca043bf926a190224fe..cf9cf41ae5353b207b28951bd7460ef49778b733 100644 (file)
@@ -34,7 +34,7 @@ void pci_mpc824x_init (struct pci_controller *hose)
                       CHRP_PCI_MEMORY_BUS,
                       CHRP_PCI_MEMORY_PHYS,
                       CHRP_PCI_MEMORY_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
index 378d6c573a2ef3caa238dd2fac58e11af17872e5..f1e9bb4b9f1a61a980216df50258a9a325a2293b 100644 (file)
@@ -410,12 +410,12 @@ void pci_mpc8250_init (struct pci_controller *hose)
        pci_set_region (hose->regions + 0,
                        PCI_SLV_MEM_BUS,
                        PCI_SLV_MEM_LOCAL,
-                       gd->ram_size, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                       gd->ram_size, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 #else
        pci_set_region (hose->regions + 0,
                        CONFIG_SYS_SDRAM_BASE,
                        CONFIG_SYS_SDRAM_BASE,
-                       0x4000000, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                       0x4000000, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 #endif
 
        /* PCI memory space */
index e9965d7df317e0dcf40520c987d42c367a2ce245..5fe89646c03fdb34f58206464ca7372e6f3d6c31 100644 (file)
@@ -89,7 +89,7 @@ static void pci_init_bus(int bus, struct pci_region *reg)
        hose->regions[i].bus_start = 0;
        hose->regions[i].phys_start = 0;
        hose->regions[i].size = gd->ram_size;
-       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_MEMORY;
+       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY;
 
        hose->first_busno = 0;
        hose->last_busno = 0xff;
index 02150bafdc0f5f7df94436dd47df8cac6ee990a1..12b5f69ced6fe0f09cbd7744976a4c05ae804ca1 100644 (file)
@@ -109,13 +109,13 @@ static void mpc83xx_pcie_register_hose(int bus, struct pci_region *reg,
        hose->regions[i].bus_start = 0;
        hose->regions[i].phys_start = 0;
        hose->regions[i].size = gd->ram_size;
-       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_MEMORY;
+       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY;
 
        i = hose->region_count++;
        hose->regions[i].bus_start = CONFIG_SYS_IMMR;
        hose->regions[i].phys_start = CONFIG_SYS_IMMR;
        hose->regions[i].size = 0x100000;
-       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_MEMORY;
+       hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY;
 
        hose->first_busno = max_bus;
        hose->last_busno = 0xff;
index 2e75886a6b02503e5fdbb06c3d8aa956b9bb78df..6fd36dea3532dbd33a3e130e9c908a990925eb8d 100644 (file)
@@ -179,7 +179,7 @@ void pci_405gp_init(struct pci_controller *hose)
                                       ptmpcila[i], ptmla[i],
                                       ~(ptmms[i] & 0xfffff000) + 1,
                                       PCI_REGION_MEM |
-                                      PCI_REGION_MEMORY);
+                                      PCI_REGION_SYS_MEMORY);
                }
 
        /* PCI memory spaces */
@@ -504,7 +504,7 @@ int pci_440_init (struct pci_controller *hose)
                       CONFIG_PCI_SYS_MEM_BUS,
                       CONFIG_PCI_SYS_MEM_PHYS,
                       CONFIG_PCI_SYS_MEM_SIZE,
-                      PCI_REGION_MEM | PCI_REGION_MEMORY );
+                      PCI_REGION_MEM | PCI_REGION_SYS_MEMORY );
 #endif
 
        hose->region_count = reg_num;
index db68f26009e22c64f04918e2dbe1ecf917a628a4..20b2dcc767dde0e9b56d8b00b8ca6f7461261a21 100644 (file)
@@ -72,7 +72,7 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r)
        debug ("R0 bus_start: %llx phys_start: %llx size: %llx\n",
                (u64)bus_start, (u64)phys_start, (u64)pci_sz);
        pci_set_region(r++, bus_start, phys_start, pci_sz,
-                       PCI_REGION_MEM | PCI_REGION_MEMORY |
+                       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY |
                        PCI_REGION_PREFETCH);
 
        sz -= pci_sz;
@@ -84,7 +84,7 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r)
                debug ("R1 bus_start: %llx phys_start: %llx size: %llx\n",
                        (u64)bus_start, (u64)phys_start, (u64)pci_sz);
                pci_set_region(r++, bus_start, phys_start, pci_sz,
-                               PCI_REGION_MEM | PCI_REGION_MEMORY |
+                               PCI_REGION_MEM | PCI_REGION_SYS_MEMORY |
                                PCI_REGION_PREFETCH);
                sz -= pci_sz;
                bus_start += pci_sz;
@@ -108,7 +108,7 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r)
                        CONFIG_SYS_PCI64_MEMORY_BUS,
                        CONFIG_SYS_PCI_MEMORY_PHYS,
                        pci_sz,
-                       PCI_REGION_MEM | PCI_REGION_MEMORY |
+                       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY |
                        PCI_REGION_PREFETCH);
 #else
        pci_sz = 1ull << __ilog2_u64(sz);
@@ -116,7 +116,7 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r)
                debug ("R2 bus_start: %llx phys_start: %llx size: %llx\n",
                        (u64)bus_start, (u64)phys_start, (u64)pci_sz);
                pci_set_region(r++, bus_start, phys_start, pci_sz,
-                               PCI_REGION_MEM | PCI_REGION_MEMORY |
+                               PCI_REGION_MEM | PCI_REGION_SYS_MEMORY |
                                PCI_REGION_PREFETCH);
                sz -= pci_sz;
                bus_start += pci_sz;
@@ -157,7 +157,7 @@ void fsl_pci_init(struct pci_controller *hose)
 
        for (r=0; r<hose->region_count; r++) {
                u32 sz = (__ilog2_u64((u64)hose->regions[r].size) - 1);
-               if (hose->regions[r].flags & PCI_REGION_MEMORY) { /* inbound */
+               if (hose->regions[r].flags & PCI_REGION_SYS_MEMORY) { /* inbound */
                        u32 flag = PIWAR_EN | PIWAR_LOCAL |
                                        PIWAR_READ_SNOOP | PIWAR_WRITE_SNOOP;
                        pi->pitar = (hose->regions[r].phys_start >> 12);
index aae3d3d2c16e5741825d45d8a93e8a7b6d9afad6..3b303b45238605e71bcd4a56f7637c2a1acd88c8 100644 (file)
@@ -240,7 +240,7 @@ void pci_ixp_init (struct pci_controller *hose)
        /* System memory space */
        pci_set_region (hose->regions + 0,
                        PCI_MEMORY_BUS,
-                       PCI_MEMORY_PHY, PCI_MEMORY_SIZE, PCI_REGION_MEMORY);
+                       PCI_MEMORY_PHY, PCI_MEMORY_SIZE, PCI_REGION_SYS_MEMORY);
 
        /* PCI memory space */
        pci_set_region (hose->regions + 1,
index d153fc6bebb68b2c7fe26383a66d8fab2cde0a93..627e8a07929c7bf2ff3ec26a5036068cf79d8d2b 100644 (file)
@@ -131,7 +131,7 @@ void pci_init_board (void)
        pci_set_region (hose->regions + 0,
                       CONFIG_SYS_PCI_MEMORY_BUS,
                       CONFIG_SYS_PCI_MEMORY_PHYS,
-                      CONFIG_SYS_PCI_MEMORY_SIZE, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      CONFIG_SYS_PCI_MEMORY_SIZE, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
        /* PCI memory space */
        pci_set_region (hose->regions + 1,
index 072273be572b1e7f14773cb865087736044ba4ce..35ff1e903557b8ded63a1f8e2e06d7fea703056f 100644 (file)
@@ -334,7 +334,7 @@ struct pci_region {
 #define PCI_REGION_TYPE                0x00000001
 #define PCI_REGION_PREFETCH    0x00000008      /* prefetchable PCI memory */
 
-#define PCI_REGION_MEMORY      0x00000100      /* System memory */
+#define PCI_REGION_SYS_MEMORY  0x00000100      /* System memory */
 #define PCI_REGION_RO          0x00000200      /* Read-only memory */
 
 extern __inline__ void pci_set_region(struct pci_region *reg,