Lines Matching defs:res
32 struct resource res[2];
119 pp->res[0].name = "PCIe 0 I/O Space";
120 pp->res[0].start = KIRKWOOD_PCIE_IO_BUS_BASE;
121 pp->res[0].end = pp->res[0].start + KIRKWOOD_PCIE_IO_SIZE - 1;
122 pp->res[0].flags = IORESOURCE_IO;
127 pp->res[1].name = "PCIe 0 MEM";
128 pp->res[1].start = KIRKWOOD_PCIE_MEM_PHYS_BASE;
129 pp->res[1].end = pp->res[1].start + KIRKWOOD_PCIE_MEM_SIZE - 1;
130 pp->res[1].flags = IORESOURCE_MEM;
141 pp->res[0].name = "PCIe 1 I/O Space";
142 pp->res[0].start = KIRKWOOD_PCIE1_IO_BUS_BASE;
143 pp->res[0].end = pp->res[0].start + KIRKWOOD_PCIE1_IO_SIZE - 1;
144 pp->res[0].flags = IORESOURCE_IO;
149 pp->res[1].name = "PCIe 1 MEM";
150 pp->res[1].start = KIRKWOOD_PCIE1_MEM_PHYS_BASE;
151 pp->res[1].end = pp->res[1].start + KIRKWOOD_PCIE1_MEM_SIZE - 1;
152 pp->res[1].flags = IORESOURCE_MEM;
187 if (request_resource(&ioport_resource, &pp->res[0]))
189 if (request_resource(&iomem_resource, &pp->res[1]))
192 sys->resource[0] = &pp->res[0];
193 sys->resource[1] = &pp->res[1];