mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
Revert "ramips: remove unnecessary resource details."
This reverts commit edea934799
.
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
0bfb41a55a
commit
a973a0a38b
@ -307,13 +307,26 @@ struct pci_ops mt7621_pci_ops= {
|
|||||||
.write = pci_config_write,
|
.write = pci_config_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource mt7621_res_pci_mem1;
|
static struct resource mt7621_res_pci_mem1 = {
|
||||||
static struct resource mt7621_res_pci_io1;
|
.name = "PCI MEM1",
|
||||||
|
.start = RALINK_PCI_MM_MAP_BASE,
|
||||||
|
.end = (u32)((RALINK_PCI_MM_MAP_BASE + (unsigned char *)0x0fffffff)),
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
};
|
||||||
|
static struct resource mt7621_res_pci_io1 = {
|
||||||
|
.name = "PCI I/O1",
|
||||||
|
.start = RALINK_PCI_IO_MAP_BASE,
|
||||||
|
.end = (u32)((RALINK_PCI_IO_MAP_BASE + (unsigned char *)0x0ffff)),
|
||||||
|
.flags = IORESOURCE_IO,
|
||||||
|
};
|
||||||
|
|
||||||
static struct pci_controller mt7621_controller = {
|
static struct pci_controller mt7621_controller = {
|
||||||
.pci_ops = &mt7621_pci_ops,
|
.pci_ops = &mt7621_pci_ops,
|
||||||
.mem_resource = &mt7621_res_pci_mem1,
|
.mem_resource = &mt7621_res_pci_mem1,
|
||||||
.io_resource = &mt7621_res_pci_io1,
|
.io_resource = &mt7621_res_pci_io1,
|
||||||
|
.mem_offset = 0x00000000UL,
|
||||||
|
.io_offset = 0x00000000UL,
|
||||||
|
.io_map_base = 0xa0000000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user