2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation;
11 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
12 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
14 IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
15 CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
16 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
21 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
22 SOFTWARE IS DISCLAIMED.
29 #define HCI_DATA_DIR 1
31 #define HCI_TIME_STAMP 3
34 #define HCI_CMSG_DIR 0x0001
35 #define HCI_CMSG_TSTAMP 0x0002
38 sa_family_t hci_family
;
39 unsigned short hci_dev
;
40 unsigned short hci_channel
;
42 #define HCI_DEV_NONE 0xffff
44 #define HCI_CHANNEL_RAW 0
45 #define HCI_CHANNEL_USER 1
46 #define HCI_CHANNEL_MONITOR 2
47 #define HCI_CHANNEL_CONTROL 3
50 unsigned long type_mask
;
51 unsigned long event_mask
[2];
61 #define HCI_FLT_TYPE_BITS 31
62 #define HCI_FLT_EVENT_BITS 63
63 #define HCI_FLT_OGF_BITS 63
64 #define HCI_FLT_OCF_BITS 127
67 #define HCIDEVUP _IOW('H', 201, int)
68 #define HCIDEVDOWN _IOW('H', 202, int)
69 #define HCIDEVRESET _IOW('H', 203, int)
70 #define HCIDEVRESTAT _IOW('H', 204, int)
72 #define HCIGETDEVLIST _IOR('H', 210, int)
73 #define HCIGETDEVINFO _IOR('H', 211, int)
74 #define HCIGETCONNLIST _IOR('H', 212, int)
75 #define HCIGETCONNINFO _IOR('H', 213, int)
76 #define HCIGETAUTHINFO _IOR('H', 215, int)
78 #define HCISETRAW _IOW('H', 220, int)
79 #define HCISETSCAN _IOW('H', 221, int)
80 #define HCISETAUTH _IOW('H', 222, int)
81 #define HCISETENCRYPT _IOW('H', 223, int)
82 #define HCISETPTYPE _IOW('H', 224, int)
83 #define HCISETLINKPOL _IOW('H', 225, int)
84 #define HCISETLINKMODE _IOW('H', 226, int)
85 #define HCISETACLMTU _IOW('H', 227, int)
86 #define HCISETSCOMTU _IOW('H', 228, int)
88 #define HCIBLOCKADDR _IOW('H', 230, int)
89 #define HCIUNBLOCKADDR _IOW('H', 231, int)
91 #define HCIINQUIRY _IOR('H', 240, int)
93 /* Ioctl requests structures */
94 struct hci_dev_stats
{
107 struct hci_dev_info
{
127 struct hci_dev_stats stat
;
130 struct hci_conn_info
{
144 struct hci_dev_list_req
{
146 struct hci_dev_req dev_req
[0]; /* hci_dev_req structures */
149 struct hci_conn_list_req
{
152 struct hci_conn_info conn_info
[0];
155 struct hci_conn_info_req
{
158 struct hci_conn_info conn_info
[0];
161 struct hci_auth_info_req
{
166 struct hci_inquiry_req
{
173 #define IREQ_CACHE_FLUSH 0x0001
175 #endif /* __HCI_SOCK_H */