Lines Matching +full:0 +full:x5300

34 	chipid_top = (bus->chipinfo.id & 0xFF00);  in bcma_core_pci_is_in_hostmode()
35 if (chipid_top != 0x4700 && in bcma_core_pci_is_in_hostmode()
36 chipid_top != 0x5300) in bcma_core_pci_is_in_hostmode()
39 bcma_core_enable(pc->core, 0); in bcma_core_pci_is_in_hostmode()
62 u32 addr = 0; in bcma_get_cfgspace_addr()
71 /* Type 0 transaction */ in bcma_get_cfgspace_addr()
90 void __iomem *mmio = 0; in bcma_extpci_read_config()
95 if (dev == 0) { in bcma_extpci_read_config()
96 /* we support only two functions on device 0 */ in bcma_extpci_read_config()
105 addr |= (off & 0x0FFC); in bcma_extpci_read_config()
110 addr |= (off & 0xFC); in bcma_extpci_read_config()
123 val = 0xFFFFFFFF; in bcma_extpci_read_config()
140 err = 0; in bcma_extpci_read_config()
154 void __iomem *mmio = 0; in bcma_extpci_write_config()
160 if (dev == 0) { in bcma_extpci_write_config()
161 /* we support only two functions on device 0 */ in bcma_extpci_write_config()
170 addr |= (off & 0x0FFC); in bcma_extpci_write_config()
175 addr |= (off & 0xFC); in bcma_extpci_write_config()
188 val = 0xFFFFFFFF; in bcma_extpci_write_config()
195 val &= ~(0xFF << (8 * (off & 3))); in bcma_extpci_write_config()
199 val &= ~(0xFFFF << (8 * (off & 3))); in bcma_extpci_write_config()
206 if (dev == 0) { in bcma_extpci_write_config()
222 err = 0; in bcma_extpci_write_config()
276 u8 cap_ptr = 0; in bcma_find_pci_capability()
280 /* check for Header type 0 */ in bcma_find_pci_capability()
292 /* check if the capability pointer is 0x00 */ in bcma_find_pci_capability()
295 if (cap_ptr == 0x00) in bcma_find_pci_capability()
304 if (cap_ptr == 0x00) in bcma_find_pci_capability()
318 *buflen = 0; in bcma_find_pci_capability()
347 cap_ptr = bcma_find_pci_capability(pc, 0, 0, PCI_CAP_ID_EXP, NULL, in bcma_core_pci_enable_crs()
350 bcma_extpci_read_config(pc, 0, 0, root_cap, &val16, sizeof(u16)); in bcma_core_pci_enable_crs()
355 bcma_extpci_read_config(pc, 0, 0, root_ctrl, &val16, in bcma_core_pci_enable_crs()
372 for (i = 0; i < 100000; i++) { in bcma_core_pci_enable_crs()
373 bcma_extpci_read_config(pc, dev, 0, in bcma_core_pci_enable_crs()
376 if (val16 != 0x1) in bcma_core_pci_enable_crs()
380 if (val16 == 0x1) in bcma_core_pci_enable_crs()
428 pc_host->io_resource.start = 0x100; in bcma_core_pci_hostmode_init()
429 pc_host->io_resource.end = 0x7FF; in bcma_core_pci_hostmode_init()
456 if (pc->core->core_unit == 0) { in bcma_core_pci_hostmode_init()
460 pc_host->io_resource.start = 0x100; in bcma_core_pci_hostmode_init()
461 pc_host->io_resource.end = 0x47F; in bcma_core_pci_hostmode_init()
469 pc_host->io_resource.start = 0x480; in bcma_core_pci_hostmode_init()
470 pc_host->io_resource.end = 0x7FF; in bcma_core_pci_hostmode_init()
500 bcma_extpci_read_config(pc, 0, 0, BCMA_CORE_PCI_CFG_DEVCTRL, in bcma_core_pci_hostmode_init()
504 bcma_extpci_write_config(pc, 0, 0, BCMA_CORE_PCI_CFG_DEVCTRL, in bcma_core_pci_hostmode_init()
510 bcma_extpci_write_config(pc, 0, 0, PCI_COMMAND, &tmp, sizeof(tmp)); in bcma_core_pci_hostmode_init()
536 if (PCI_SLOT(dev->devfn) != 0) in bcma_core_pci_fixup_pcibridge()
543 if (pcibios_enable_device(dev, ~0) < 0) { in bcma_core_pci_fixup_pcibridge()
563 if (PCI_SLOT(dev->devfn) == 0) in bcma_core_pci_fixup_addresses()
568 for (pos = 0; pos < 6; pos++) { in bcma_core_pci_fixup_addresses()
597 dev->irq = bcma_core_irq(pc_host->pdev->core, 0); in bcma_core_pci_plat_dev_init()
605 return 0; in bcma_core_pci_plat_dev_init()
621 return bcma_core_irq(pc_host->pdev->core, 0); in bcma_core_pci_pcibios_map_irq()