diff options
Diffstat (limited to 'arch/mips/pci/pci-xlp.c')
-rw-r--r-- | arch/mips/pci/pci-xlp.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/mips/pci/pci-xlp.c b/arch/mips/pci/pci-xlp.c index 140557a20488..ad55f2cfeec1 100644 --- a/arch/mips/pci/pci-xlp.c +++ b/arch/mips/pci/pci-xlp.c | |||
@@ -55,7 +55,7 @@ | |||
55 | 55 | ||
56 | static void *pci_config_base; | 56 | static void *pci_config_base; |
57 | 57 | ||
58 | #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) | 58 | #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) |
59 | 59 | ||
60 | /* PCI ops */ | 60 | /* PCI ops */ |
61 | static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, | 61 | static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, |
@@ -135,26 +135,26 @@ struct pci_ops nlm_pci_ops = { | |||
135 | }; | 135 | }; |
136 | 136 | ||
137 | static struct resource nlm_pci_mem_resource = { | 137 | static struct resource nlm_pci_mem_resource = { |
138 | .name = "XLP PCI MEM", | 138 | .name = "XLP PCI MEM", |
139 | .start = 0xd0000000UL, /* 256MB PCI mem @ 0xd000_0000 */ | 139 | .start = 0xd0000000UL, /* 256MB PCI mem @ 0xd000_0000 */ |
140 | .end = 0xdfffffffUL, | 140 | .end = 0xdfffffffUL, |
141 | .flags = IORESOURCE_MEM, | 141 | .flags = IORESOURCE_MEM, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static struct resource nlm_pci_io_resource = { | 144 | static struct resource nlm_pci_io_resource = { |
145 | .name = "XLP IO MEM", | 145 | .name = "XLP IO MEM", |
146 | .start = 0x14000000UL, /* 64MB PCI IO @ 0x1000_0000 */ | 146 | .start = 0x14000000UL, /* 64MB PCI IO @ 0x1000_0000 */ |
147 | .end = 0x17ffffffUL, | 147 | .end = 0x17ffffffUL, |
148 | .flags = IORESOURCE_IO, | 148 | .flags = IORESOURCE_IO, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | struct pci_controller nlm_pci_controller = { | 151 | struct pci_controller nlm_pci_controller = { |
152 | .index = 0, | 152 | .index = 0, |
153 | .pci_ops = &nlm_pci_ops, | 153 | .pci_ops = &nlm_pci_ops, |
154 | .mem_resource = &nlm_pci_mem_resource, | 154 | .mem_resource = &nlm_pci_mem_resource, |
155 | .mem_offset = 0x00000000UL, | 155 | .mem_offset = 0x00000000UL, |
156 | .io_resource = &nlm_pci_io_resource, | 156 | .io_resource = &nlm_pci_io_resource, |
157 | .io_offset = 0x00000000UL, | 157 | .io_offset = 0x00000000UL, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static int get_irq_vector(const struct pci_dev *dev) | 160 | static int get_irq_vector(const struct pci_dev *dev) |
@@ -232,7 +232,7 @@ static int __init pcibios_init(void) | |||
232 | pci_config_base = ioremap(XLP_DEFAULT_PCI_ECFG_BASE, 64 << 20); | 232 | pci_config_base = ioremap(XLP_DEFAULT_PCI_ECFG_BASE, 64 << 20); |
233 | 233 | ||
234 | /* Extend IO port for memory mapped io */ | 234 | /* Extend IO port for memory mapped io */ |
235 | ioport_resource.start = 0; | 235 | ioport_resource.start = 0; |
236 | ioport_resource.end = ~0; | 236 | ioport_resource.end = ~0; |
237 | 237 | ||
238 | xlp_enable_pci_bswap(); | 238 | xlp_enable_pci_bswap(); |