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
|
$NetBSD: patch-ae,v 1.1.1.1 2006/01/09 12:44:15 manu Exp $
--- module/nvnet_lkm.c.orig 2005-06-21 02:18:41.000000000 +0000
+++ module/nvnet_lkm.c 2006-01-04 14:17:00.000000000 +0000
@@ -7,9 +7,15 @@
#include <sys/device.h>
#include <sys/lkm.h>
/* autoconf(9) structures */
-static const char *const nv_attrs[] = {"mii", NULL};
+static const struct cfiattrdata miicf_iattrdata = {
+ "mii", 1,
+ {
+ {"phy", "-1", -1},
+ }
+};
+static const struct cfiattrdata * const nv_attrs[] = { &miicf_iattrdata, NULL };
CFDRIVER_DECL(nv, DV_IFNET, nv_attrs);
extern struct cfattach nv_ca;
@@ -18,9 +24,9 @@
"pci", "pci", DVUNIT_ANY
};
static struct cfdata nv_cfdata[] = {
- {"nv", "nv", 0, FSTATE_STAR, pciloc, 0, &pciparent, 0},
+ {"nv", "nv", 0, FSTATE_STAR, pciloc, 0, &pciparent},
{0}
};
static struct cfdriver *nv_cfdrivers[] = {
|