Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net bluetooth stack component for rump



details:   https://anonhg.NetBSD.org/src/rev/f31b23ea1b42
branches:  trunk
changeset: 753285:f31b23ea1b42
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Mar 22 12:08:44 2010 +0000

description:
bluetooth stack component for rump

diffstat:

 sys/rump/net/Makefile.rumpnet             |   4 +-
 sys/rump/net/lib/libnetbt/Makefile        |  19 +++++++++++++
 sys/rump/net/lib/libnetbt/component.c     |  43 +++++++++++++++++++++++++++++++
 sys/rump/net/lib/libnetbt/opt_bluetooth.h |   3 ++
 sys/rump/net/lib/libnetbt/shlib_version   |   4 ++
 5 files changed, 71 insertions(+), 2 deletions(-)

diffs (98 lines):

diff -r 7cb88c600cfc -r f31b23ea1b42 sys/rump/net/Makefile.rumpnet
--- a/sys/rump/net/Makefile.rumpnet     Mon Mar 22 12:05:45 2010 +0000
+++ b/sys/rump/net/Makefile.rumpnet     Mon Mar 22 12:08:44 2010 +0000
@@ -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}
diff -r 7cb88c600cfc -r f31b23ea1b42 sys/rump/net/lib/libnetbt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libnetbt/Makefile        Mon Mar 22 12:08:44 2010 +0000
@@ -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>
diff -r 7cb88c600cfc -r f31b23ea1b42 sys/rump/net/lib/libnetbt/component.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libnetbt/component.c     Mon Mar 22 12:08:44 2010 +0000
@@ -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);
+}
diff -r 7cb88c600cfc -r f31b23ea1b42 sys/rump/net/lib/libnetbt/opt_bluetooth.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libnetbt/opt_bluetooth.h Mon Mar 22 12:08:44 2010 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: opt_bluetooth.h,v 1.1 2010/03/22 12:08:44 pooka Exp $  */
+
+#define BLUETOOTH 1
diff -r 7cb88c600cfc -r f31b23ea1b42 sys/rump/net/lib/libnetbt/shlib_version
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libnetbt/shlib_version   Mon Mar 22 12:08:44 2010 +0000
@@ -0,0 +1,4 @@
+#      $NetBSD: shlib_version,v 1.1 2010/03/22 12:08:44 pooka Exp $
+#
+major=0
+minor=0



Home | Main Index | Thread Index | Old Index