Lines Matching refs:ndev
123 static int mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev,
294 struct nubus_dev * ndev = NULL;
318 while ((ndev = nubus_find_type(NUBUS_CAT_NETWORK, NUBUS_TYPE_ETHERNET, ndev))) {
320 if (slots & (1<<ndev->board->slot))
322 slots |= 1<<ndev->board->slot;
324 if ((cardtype = mac8390_ident(ndev)) == MAC8390_NONE)
332 dev->irq = SLOT2IRQ(ndev->board->slot);
334 dev->base_addr = ndev->board->slot_addr | ((ndev->board->slot&0xf) << 20);
339 if (nubus_get_func_dir(ndev, &dir) == -1) {
342 dev->name, ndev->board->slot);
360 dev->name, ndev->board->slot);
372 dev->name, ndev->board->slot);
383 (int)(ndev->board->slot_addr +
386 (int)(ndev->board->slot_addr +
394 (int)(ndev->board->slot_addr +
397 (int)(ndev->board->slot_addr +
405 (int)(ndev->board->slot_addr +
408 (int)(ndev->board->slot_addr +
426 ndev->board->name);
432 if (!mac8390_initdev(dev, ndev, cardtype))
436 if (!ndev)
485 static int __init mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev,
608 printk(KERN_ERR "Card type %s is unsupported, sorry\n", ndev->board->name);
616 dev->name, ndev->board->name, ndev->board->slot, cardname[type]);