summaryrefslogtreecommitdiff
path: root/sysutils/nvnet/patches/patch-ae
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2006-01-09 12:44:15 +0000
committermanu <manu@pkgsrc.org>2006-01-09 12:44:15 +0000
commit041d8cadf6b5afc2890685b6c84dda230d552939 (patch)
treed8e9bc4b694c1bd44e3b2c5a4153b32b7f62617e /sysutils/nvnet/patches/patch-ae
parentd3eebd2f93c2a3bdeeaeff11ffdf3652f5672ddd (diff)
downloadpkgsrc-041d8cadf6b5afc2890685b6c84dda230d552939.tar.gz
Binary driver for nVidia ethernet
Diffstat (limited to 'sysutils/nvnet/patches/patch-ae')
-rw-r--r--sysutils/nvnet/patches/patch-ae31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/nvnet/patches/patch-ae b/sysutils/nvnet/patches/patch-ae
new file mode 100644
index 00000000000..05cef48a430
--- /dev/null
+++ b/sysutils/nvnet/patches/patch-ae
@@ -0,0 +1,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[] = {