• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/mips/txx9/generic/

Lines Matching refs:pcic

112  * pcic must be &txx9_primary_pcic or NULL.
115 txx9_alloc_pci_controller(struct pci_controller *pcic,
119 struct pcic {
126 if (!pcic) {
135 pcic = &new->c;
137 BUG_ON(pcic != &txx9_primary_pcic);
138 pcic->io_resource->flags = IORESOURCE_IO;
145 pcic->mem_resource[0].start = mem_base;
146 pcic->mem_resource[0].end = mem_base + mem_size - 1;
147 if (request_resource(&iomem_resource, &pcic->mem_resource[0]))
165 &pcic->mem_resource[0],
174 pcic->mem_resource[1].flags = IORESOURCE_MEM | IORESOURCE_BUSY;
176 pcic->mem_resource[1].start = io_base;
177 pcic->mem_resource[1].end = io_base + io_size - 1;
178 if (request_resource(&iomem_resource, &pcic->mem_resource[1]))
187 &pcic->mem_resource[1],
194 io_base = pcic->mem_resource[1].start;
197 pcic->mem_resource[0].flags = IORESOURCE_MEM;
198 if (pcic == &txx9_primary_pcic &&
201 set_io_port_base(IO_BASE + pcic->mem_resource[1].start);
202 pcic->io_resource->start = 0;
203 pcic->io_offset = 0; /* busaddr == ioaddr */
204 pcic->io_map_base = IO_BASE + pcic->mem_resource[1].start;
207 pcic->io_resource->start =
209 pcic->io_offset = io_base - (mips_io_port_base - IO_BASE);
210 pcic->io_map_base = mips_io_port_base;
212 pcic->io_resource->end = pcic->io_resource->start + io_size - 1;
214 pcic->mem_offset = 0; /* busaddr == physaddr */
217 (unsigned long long)pcic->mem_resource[1].start,
218 (unsigned long long)pcic->mem_resource[1].end,
219 (unsigned long long)pcic->mem_resource[0].start,
220 (unsigned long long)pcic->mem_resource[0].end);
223 release_resource(&pcic->mem_resource[0]);
224 return pcic;
226 release_resource(&pcic->mem_resource[0]);