Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea pass some OF properties as device prope...



details:   https://anonhg.NetBSD.org/src/rev/b1a053b9ea30
branches:  trunk
changeset: 750984:b1a053b9ea30
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Jan 20 16:36:55 2010 +0000

description:
pass some OF properties as device properties for network devices
namely local-mac-address and shared-pins needed by gem

diffstat:

 sys/arch/powerpc/oea/ofw_autoconf.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 908b3a3ed2ff -r b1a053b9ea30 sys/arch/powerpc/oea/ofw_autoconf.c
--- a/sys/arch/powerpc/oea/ofw_autoconf.c       Wed Jan 20 16:31:35 2010 +0000
+++ b/sys/arch/powerpc/oea/ofw_autoconf.c       Wed Jan 20 16:36:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_autoconf.c,v 1.10 2009/03/18 10:22:34 cegger Exp $ */
+/* $NetBSD: ofw_autoconf.c,v 1.11 2010/01/20 16:36:55 macallan Exp $ */
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
  * Copyright (C) 1995, 1996 TooLs GmbH.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.10 2009/03/18 10:22:34 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.11 2010/01/20 16:36:55 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -249,6 +249,12 @@
                                prop_dictionary_set_bool(dict, "is_console", 0);
                                copy_disp_props(dev, node, dict);
                        }
+                       if (pci_class == PCI_CLASS_NETWORK) {
+                               of_to_dataprop(dict, node, "local-mac-address",
+                                   "mac-address");
+                               of_to_dataprop(dict, node, "shared-pins",
+                                   "shared-pins");
+                       }
                }
        }
 



Home | Main Index | Thread Index | Old Index