1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
$NetBSD: patch-ac,v 1.7 2002/05/25 20:51:27 dmcmahill Exp $
--- sn_data.h.orig Fri Apr 18 05:33:58 1997
+++ sn_data.h Sat May 25 15:04:03 2002
@@ -26,4 +26,38 @@
#endif
+#ifdef NETBSD
+#ifdef __alpha__
+#define ETH_DEV_NR 13
+char *ETH_DEV[]={"de","en","ep","fea","fpa","fxp","lc","le","ne","sm","tl","tlp","we"};
+#elif defined(__arm__)
+#define ETH_DEV_NR 18
+/* XXX This list may not be complete; cs tested on a DNARD */
+char *ETH_DEV[]={"cs", "de", "ea", "eb", "en", "ep", "ex", "fpa", "fxp", "ie", "le", "lmc", "ne", "rtk", "sip", "tl", "tlp", "vr"};
+#elif defined(__i386__)
+#define ETH_DEV_NR 20
+char *ETH_DEV[]={"ai","de","ec","ef","eg","el","en","ep","fe","fea","fpa","fxp","ix","iy","lc","le","ne","sm","tl","we"};
+#elif defined(__m68k__)
+#define ETH_DEV_NR 9
+char *ETH_DEV[]={"ae","bah","ed","es","le","mc","qn","sm","sn"};
+#elif defined(__mips__)
+#define ETH_DEV_NR 8
+char *ETH_DEV[]={"awi","ep","mbe","le","ne","sm","tlp","wi"};
+#elif defined(__powerpc__)
+#define ETH_DEV_NR 17
+char *ETH_DEV[]={"de", "fpa", "ep", "epic", "ex", "fxp", "lmc", "ne", "rtk", "sip", "tlp", "gm", "bm", "mc", "mbe", "awi", "wi"};
+#elif defined(__sh3__)
+#define ETH_DEV_NR 4
+char *ETH_DEV[]={"ep","mbe","ne","sm"};
+#elif defined(__sparc__)
+#define ETH_DEV_NR 9
+char *ETH_DEV[]={"be","ep","hme","ie","le","mbe","ne","qe","sm"};
+#elif defined(__vax__)
+#define ETH_DEV_NR 3
+char *ETH_DEV[]={"le","ni","ze"};
+#else
+#error Unknown network devices for this NetBSD architecture.
+#endif
+#endif
+
#ifdef BSDI
#define ETH_DEV_NR 1
|