Module Name:    src
Committed By:   pooka
Date:           Mon Mar 22 12:08:44 UTC 2010

Modified Files:
        src/sys/rump/net: Makefile.rumpnet
Added Files:
        src/sys/rump/net/lib/libnetbt: Makefile component.c opt_bluetooth.h
            shlib_version

Log Message:
bluetooth stack component for rump


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/net/Makefile.rumpnet
cvs rdiff -u -r0 -r1.1 src/sys/rump/net/lib/libnetbt/Makefile \
    src/sys/rump/net/lib/libnetbt/component.c \
    src/sys/rump/net/lib/libnetbt/opt_bluetooth.h \
    src/sys/rump/net/lib/libnetbt/shlib_version

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/net/Makefile.rumpnet
diff -u src/sys/rump/net/Makefile.rumpnet:1.6 src/sys/rump/net/Makefile.rumpnet:1.7
--- src/sys/rump/net/Makefile.rumpnet:1.6	Fri Feb  5 22:01:38 2010
+++ src/sys/rump/net/Makefile.rumpnet	Mon Mar 22 12:08:44 2010
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile.rumpnet,v 1.6 2010/02/05 22:01:38 pooka Exp $
+#	$NetBSD: Makefile.rumpnet,v 1.7 2010/03/22 12:08:44 pooka Exp $
 #
 
-RUMPNETLIST=	net net80211 netinet local sockin shmif virtif
+RUMPNETLIST=	net net80211 netbt netinet local sockin shmif virtif
 
 .for var in ${RUMPNETLIST}
 RUMPNETLIBS+=lib${var}

Added files:

Index: src/sys/rump/net/lib/libnetbt/Makefile
diff -u /dev/null src/sys/rump/net/lib/libnetbt/Makefile:1.1
--- /dev/null	Mon Mar 22 12:08:44 2010
+++ src/sys/rump/net/lib/libnetbt/Makefile	Mon Mar 22 12:08:44 2010
@@ -0,0 +1,19 @@
+#	$NetBSD: Makefile,v 1.1 2010/03/22 12:08:44 pooka Exp $
+#
+
+.PATH:	${.CURDIR}/../../../../netbt
+
+LIB=	rumpnet_netbt
+
+SRCS=	bt_proto.c bt_sysctl.c						\
+	hci_event.c hci_ioctl.c hci_link.c hci_misc.c hci_socket.c	\
+	hci_unit.c							\
+	l2cap_lower.c l2cap_misc.c l2cap_signal.c l2cap_socket.c	\
+	l2cap_upper.c							\
+	rfcomm_dlc.c rfcomm_session.c rfcomm_socket.c rfcomm_upper.c	\
+	sco_socket.c sco_upper.c
+
+SRCS+=	component.c
+
+.include <bsd.lib.mk>
+.include <bsd.klinks.mk>
Index: src/sys/rump/net/lib/libnetbt/component.c
diff -u /dev/null src/sys/rump/net/lib/libnetbt/component.c:1.1
--- /dev/null	Mon Mar 22 12:08:44 2010
+++ src/sys/rump/net/lib/libnetbt/component.c	Mon Mar 22 12:08:44 2010
@@ -0,0 +1,43 @@
+/*	$NetBSD: component.c,v 1.1 2010/03/22 12:08:44 pooka Exp $	*/
+
+/*
+ * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.1 2010/03/22 12:08:44 pooka Exp $");
+
+#include <sys/param.h>
+#include <sys/domain.h>
+#include <sys/protosw.h>
+
+#include "rump_private.h"
+#include "rump_net_private.h"
+
+RUMP_COMPONENT(RUMP_COMPONENT_NET)
+{
+	extern struct domain btdomain;
+
+	DOMAINADD(btdomain);
+}
Index: src/sys/rump/net/lib/libnetbt/opt_bluetooth.h
diff -u /dev/null src/sys/rump/net/lib/libnetbt/opt_bluetooth.h:1.1
--- /dev/null	Mon Mar 22 12:08:44 2010
+++ src/sys/rump/net/lib/libnetbt/opt_bluetooth.h	Mon Mar 22 12:08:44 2010
@@ -0,0 +1,3 @@
+/*	$NetBSD: opt_bluetooth.h,v 1.1 2010/03/22 12:08:44 pooka Exp $	*/
+
+#define BLUETOOTH 1
Index: src/sys/rump/net/lib/libnetbt/shlib_version
diff -u /dev/null src/sys/rump/net/lib/libnetbt/shlib_version:1.1
--- /dev/null	Mon Mar 22 12:08:44 2010
+++ src/sys/rump/net/lib/libnetbt/shlib_version	Mon Mar 22 12:08:44 2010
@@ -0,0 +1,4 @@
+#	$NetBSD: shlib_version,v 1.1 2010/03/22 12:08:44 pooka Exp $
+#
+major=0
+minor=0

Reply via email to