Module Name: src Committed By: macallan Date: Wed Jan 20 16:36:55 UTC 2010
Modified Files: src/sys/arch/powerpc/oea: ofw_autoconf.c Log Message: pass some OF properties as device properties for network devices namely local-mac-address and shared-pins needed by gem To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/powerpc/oea/ofw_autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/oea/ofw_autoconf.c diff -u src/sys/arch/powerpc/oea/ofw_autoconf.c:1.10 src/sys/arch/powerpc/oea/ofw_autoconf.c:1.11 --- src/sys/arch/powerpc/oea/ofw_autoconf.c:1.10 Wed Mar 18 10:22:34 2009 +++ src/sys/arch/powerpc/oea/ofw_autoconf.c Wed Jan 20 16:36:55 2010 @@ -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"); + } } }