Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add a new optional function device_register_post_config(...
details: https://anonhg.NetBSD.org/src/rev/68a26e0d02e2
branches: trunk
changeset: 750673:68a26e0d02e2
user: martin <martin%NetBSD.org@localhost>
date: Sun Jan 10 13:42:34 2010 +0000
description:
Add a new optional function device_register_post_config(), symmetric to
device register, called after config is done with a device.
Only used if an arch defines __HAVE_DEVICE_REGISTER_POSTCONFIG.
diffstat:
sys/kern/subr_autoconf.c | 8 ++++++--
sys/rump/librump/rumpdev/rump_dev.c | 14 ++++++++++++--
2 files changed, 18 insertions(+), 4 deletions(-)
diffs (61 lines):
diff -r 89ae51de27ba -r 68a26e0d02e2 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Sun Jan 10 12:10:23 2010 +0000
+++ b/sys/kern/subr_autoconf.c Sun Jan 10 13:42:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.195 2010/01/08 20:07:14 dyoung Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.196 2010/01/10 13:42:34 martin Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.195 2010/01/08 20:07:14 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.196 2010/01/10 13:42:34 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1308,6 +1308,10 @@
aprint_debug_dev(dev, "WARNING: power management not supported\n");
config_process_deferred(&deferred_config_queue, dev);
+
+#ifdef __HAVE_DEVICE_REGISTER_POSTCONFIG
+ device_register_post_config(dev, aux);
+#endif
return dev;
}
diff -r 89ae51de27ba -r 68a26e0d02e2 sys/rump/librump/rumpdev/rump_dev.c
--- a/sys/rump/librump/rumpdev/rump_dev.c Sun Jan 10 12:10:23 2010 +0000
+++ b/sys/rump/librump/rumpdev/rump_dev.c Sun Jan 10 13:42:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_dev.c,v 1.10 2010/01/09 16:32:57 pooka Exp $ */
+/* $NetBSD: rump_dev.c,v 1.11 2010/01/10 13:42:34 martin Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.10 2010/01/09 16:32:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.11 2010/01/10 13:42:34 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -92,3 +92,13 @@
/* nada */
}
#endif
+
+#ifdef __HAVE_DEVICE_REGISTER_POSTCONFIG
+void
+device_register_post_config(struct device *dev, void *v)
+{
+
+ /* nada */
+}
+#endif
+
Home |
Main Index |
Thread Index |
Old Index