• Home
  • Raw
  • Download

Lines Matching +full:auto +full:- +full:pm

8  * Copyright 2001-2005 MontaVista Software Inc.
9 * Copyright (C) 1996, 97, 2001, 04 Ralf Baechle (ralf@linux-mips.org)
10 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007
36 fake_bus.ops = hose->pci_ops; in early_read_config_word()
52 int cap66 = -1; in txx9_pci66_check()
105 * mem_base, io_base: physical address. 0 for auto assignment.
106 * mem_size and io_size means max size on auto assignment.
125 new->r_mem[0].name = "PCI mem"; in txx9_alloc_pci_controller()
126 new->r_mem[1].name = "PCI mmio"; in txx9_alloc_pci_controller()
127 new->r_io.name = "PCI io"; in txx9_alloc_pci_controller()
128 new->c.mem_resource = new->r_mem; in txx9_alloc_pci_controller()
129 new->c.io_resource = &new->r_io; in txx9_alloc_pci_controller()
130 pcic = &new->c; in txx9_alloc_pci_controller()
133 pcic->io_resource->flags = IORESOURCE_IO; in txx9_alloc_pci_controller()
136 * for auto assignment, first search a (big) region for PCI in txx9_alloc_pci_controller()
140 pcic->mem_resource[0].start = mem_base; in txx9_alloc_pci_controller()
141 pcic->mem_resource[0].end = mem_base + mem_size - 1; in txx9_alloc_pci_controller()
142 if (request_resource(&iomem_resource, &pcic->mem_resource[0])) in txx9_alloc_pci_controller()
147 /* default size for auto assignment */ in txx9_alloc_pci_controller()
160 &pcic->mem_resource[0], in txx9_alloc_pci_controller()
169 pcic->mem_resource[1].flags = IORESOURCE_MEM | IORESOURCE_BUSY; in txx9_alloc_pci_controller()
171 pcic->mem_resource[1].start = io_base; in txx9_alloc_pci_controller()
172 pcic->mem_resource[1].end = io_base + io_size - 1; in txx9_alloc_pci_controller()
173 if (request_resource(&iomem_resource, &pcic->mem_resource[1])) in txx9_alloc_pci_controller()
177 /* default size for auto assignment */ in txx9_alloc_pci_controller()
182 &pcic->mem_resource[1], in txx9_alloc_pci_controller()
189 io_base = pcic->mem_resource[1].start; in txx9_alloc_pci_controller()
192 pcic->mem_resource[0].flags = IORESOURCE_MEM; in txx9_alloc_pci_controller()
194 mips_io_port_base == (unsigned long)-1) { in txx9_alloc_pci_controller()
196 set_io_port_base(IO_BASE + pcic->mem_resource[1].start); in txx9_alloc_pci_controller()
197 pcic->io_resource->start = 0; in txx9_alloc_pci_controller()
198 pcic->io_offset = 0; /* busaddr == ioaddr */ in txx9_alloc_pci_controller()
199 pcic->io_map_base = IO_BASE + pcic->mem_resource[1].start; in txx9_alloc_pci_controller()
202 pcic->io_resource->start = in txx9_alloc_pci_controller()
203 io_base - (mips_io_port_base - IO_BASE); in txx9_alloc_pci_controller()
204 pcic->io_offset = io_base - (mips_io_port_base - IO_BASE); in txx9_alloc_pci_controller()
205 pcic->io_map_base = mips_io_port_base; in txx9_alloc_pci_controller()
207 pcic->io_resource->end = pcic->io_resource->start + io_size - 1; in txx9_alloc_pci_controller()
209 pcic->mem_offset = 0; /* busaddr == physaddr */ in txx9_alloc_pci_controller()
211 pr_info("PCI: IO %pR MEM %pR\n", &pcic->mem_resource[1], in txx9_alloc_pci_controller()
212 &pcic->mem_resource[0]); in txx9_alloc_pci_controller()
215 release_resource(&pcic->mem_resource[0]); in txx9_alloc_pci_controller()
218 release_resource(&pcic->mem_resource[0]); in txx9_alloc_pci_controller()
262 pr_info("PCI-ISA bridge PIC (irq %d)\n", irq); in txx9_i8259_irq_setup()
272 irq = pcibios_map_irq(dev, PCI_SLOT(dev->devfn), 1); /* INTA */ in quirk_slc90e66_bridge()
337 /* This device may have PM registers but not they are not supported. */ in tc35815_fixup()
338 if (dev->pm_cap) { in tc35815_fixup()
339 dev_info(&dev->dev, "PM disabled\n"); in tc35815_fixup()
340 dev->pm_cap = 0; in tc35815_fixup()
348 /* Do build-in self test */ in final_fixup()
402 /* PICMG compliant backplane (TOSHIBA JMB-PICMG-ATX in txx9_pcibios_setup()
403 (5V or 3.3V), JMB-PICMG-L2 (5V only), etc.) */ in txx9_pcibios_setup()
407 /* non-PICMG compliant backplane (TOSHIBA in txx9_pcibios_setup()
408 RBHBK4100,RBHBK4200, Interface PCM-PCM05, etc.) */ in txx9_pcibios_setup()
418 else /* "auto" */ in txx9_pcibios_setup()
429 txx9_pci_map_irq = txx9_board_vec->pci_map_irq; in txx9_pcibios_setup()