Lines Matching +full:native +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
19 #include <asm/pci-bridge.h>
40 if (bus->number > 7) in gg2_read_config()
46 cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); in gg2_read_config()
67 if (bus->number > 7) in gg2_write_config()
73 cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); in gg2_write_config()
102 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_read_config()
103 | (hose->global_number << 24); in rtas_read_config()
104 int ret = -1; in rtas_read_config()
107 rval = rtas_call(rtas_token("read-pci-config"), 2, 2, &ret, addr, len); in rtas_read_config()
117 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_write_config()
118 | (hose->global_number << 24); in rtas_write_config()
121 rval = rtas_call(rtas_token("write-pci-config"), 3, 1, NULL, in rtas_write_config()
140 np = of_find_node_by_name(NULL, "mac-io"); in hydra_init()
149 in_le32(&Hydra->Feature_Control)); in hydra_init()
150 out_le32(&Hydra->Feature_Control, (HYDRA_FC_SCC_CELL_EN | in hydra_init()
158 printk(", now %x\n", in_le32(&Hydra->Feature_Control)); in hydra_init()
176 /* Clear the magic go-slow bit */ in setup_python()
197 hose->ops = &rtas_pci_ops; in setup_peg2()
212 int len, index = -1; in chrp_find_bridges()
243 bus_range = of_get_property(dev, "bus-range", &len); in chrp_find_bridges()
245 printk(KERN_WARNING "Can't get bus-range for %pOF\n", in chrp_find_bridges()
265 hose->first_busno = hose->self_busno = bus_range[0]; in chrp_find_bridges()
266 hose->last_busno = bus_range[1]; in chrp_find_bridges()
278 hose->ops = &gg2_pci_ops; in chrp_find_bridges()
279 hose->cfg_data = p; in chrp_find_bridges()
291 dma = of_get_property(dev, "system-dma-base", in chrp_find_bridges()
296 len - sizeof(*dma)); in chrp_find_bridges()
303 hose->ops = &rtas_pci_ops; in chrp_find_bridges()
310 dma = of_get_property(dev, "ibm,dma-ranges", &len); in chrp_find_bridges()
312 pci_dram_offset = dma[2] - dma[3]; in chrp_find_bridges()
324 * ATA controller to be set to fully native mode or bad things
331 /* If non-briq machines need that fixup too, please speak up */ in chrp_pci_fixup_winbond_ata()
335 if ((sl82c105->class & 5) != 5) { in chrp_pci_fixup_winbond_ata()
336 printk("W83C553: Switching SL82C105 IDE to PCI native mode\n"); in chrp_pci_fixup_winbond_ata()
337 /* Enable SL82C105 PCI native IDE mode */ in chrp_pci_fixup_winbond_ata()
340 sl82c105->class |= 0x05; in chrp_pci_fixup_winbond_ata()
353 /* Pegasos2 firmware version 20040810 configures the built-in IDE controller
354 * in legacy mode, but sets the PCI registers to PCI native mode.
355 * The chip can only operate in legacy mode, so force the PCI class into legacy
356 * mode as well. The same fixup must be done to the class-code property in
366 if (viaide->irq != 14) in chrp_pci_fixup_vt8231_ata()
372 dev_info(&viaide->dev, "Fixing VIA IDE, force legacy mode on\n"); in chrp_pci_fixup_vt8231_ata()
376 viaide->class &= ~0x5; in chrp_pci_fixup_vt8231_ata()