Lines Matching refs:ndev
431 static int macsonic_ident(struct nubus_dev *ndev) in macsonic_ident() argument
433 if (ndev->dr_hw == NUBUS_DRHW_ASANTE_LC && in macsonic_ident()
434 ndev->dr_sw == NUBUS_DRSW_SONIC_LC) in macsonic_ident()
436 if (ndev->dr_hw == NUBUS_DRHW_SONIC && in macsonic_ident()
437 ndev->dr_sw == NUBUS_DRSW_APPLE) { in macsonic_ident()
439 if (strstr(ndev->board->name, "DuoDock")) in macsonic_ident()
445 if (ndev->dr_hw == NUBUS_DRHW_SMC9194 && in macsonic_ident()
446 ndev->dr_sw == NUBUS_DRSW_DAYNA) in macsonic_ident()
449 if (ndev->dr_hw == NUBUS_DRHW_APPLE_SONIC_LC && in macsonic_ident()
450 ndev->dr_sw == 0) { /* huh? */ in macsonic_ident()
459 struct nubus_dev* ndev = NULL; in mac_nubus_sonic_probe() local
467 while ((ndev = nubus_find_type(NUBUS_CAT_NETWORK, in mac_nubus_sonic_probe()
468 NUBUS_TYPE_ETHERNET, ndev)) != NULL) in mac_nubus_sonic_probe()
471 if (slots & (1<<ndev->board->slot)) in mac_nubus_sonic_probe()
473 slots |= 1<<ndev->board->slot; in mac_nubus_sonic_probe()
476 if ((id = macsonic_ident(ndev)) != -1) in mac_nubus_sonic_probe()
480 if (ndev == NULL) in mac_nubus_sonic_probe()
485 base_addr = ndev->board->slot_addr + DUODOCK_SONIC_REGISTERS; in mac_nubus_sonic_probe()
486 prom_addr = ndev->board->slot_addr + DUODOCK_SONIC_PROM_BASE; in mac_nubus_sonic_probe()
493 base_addr = ndev->board->slot_addr + APPLE_SONIC_REGISTERS; in mac_nubus_sonic_probe()
494 prom_addr = ndev->board->slot_addr + APPLE_SONIC_PROM_BASE; in mac_nubus_sonic_probe()
500 base_addr = ndev->board->slot_addr + APPLE_SONIC_REGISTERS; in mac_nubus_sonic_probe()
501 prom_addr = ndev->board->slot_addr + APPLE_SONIC_PROM_BASE; in mac_nubus_sonic_probe()
508 base_addr = ndev->board->slot_addr + APPLE_SONIC_REGISTERS; in mac_nubus_sonic_probe()
509 prom_addr = ndev->board->slot_addr + DAYNALINK_PROM_BASE; in mac_nubus_sonic_probe()
516 base_addr = ndev->board->slot_addr + DAYNA_SONIC_REGISTERS; in mac_nubus_sonic_probe()
517 prom_addr = ndev->board->slot_addr + DAYNA_SONIC_MAC_ADDR; in mac_nubus_sonic_probe()
533 dev->irq = SLOT2IRQ(ndev->board->slot); in mac_nubus_sonic_probe()
540 dev_name(lp->device), ndev->board->name, ndev->board->slot); in mac_nubus_sonic_probe()