3
* BlueZ - Bluetooth protocol stack for Linux
5
* Copyright (C) 2003-2010 Marcel Holtmann <marcel@holtmann.org>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32
#define HIDP_MINIMUM_MTU 48
33
#define HIDP_DEFAULT_MTU 48
35
/* HIDP ioctl defines */
36
#define HIDPCONNADD _IOW('H', 200, int)
37
#define HIDPCONNDEL _IOW('H', 201, int)
38
#define HIDPGETCONNLIST _IOR('H', 210, int)
39
#define HIDPGETCONNINFO _IOR('H', 211, int)
41
#define HIDP_VIRTUAL_CABLE_UNPLUG 0
42
#define HIDP_BOOT_PROTOCOL_MODE 1
43
#define HIDP_BLUETOOTH_VENDOR_ID 9
45
struct hidp_connadd_req {
46
int ctrl_sock; /* Connected control socket */
47
int intr_sock; /* Connected interrupt socket */
48
uint16_t parser; /* Parser version */
49
uint16_t rd_size; /* Report descriptor size */
50
uint8_t *rd_data; /* Report descriptor data */
58
char name[128]; /* Device name */
61
struct hidp_conndel_req {
66
struct hidp_conninfo {
76
struct hidp_connlist_req {
78
struct hidp_conninfo *ci;