Lines Matching +full:unit +full:- +full:addresses
1 // SPDX-License-Identifier: GPL-2.0-or-later
17 * - get rid of pre-linked dev list, dynamic device allocation
19 * - struct init cleanup, enable multiple ISA autoprobes.
20 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 09/1999
21 * - fix sbni: s/device/net_device/
23 * - sort probes in a sane way, make sure all (safe) probes
38 struct net_device *(*probe)(int unit);
39 int status; /* non-zero if autoprobe has failed */
42 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) in probe_list2() argument
46 for (; p->probe; p++) { in probe_list2()
47 if (autoprobe && p->status) in probe_list2()
49 dev = p->probe(unit); in probe_list2()
53 p->status = PTR_ERR(dev); in probe_list2()
55 return -ENODEV; in probe_list2()
58 /* ISA probes that touch addresses < 0x400 (including those that also
74 #if defined(CONFIG_NE2000) /* ISA (use ne2k-pci for PCI cards) */
98 #ifdef CONFIG_ATARILANCE /* Lance-based Atari ethernet boards */
120 static void __init ethif_probe2(int unit) in ethif_probe2() argument
122 unsigned long base_addr = netdev_boot_base("eth", unit); in ethif_probe2()
127 (void)(probe_list2(unit, m68k_probes, base_addr == 0) && in ethif_probe2()
128 probe_list2(unit, isa_probes, base_addr == 0)); in ethif_probe2()
131 /* Statically configured drivers -- order matters here. */