[MIPS] BCM1480: Use constants instead of magic numbers in PCI code.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 29 Jan 2008 10:14:59 +0000 (10:14 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Jan 2008 10:14:59 +0000 (10:14 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-bcm1480.c
arch/mips/pci/pci-bcm1480ht.c

index 47f316c86ab166bad9635423bf15b865c9eb9465..30ed36125bcdb73173f859823a77c3dbffce6d01 100644 (file)
@@ -178,8 +178,8 @@ struct pci_ops bcm1480_pci_ops = {
 
 static struct resource bcm1480_mem_resource = {
        .name   = "BCM1480 PCI MEM",
-       .start  = 0x30000000UL,
-       .end    = 0x3fffffffUL,
+       .start  = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES,
+       .end    = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES + 0xfffffffUL,
        .flags  = IORESOURCE_MEM,
 };
 
index a63e3bd6b0ac50454c1eb794d8f2ad04421050bd..005e7fecab08935934010ee7fde1d0e699643fe7 100644 (file)
@@ -173,8 +173,8 @@ struct pci_ops bcm1480ht_pci_ops = {
 
 static struct resource bcm1480ht_mem_resource = {
        .name   = "BCM1480 HT MEM",
-       .start  = 0x40000000UL,
-       .end    = 0x5fffffffUL,
+       .start  = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES,
+       .end    = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES + 0x1fffffffUL,
        .flags  = IORESOURCE_MEM,
 };