Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/yamt-uio_vmspace]: src/sys/arch/algor/algor pull 1.10 and 1.11. (compil...



details:   https://anonhg.NetBSD.org/src/rev/baefff1203f5
branches:  yamt-uio_vmspace
changeset: 586738:baefff1203f5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Feb 18 17:22:04 2006 +0000

description:
pull 1.10 and 1.11.  (compilation fix)

diffstat:

 sys/arch/algor/algor/autoconf.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 88773c48084d -r baefff1203f5 sys/arch/algor/algor/autoconf.c
--- a/sys/arch/algor/algor/autoconf.c   Sat Feb 18 16:54:31 2006 +0000
+++ b/sys/arch/algor/algor/autoconf.c   Sat Feb 18 17:22:04 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.6.2.2 2006/02/18 16:54:31 yamt Exp $    */
+/*     $NetBSD: autoconf.c,v 1.6.2.3 2006/02/18 17:22:04 yamt Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6.2.2 2006/02/18 16:54:31 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6.2.3 2006/02/18 17:22:04 yamt Exp $");
 
 #include "opt_algor_p4032.h"
 #include "opt_algor_p5064.h"
@@ -49,6 +49,11 @@
 #include <sys/reboot.h>
 #include <sys/device.h>
 
+#include <dev/pci/pcivar.h>
+
+#include <net/if.h>
+#include <net/if_ether.h>
+
 #include <machine/bus.h>
 #include <machine/autoconf.h>
 #include <machine/intr.h>
@@ -109,7 +114,7 @@
                if (BUILTIN_ETHERNET_P(pa)) {
                        if (devprop_set(dev, "mac-addr",
                                     algor_ethaddr,
-                                    sizeof(algor_ethaddr), 0, 0) != 0) {
+                                    ETHER_ADDR_LEN, 0, 0) != 0) {
                                printf("WARNING: unable to set mac-addr "
                                    "property for %s\n", dev->dv_xname);
                        }



Home | Main Index | Thread Index | Old Index