• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /broadcom-cfe-1.4.2/cfe/arch/mips/cpu/bcm1480/src/

Lines Matching defs:tag

247 #define BCM1400_HOST_PORT(tag) (((tag) >> 24) & 0xFF)

1023 extern void sp1011_setup(pcitag_t tag, pci_flags_t flags);
1024 extern void as90l10208_setup(pcitag_t tag, pci_flags_t flags);
1029 extern void ht7520apic_preset(pcitag_t tag);
1030 extern void ht7520apic_setup(pcitag_t tag);
1034 extern void bcm5780devs_enable_preset(pcitag_t tag);
1041 pci_businit_hostbridge (pcitag_t tag, pci_flags_t flags)
1049 pci_device_preset (pcitag_t tag)
1055 id = pci_conf_read(tag, PCI_ID_REG);
1062 if (tag == BCM1400_PCI_BRIDGE || tag == BCM1400_LDT_BRIDGE)
1067 ht7520apic_preset (tag);
1071 bcm5780devs_enable_preset (tag);
1085 pci_device_setup (pcitag_t tag)
1087 pcireg_t id = pci_conf_read(tag, PCI_ID_REG);
1092 ht7520apic_setup (tag);
1102 pci_bridge_setup (pcitag_t tag, pci_flags_t flags)
1104 pcireg_t id = pci_conf_read(tag, PCI_ID_REG);
1110 sp1011_setup (tag, flags);
1113 as90l10208_setup (tag, flags);
1148 pci_break_tag (pcitag_t tag,
1151 if (portp) *portp = (tag >> 24) & PCI_PORTMAX;
1152 if (busp) *busp = (tag >> 16) & PCI_BUSMAX;
1153 if (devicep) *devicep = (tag >> 11) & PCI_DEVMAX;
1154 if (functionp) *functionp = (tag >> 8) & PCI_FUNCMAX;
1159 pci_canscan (pcitag_t tag)
1163 pci_break_tag (tag, &port, &bus, &device, &function);
1182 if (tag == BCM1400_EXT_BRIDGE(i))
1194 pci_probe_tag(pcitag_t tag)
1199 if (!pci_canscan(tag))
1202 addrp = (physaddr_t) BCM1400_CFG_ADDR(tag, PCI_ID_REG, 4);
1227 pci_conf_readn(pcitag_t tag, int reg, int width)
1236 pci_tagprintf(tag, "pci_conf_readn: bad reg 0x%x\n", reg);
1240 pci_break_tag(tag, &port, &bus, &device, &function);
1244 pci_tagprintf(tag, "pci_conf_readn: bad tag 0x%x\n", tag);
1251 addrp = (physaddr_t) BCM1400_CFG_ADDR(tag, reg, width);
1271 pci_conf_read8(pcitag_t tag, int reg)
1273 return pci_conf_readn(tag, reg, 1);
1277 pci_conf_read(pcitag_t tag, int reg)
1279 return pci_conf_readn(tag, reg, 4);
1283 pci_conf_writen(pcitag_t tag, int reg, pcireg_t data, int width)
1291 pci_tagprintf(tag, "pci_conf_writen: bad reg 0x%x\n", reg);
1295 pci_break_tag(tag, &port, &bus, &device, &function);
1299 pci_tagprintf(tag, "pci_conf_writen: bad tag 0x%x\n", tag);
1306 addrp = (physaddr_t) BCM1400_CFG_ADDR(tag, reg, width);
1324 pci_conf_write8(pcitag_t tag, int reg, pcireg_t data)
1326 pci_conf_writen(tag, reg, data, 1);
1330 pci_conf_write(pcitag_t tag, int reg, pcireg_t data)
1332 pci_conf_writen(tag, reg, data, 4);
1340 pci_conf_write_acked(pcitag_t tag, int reg, pcireg_t data)
1347 pci_break_tag(tag, &port, &bus, NULL, NULL);
1358 pci_conf_write(tag, reg, data);
1372 pci_conf_write(tag, reg, data);
1383 pci_conf_write(tag, reg, data);
1384 (void) pci_conf_read(tag, reg);
1395 pci_map_io(pcitag_t tag, int reg, pci_endian_t endian, phys_addr_t *pap)
1403 pci_tagprintf(tag, "pci_map_io: bad request\n");
1407 address = pci_conf_read(tag, reg);
1411 pci_tagprintf(tag,
1416 p = &P[BCM1400_HOST_PORT(tag)];
1425 pci_map_mem(pcitag_t tag, int reg, pci_endian_t endian, phys_addr_t *pap)
1433 address = pci_conf_read(tag, reg);
1435 pci_tagprintf(tag, "pci_map_mem: attempt to map missing rom\n");
1442 pci_tagprintf(tag, "pci_map_mem: bad request\n");
1446 address = pci_conf_read(tag, reg);
1450 pci_tagprintf(tag,
1463 pa |= ((phys_addr_t)pci_conf_read(tag, reg+4) << 32);
1466 pci_tagprintf(tag, "pci_map_mem: bad 64-bit reguest\n");
1472 pci_tagprintf(tag, "pci_map_mem: reserved mapping type\n");
1477 p = &P[BCM1400_HOST_PORT(tag)];
1643 hs_pci_conf_read(unsigned int node, pcitag_t tag, int reg)
1650 addrp = NODE_ADDR(node, (physaddr_t)BCM1400_CFG_ADDR(tag, reg, 4));
1659 hs_pci_conf_write(unsigned int node, pcitag_t tag, int reg, pcireg_t data)
1665 addrp = NODE_ADDR(node, (physaddr_t)BCM1400_CFG_ADDR(tag, reg, 4));
1727 pcitag_t tag;
1730 tag = BCM1400_EXT_BRIDGE(port);
1731 vc_cfg = hs_pci_conf_read(node, tag, R_BCM1480_HTB_VCSETCAP + 4);
1735 hs_pci_conf_write(node, tag, R_BCM1480_HTB_VCSETCAP + 4, vc_cfg);