From 8b9071e009bb469a12095ae83178567d30e9177b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 25 Apr 2004 15:34:37 +0000 Subject: Add HIDP header file --- include/hidp.h | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 include/hidp.h (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h new file mode 100644 index 00000000..f374b9e8 --- /dev/null +++ b/include/hidp.h @@ -0,0 +1,84 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2003-2004 Marcel Holtmann + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY + * CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, + * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS + * SOFTWARE IS DISCLAIMED. + * + * + * $Id$ + */ + +#ifndef __HIDP_H +#define __HIDP_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* HIDP defaults */ +#define HIDP_MINIMUM_MTU 48 +#define HIDP_DEFAULT_MTU 48 + +/* HIDP ioctl defines */ +#define HIDPCONNADD _IOW('H', 200, int) +#define HIDPCONNDEL _IOW('H', 201, int) +#define HIDPGETCONNLIST _IOR('H', 210, int) +#define HIDPGETCONNINFO _IOR('H', 211, int) + +#define HIDP_VIRTUAL_CABLE_UNPLUG 0 +#define HIDP_BLUETOOTH_VENDOR_ID 1 + +struct hidp_connadd_req { + int ctrl_sock; /* Connected control socket */ + int intr_sock; /* Connected interrupt socket */ + uint16_t parser; /* Parser version */ + uint16_t rd_size; /* Report descriptor size */ + uint8_t *rd_data; /* Report descriptor data */ + uint8_t country; + uint16_t vendor; + uint16_t product; + uint16_t version; + uint32_t flags; + uint32_t idle_to; + char name[128]; /* Device name */ +}; + +struct hidp_conndel_req { + bdaddr_t bdaddr; + uint32_t flags; +}; + +struct hidp_conninfo { + bdaddr_t bdaddr; + uint32_t flags; + uint16_t state; +}; + +struct hidp_connlist_req { + uint16_t cnum; + struct hidp_conninfo *ci; +}; + +#ifdef __cplusplus +} +#endif + +#endif /* __HIDP_H */ -- cgit From 55543cd15f83edbc560f45bd23adae86c511d7ac Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 8 May 2004 19:11:30 +0000 Subject: Update connection information --- include/hidp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index f374b9e8..894ddd1b 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -70,6 +70,10 @@ struct hidp_conninfo { bdaddr_t bdaddr; uint32_t flags; uint16_t state; + uint16_t vendor; + uint16_t product; + uint16_t version; + char name[128]; }; struct hidp_connlist_req { -- cgit From a4a1f2b6249f30899c8226d15d9006d878cf55b5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 4 Jul 2004 15:32:57 +0000 Subject: Add subclass field --- include/hidp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index 894ddd1b..21b62513 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -44,7 +44,8 @@ extern "C" { #define HIDPGETCONNINFO _IOR('H', 211, int) #define HIDP_VIRTUAL_CABLE_UNPLUG 0 -#define HIDP_BLUETOOTH_VENDOR_ID 1 +#define HIDP_BOOT_PROTOCOL_MODE 1 +#define HIDP_BLUETOOTH_VENDOR_ID 9 struct hidp_connadd_req { int ctrl_sock; /* Connected control socket */ @@ -53,6 +54,7 @@ struct hidp_connadd_req { uint16_t rd_size; /* Report descriptor size */ uint8_t *rd_data; /* Report descriptor data */ uint8_t country; + uint8_t subclass; uint16_t vendor; uint16_t product; uint16_t version; -- cgit From 113e48df05d54510646b3dcf33a1df2c60e3461f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Nov 2004 12:54:41 +0000 Subject: The cnum value must be uint32_t to match the kernel interface --- include/hidp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index 21b62513..7f27fde1 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -79,7 +79,7 @@ struct hidp_conninfo { }; struct hidp_connlist_req { - uint16_t cnum; + uint32_t cnum; struct hidp_conninfo *ci; }; -- cgit From f1d23ac858b0593afe27e6b8e00a55d92804a6bb Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 29 Jan 2005 03:08:19 +0000 Subject: Update the copyright year --- include/hidp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index 7f27fde1..e485eeea 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -2,7 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * - * Copyright (C) 2003-2004 Marcel Holtmann + * Copyright (C) 2003-2005 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify -- cgit From c0d524486a50e8366c12c5ebea1a4441e9db46aa Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 29 Oct 2005 19:25:42 +0000 Subject: Big cleanup of CVS relics --- include/hidp.h | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index e485eeea..d040d6d5 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -6,24 +6,19 @@ * * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. - * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY - * CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, - * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS - * SOFTWARE IS DISCLAIMED. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * - * $Id$ */ #ifndef __HIDP_H -- cgit From 197a2aee34d9a1643cd474f8f167552ca6395d01 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 3 Jan 2006 12:56:09 +0000 Subject: Update copyright information --- include/hidp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index d040d6d5..71d0150a 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -2,7 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * - * Copyright (C) 2003-2005 Marcel Holtmann + * Copyright (C) 2003-2006 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify -- cgit From 25effaf3a661c4de960ebae7125ba56a990ad628 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Jan 2007 17:50:06 +0000 Subject: Update copyright information --- include/hidp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index 71d0150a..580495f5 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -2,7 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * - * Copyright (C) 2003-2006 Marcel Holtmann + * Copyright (C) 2003-2007 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify -- cgit From 7208028266fc19d380ac77c97c46b6f2fdc80e1d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 Feb 2008 03:11:09 +0000 Subject: Update copyright information --- include/hidp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hidp.h') diff --git a/include/hidp.h b/include/hidp.h index 580495f5..74da6897 100644 --- a/include/hidp.h +++ b/include/hidp.h @@ -2,7 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * - * Copyright (C) 2003-2007 Marcel Holtmann + * Copyright (C) 2003-2008 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify -- cgit