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
34 * This structure holds boot-time configured netdevice settings. They
46 * Device Boot-time Settings Routines
54 * netdev_boot_setup_add - add new setup entry
81 * netdev_boot_setup_check - check boot time settings
96 !strcmp(dev->name, s[i].name)) { in netdev_boot_setup_check()
97 dev->irq = s[i].map.irq; in netdev_boot_setup_check()
98 dev->base_addr = s[i].map.base_addr; in netdev_boot_setup_check()
99 dev->mem_start = s[i].map.mem_start; in netdev_boot_setup_check()
100 dev->mem_end = s[i].map.mem_end; in netdev_boot_setup_check()
109 * netdev_boot_base - get address from boot time settings
111 * @unit: id for network device
118 static unsigned long netdev_boot_base(const char *prefix, int unit) in netdev_boot_base() argument
124 sprintf(name, "%s%d", prefix, unit); in netdev_boot_base()
180 struct net_device *(*probe)(int unit);
181 int status; /* non-zero if autoprobe has failed */
184 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) in probe_list2() argument
188 for (; p->probe; p++) { in probe_list2()
189 if (autoprobe && p->status) in probe_list2()
191 dev = p->probe(unit); in probe_list2()
195 p->status = PTR_ERR(dev); in probe_list2()
197 return -ENODEV; in probe_list2()
200 /* ISA probes that touch addresses < 0x400 (including those that also
213 #if defined(CONFIG_NE2000) /* ISA (use ne2k-pci for PCI cards) */
232 static void __init ethif_probe2(int unit) in ethif_probe2() argument
234 unsigned long base_addr = netdev_boot_base("eth", unit); in ethif_probe2()
239 probe_list2(unit, isa_probes, base_addr == 0); in ethif_probe2()
242 /* Statically configured drivers -- order matters here. */