Lines Matching +full:ethernet +full:- +full:phy +full:- +full:package
15 #include <linux/dma-mapping.h>
55 { BCMA_CORE_ETHERNET, "Fast Ethernet" },
68 { BCMA_CORE_PHY_A, "PHY A" },
69 { BCMA_CORE_PHY_B, "PHY B" },
70 { BCMA_CORE_PHY_G, "PHY G" },
78 { BCMA_CORE_SATA_XORDMA, "SATA XOR-DMA" },
79 { BCMA_CORE_ETHERNET_GBIT, "GBit Ethernet" },
81 { BCMA_CORE_PHY_N, "PHY N" },
84 { BCMA_CORE_PHY_LP, "PHY LP" },
86 { BCMA_CORE_PHY_SSN, "PHY SSN" },
88 { BCMA_CORE_PHY_HT, "PHY HT" },
119 switch (id->manuf) { in bcma_device_name()
137 if (names[i].id == id->id) in bcma_device_name()
146 return readl(bus->mmio + offset); in bcma_scan_read32()
151 if (bus->hosttype == BCMA_HOSTTYPE_PCI) in bcma_scan_switch_core()
152 pci_write_config_dword(bus->host_pci, BCMA_PCI_BAR0_WIN, in bcma_scan_switch_core()
165 (*eromptr)--; in bcma_erom_push_ent()
172 return -ENOENT; in bcma_erom_get_ci()
174 return -ENOENT; in bcma_erom_get_ci()
212 return -ENOENT; in bcma_erom_get_mst_port()
214 return -ENOENT; in bcma_erom_get_mst_port()
230 return (u32)-EINVAL; in bcma_erom_get_addr_desc()
251 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_by_index()
252 if (core->core_index == index) in bcma_find_core_by_index()
262 list_for_each_entry_reverse(core, &bus->cores, list) { in bcma_find_core_reverse()
263 if (core->id.id == coreid) in bcma_find_core_reverse()
269 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
285 return -ESPIPE; in bcma_get_next_core()
286 return -EILSEQ; in bcma_get_next_core()
290 return -EILSEQ; in bcma_get_next_core()
293 core->id.class = (cia & SCAN_CIA_CLASS) >> SCAN_CIA_CLASS_SHIFT; in bcma_get_next_core()
294 core->id.id = (cia & SCAN_CIA_ID) >> SCAN_CIA_ID_SHIFT; in bcma_get_next_core()
295 core->id.manuf = (cia & SCAN_CIA_MANUF) >> SCAN_CIA_MANUF_SHIFT; in bcma_get_next_core()
300 core->id.rev = (cib & SCAN_CIB_REV) >> SCAN_CIB_REV_SHIFT; in bcma_get_next_core()
302 if (((core->id.manuf == BCMA_MANUF_ARM) && in bcma_get_next_core()
303 (core->id.id == 0xFFF)) || in bcma_get_next_core()
306 return -ENXIO; in bcma_get_next_core()
312 switch (core->id.id) { in bcma_get_next_core()
321 return -ENXIO; in bcma_get_next_core()
327 return -ENXIO; in bcma_get_next_core()
332 return -ENODEV; in bcma_get_next_core()
335 if (match && ((match->manuf != BCMA_ANY_MANUF && in bcma_get_next_core()
336 match->manuf != core->id.manuf) || in bcma_get_next_core()
337 (match->id != BCMA_ANY_ID && match->id != core->id.id) || in bcma_get_next_core()
338 (match->rev != BCMA_ANY_REV && match->rev != core->id.rev) || in bcma_get_next_core()
339 (match->class != BCMA_ANY_CLASS && match->class != core->id.class) in bcma_get_next_core()
342 return -ENODEV; in bcma_get_next_core()
349 return -EILSEQ; in bcma_get_next_core()
361 return -EILSEQ; in bcma_get_next_core()
364 return -ENXIO; in bcma_get_next_core()
367 core->addr = tmp; in bcma_get_next_core()
380 } else if (k < ARRAY_SIZE(core->addr_s)) { in bcma_get_next_core()
381 core->addr_s[k] = tmp; in bcma_get_next_core()
399 core->wrap = tmp; in bcma_get_next_core()
417 core->wrap = tmp; in bcma_get_next_core()
421 if (bus->hosttype == BCMA_HOSTTYPE_SOC) { in bcma_get_next_core()
422 core->io_addr = ioremap(core->addr, BCMA_CORE_SIZE); in bcma_get_next_core()
423 if (!core->io_addr) in bcma_get_next_core()
424 return -ENOMEM; in bcma_get_next_core()
425 if (core->wrap) { in bcma_get_next_core()
426 core->io_wrap = ioremap(core->wrap, in bcma_get_next_core()
428 if (!core->io_wrap) { in bcma_get_next_core()
429 iounmap(core->io_addr); in bcma_get_next_core()
430 return -ENOMEM; in bcma_get_next_core()
440 struct bcma_chipinfo *chipinfo = &(bus->chipinfo); in bcma_detect_chip()
446 chipinfo->id = (tmp & BCMA_CC_ID_ID) >> BCMA_CC_ID_ID_SHIFT; in bcma_detect_chip()
447 chipinfo->rev = (tmp & BCMA_CC_ID_REV) >> BCMA_CC_ID_REV_SHIFT; in bcma_detect_chip()
448 chipinfo->pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT; in bcma_detect_chip()
451 (chipinfo->id > 0x9999) ? "%d" : "0x%04X", chipinfo->id); in bcma_detect_chip()
452 bcma_info(bus, "Found chip with id %s, rev 0x%02X and package 0x%02X\n", in bcma_detect_chip()
453 chip_id, chipinfo->rev, chipinfo->pkg); in bcma_detect_chip()
464 if (bus->nr_cores) in bcma_bus_scan()
468 if (bus->hosttype == BCMA_HOSTTYPE_SOC) { in bcma_bus_scan()
471 return -ENOMEM; in bcma_bus_scan()
473 eromptr = bus->mmio; in bcma_bus_scan()
484 err = -ENOMEM; in bcma_bus_scan()
487 INIT_LIST_HEAD(&core->list); in bcma_bus_scan()
488 core->bus = bus; in bcma_bus_scan()
493 if (err == -ENODEV) { in bcma_bus_scan()
496 } else if (err == -ENXIO) { in bcma_bus_scan()
498 } else if (err == -ESPIPE) { in bcma_bus_scan()
504 core->core_index = core_num++; in bcma_bus_scan()
505 bus->nr_cores++; in bcma_bus_scan()
506 other_core = bcma_find_core_reverse(bus, core->id.id); in bcma_bus_scan()
507 core->core_unit = (other_core == NULL) ? 0 : other_core->core_unit + 1; in bcma_bus_scan()
511 core->core_index, bcma_device_name(&core->id), in bcma_bus_scan()
512 core->id.manuf, core->id.id, core->id.rev, in bcma_bus_scan()
513 core->id.class); in bcma_bus_scan()
515 list_add_tail(&core->list, &bus->cores); in bcma_bus_scan()
520 if (bus->hosttype == BCMA_HOSTTYPE_SOC) in bcma_bus_scan()