From owner-freebsd-current Fri Sep 13 13: 8:20 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB8B237B401; Fri, 13 Sep 2002 13:08:05 -0700 (PDT) Received: from scl8owa01.int.exodus.net (scl8out01.exodus.net [66.35.230.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79CE943E4A; Fri, 13 Sep 2002 13:07:56 -0700 (PDT) (envelope-from Maksim.Yevmenkin@exodus.net) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa01.int.exodus.net with Microsoft SMTPSVC(5.0.2195.4905); Fri, 13 Sep 2002 13:09:54 -0700 Received: from exodus.net ([206.220.227.147]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.4905); Fri, 13 Sep 2002 13:09:54 -0700 Message-ID: <3D82459B.A7608E89@exodus.net> Date: Fri, 13 Sep 2002 13:07:55 -0700 From: Maksim Yevmenkin X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org, mobile@freebsd.org Subject: Re: Bluetooth stack for FreeBSD Content-Type: multipart/mixed; boundary="------------C006AA65C004BE0367DF52F8" X-OriginalArrivalTime: 13 Sep 2002 20:09:54.0599 (UTC) FILETIME=[867B7B70:01C25B61] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------C006AA65C004BE0367DF52F8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hackers, please find attached patches for the latest snapshot (2002-09-09). i would like to take the moment and thank the following people for help. Simon Dick FUJIMOTO Kou thanks, max --------------C006AA65C004BE0367DF52F8 Content-Type: text/plain; charset=us-ascii; name="btsocket.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="btsocket.diff" Index: ng_btsocket.c =================================================================== RCS file: /usr/local/cvs/btsocket/ng_btsocket.c,v retrieving revision 1.19 diff -u -7 -r1.19 ng_btsocket.c --- ng_btsocket.c 9 Sep 2002 00:06:31 -0000 1.19 +++ ng_btsocket.c 13 Sep 2002 17:29:02 -0000 @@ -37,14 +37,16 @@ #include #include #include #include #include #include #include +#include +#include #include "ng_bluetooth.h" #include "ng_hci.h" #include "ng_l2cap.h" #include "ng_btsocket.h" #include "ng_btsocket_hci_raw.h" #include "ng_btsocket_l2cap.h" @@ -217,16 +219,18 @@ "ng_btsocket", ng_btsocket_modevent, NULL }; DECLARE_MODULE(ng_btsocket, ng_btsocket_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); MODULE_VERSION(ng_btsocket, NG_BLUETOOTH_VERSION); -MODULE_DEPEND(ng_l2cap, ng_bluetooth, NG_BLUETOOTH_VERSION, +MODULE_DEPEND(ng_btsocket, ng_bluetooth, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION); +MODULE_DEPEND(ng_btsocket, netgraph, NG_ABI_VERSION, + NG_ABI_VERSION, NG_ABI_VERSION); /* * Handle loading and unloading for this node type. * This is to handle auxiliary linkages (e.g protocol domain addition). */ static int --------------C006AA65C004BE0367DF52F8 Content-Type: text/plain; charset=us-ascii; name="hcdump.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hcdump.diff" Index: Makefile =================================================================== RCS file: /usr/local/cvs/hcdump/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- Makefile 6 Sep 2002 18:40:03 -0000 1.4 +++ Makefile 13 Sep 2002 18:34:45 -0000 @@ -7,6 +7,6 @@ MAN1= hcdump.1 WARNS?= 2 SRCS= hcdump.c hci.c l2cap.c utils.c -CFLAGS+= -g -I../hci/ -I../../current/l2cap/ -I../btsocket +CFLAGS+= -g -I../hci/ -I../l2cap/ -I../btsocket .include --------------C006AA65C004BE0367DF52F8 Content-Type: text/plain; charset=us-ascii; name="ubt.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ubt.diff" Index: ubt.c =================================================================== RCS file: /usr/local/cvs/ubt/ubt.c,v retrieving revision 1.6 diff -u -7 -r1.6 ubt.c --- ubt.c 4 Sep 2002 21:41:06 -0000 1.6 +++ ubt.c 13 Sep 2002 16:29:35 -0000 @@ -209,15 +209,17 @@ /* * Probe for a USB Bluetooth device */ USB_MATCH(ubt) { Static struct usb_devno const ubt_devices[] = { - { USB_VENDOR_3COM, USB_PRODUCT_3COM_3CREB96 }, + { USB_VENDOR_3COM, USB_PRODUCT_3COM_3CREB96 }, + { USB_VENDOR_MITSUMI, USB_PRODUCT_MITSUMI_BT_DONGLE }, + { USB_VENDOR_TDK, USB_PRODUCT_TDK_BT_DONGLE }, { 0, 0 } }; USB_MATCH_START(ubt, uaa); if (uaa->iface == NULL || usb_lookup(ubt_devices, uaa->vendor, uaa->product) == NULL) Index: ubt.h =================================================================== RCS file: /usr/local/cvs/ubt/ubt.h,v retrieving revision 1.4 diff -u -7 -r1.4 ubt.h --- ubt.h 4 Sep 2002 21:41:06 -0000 1.4 +++ ubt.h 13 Sep 2002 16:28:33 -0000 @@ -30,14 +30,16 @@ */ #ifndef _UBT_H_ #define _UBT_H_ /* XXX FIXME Does not belong here. Move to usbdevs.h later */ #define USB_PRODUCT_3COM_3CREB96 0x00a0 /* 3Com Bluetooth USB dongle */ +#define USB_PRODUCT_MITSUMI_BT_DONGLE 0x641f /* Mitsumi Bluetooth USB dongle*/ +#define USB_PRODUCT_TDK_BT_DONGLE 0x0309 /* TDK Bluetooth USB dongle */ /* XXX FIXME Does not belong here. Move to usb.h later */ #define UICLASS_WIRELESS_CONTROLLER 0xe0 /* Wireless Controller */ #define UISUBCLASS_RF_CONTROLLER 0x01 /* RF Controller */ #define UIPROTO_BLUETOOTH 0x01 /* Bluetooth programming */ /************************************************************************** --------------C006AA65C004BE0367DF52F8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message