Lines Matching +full:serial +full:- +full:dat +full:- +full:low
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()
126 new->r_mem[0].name = "PCI mem"; in txx9_alloc_pci_controller()
127 new->r_mem[1].name = "PCI mmio"; in txx9_alloc_pci_controller()
128 new->r_io.name = "PCI io"; in txx9_alloc_pci_controller()
129 new->c.mem_resource = new->r_mem; in txx9_alloc_pci_controller()
130 new->c.io_resource = &new->r_io; in txx9_alloc_pci_controller()
131 pcic = &new->c; in txx9_alloc_pci_controller()
134 pcic->io_resource->flags = IORESOURCE_IO; in txx9_alloc_pci_controller()
141 pcic->mem_resource[0].start = mem_base; in txx9_alloc_pci_controller()
142 pcic->mem_resource[0].end = mem_base + mem_size - 1; in txx9_alloc_pci_controller()
143 if (request_resource(&iomem_resource, &pcic->mem_resource[0])) in txx9_alloc_pci_controller()
146 unsigned long min = 0, max = 0x20000000; /* low 512MB */ in txx9_alloc_pci_controller()
161 &pcic->mem_resource[0], in txx9_alloc_pci_controller()
170 pcic->mem_resource[1].flags = IORESOURCE_MEM | IORESOURCE_BUSY; in txx9_alloc_pci_controller()
172 pcic->mem_resource[1].start = io_base; in txx9_alloc_pci_controller()
173 pcic->mem_resource[1].end = io_base + io_size - 1; in txx9_alloc_pci_controller()
174 if (request_resource(&iomem_resource, &pcic->mem_resource[1])) in txx9_alloc_pci_controller()
180 /* search free region for PCI IO in low 512MB */ in txx9_alloc_pci_controller()
183 &pcic->mem_resource[1], in txx9_alloc_pci_controller()
190 io_base = pcic->mem_resource[1].start; in txx9_alloc_pci_controller()
193 pcic->mem_resource[0].flags = IORESOURCE_MEM; in txx9_alloc_pci_controller()
195 mips_io_port_base == (unsigned long)-1) { in txx9_alloc_pci_controller()
197 set_io_port_base(IO_BASE + pcic->mem_resource[1].start); in txx9_alloc_pci_controller()
198 pcic->io_resource->start = 0; in txx9_alloc_pci_controller()
199 pcic->io_offset = 0; /* busaddr == ioaddr */ in txx9_alloc_pci_controller()
200 pcic->io_map_base = IO_BASE + pcic->mem_resource[1].start; in txx9_alloc_pci_controller()
203 pcic->io_resource->start = in txx9_alloc_pci_controller()
204 io_base - (mips_io_port_base - IO_BASE); in txx9_alloc_pci_controller()
205 pcic->io_offset = io_base - (mips_io_port_base - IO_BASE); in txx9_alloc_pci_controller()
206 pcic->io_map_base = mips_io_port_base; in txx9_alloc_pci_controller()
208 pcic->io_resource->end = pcic->io_resource->start + io_size - 1; in txx9_alloc_pci_controller()
210 pcic->mem_offset = 0; /* busaddr == physaddr */ in txx9_alloc_pci_controller()
212 pr_info("PCI: IO %pR MEM %pR\n", &pcic->mem_resource[1], in txx9_alloc_pci_controller()
213 &pcic->mem_resource[0]); in txx9_alloc_pci_controller()
216 release_resource(&pcic->mem_resource[0]); in txx9_alloc_pci_controller()
219 release_resource(&pcic->mem_resource[0]); in txx9_alloc_pci_controller()
263 pr_info("PCI-ISA bridge PIC (irq %d)\n", irq); in txx9_i8259_irq_setup()
273 irq = pcibios_map_irq(dev, PCI_SLOT(dev->devfn), 1); /* INTA */ in quirk_slc90e66_bridge()
280 /* serial irq control */ in quirk_slc90e66_bridge()
282 /* serial irq pin */ in quirk_slc90e66_bridge()
304 unsigned char dat; in quirk_slc90e66_ide() local
310 pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &dat); in quirk_slc90e66_ide()
311 pr_info("PCI: %s: IRQ %02x", pci_name(dev), dat); in quirk_slc90e66_ide()
314 pci_read_config_byte(dev, regs[i], &dat); in quirk_slc90e66_ide()
315 pci_write_config_byte(dev, regs[i], dat | 0x80); in quirk_slc90e66_ide()
316 pci_read_config_byte(dev, regs[i], &dat); in quirk_slc90e66_ide()
317 pr_cont(" IDETIM%d %02x", i, dat); in quirk_slc90e66_ide()
319 pci_read_config_byte(dev, 0x5c, &dat); in quirk_slc90e66_ide()
329 dat |= 0x01; in quirk_slc90e66_ide()
330 pci_write_config_byte(dev, 0x5c, dat); in quirk_slc90e66_ide()
331 pci_read_config_byte(dev, 0x5c, &dat); in quirk_slc90e66_ide()
332 pr_cont(" REG5C %02x\n", dat); in quirk_slc90e66_ide()
339 if (dev->pm_cap) { in tc35815_fixup()
340 dev_info(&dev->dev, "PM disabled\n"); in tc35815_fixup()
341 dev->pm_cap = 0; in tc35815_fixup()
351 /* Do built-in self test */ in final_fixup()
405 /* PICMG compliant backplane (TOSHIBA JMB-PICMG-ATX in txx9_pcibios_setup()
406 (5V or 3.3V), JMB-PICMG-L2 (5V only), etc.) */ in txx9_pcibios_setup()
410 /* non-PICMG compliant backplane (TOSHIBA in txx9_pcibios_setup()
411 RBHBK4100,RBHBK4200, Interface PCM-PCM05, etc.) */ in txx9_pcibios_setup()
432 txx9_pci_map_irq = txx9_board_vec->pci_map_irq; in txx9_pcibios_setup()