[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Wed Feb 1 10:57:13 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/5e6a19879249
changeset: 332:5e6a19879249
user:      ray at terran.dlink.ua
date:      Wed Feb 01 12:56:16 2012 +0200
description:
Add devctl utility and kernel code. forget about header

diffstat:

 head/sys/sys/bus.h |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (32 lines):

diff -r b0ba90c55594 -r 5e6a19879249 head/sys/sys/bus.h
--- a/head/sys/sys/bus.h	Wed Feb 01 12:55:36 2012 +0200
+++ b/head/sys/sys/bus.h	Wed Feb 01 12:56:16 2012 +0200
@@ -31,6 +31,7 @@
 
 #include <machine/_limits.h>
 #include <sys/_bus_dma.h>
+#include <sys/ioccom.h> /* Required by _IOW */
 
 /**
  * @defgroup NEWBUS newbus - a generic framework for managing devices
@@ -74,6 +75,20 @@
 	/* XXX more driver info? */
 };
 
+#ifdef DEVCTL_ATTACH_ENABLED
+struct devctl_attach_args {
+	char 	*bus_name;
+	int	bus_unit;
+	char	*dev_name;
+	int	dev_unit;
+};
+
+#define	DEVCTLADEV	_IOW('D', 1, struct devctl_attach_args) /* attach device to bus */
+#define	DEVCTLAHDEV	_IOW('D', 2, struct devctl_attach_args) /* attach hinted device to bus */
+#define	DEVCTLDDEV	_IOW('D', 3, struct devctl_attach_args) /* detach device from bus */
+
+#endif
+
 #ifdef _KERNEL
 
 #include <sys/queue.h>


More information about the Zrouter-src-freebsd mailing list