hci.h (bcada3d4b8c96b8792c2306f363992ca5ab9da42) | hci.h (cdcba7c6508502cddb07c84a4d14d8f624e8f168) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 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 --- 48 unchanged lines hidden (view full) --- 57 58/* HCI controller types */ 59#define HCI_BREDR 0x00 60#define HCI_AMP 0x01 61 62/* First BR/EDR Controller shall have ID = 0 */ 63#define HCI_BREDR_ID 0 64 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 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 --- 48 unchanged lines hidden (view full) --- 57 58/* HCI controller types */ 59#define HCI_BREDR 0x00 60#define HCI_AMP 0x01 61 62/* First BR/EDR Controller shall have ID = 0 */ 63#define HCI_BREDR_ID 0 64 |
65/* AMP controller status */ 66#define AMP_CTRL_POWERED_DOWN 0x00 67#define AMP_CTRL_BLUETOOTH_ONLY 0x01 68#define AMP_CTRL_NO_CAPACITY 0x02 69#define AMP_CTRL_LOW_CAPACITY 0x03 70#define AMP_CTRL_MEDIUM_CAPACITY 0x04 71#define AMP_CTRL_HIGH_CAPACITY 0x05 72#define AMP_CTRL_FULL_CAPACITY 0x06 73 |
|
65/* HCI device quirks */ 66enum { 67 HCI_QUIRK_RESET_ON_CLOSE, 68 HCI_QUIRK_RAW_DEVICE, 69 HCI_QUIRK_FIXUP_BUFFER_SIZE 70}; 71 72/* HCI device flags */ --- 215 unchanged lines hidden (view full) --- 288/* The spec doesn't define types for SMP keys, the _MASTER suffix is implied */ 289#define HCI_SMP_STK 0x80 290#define HCI_SMP_STK_SLAVE 0x81 291#define HCI_SMP_LTK 0x82 292#define HCI_SMP_LTK_SLAVE 0x83 293 294/* ---- HCI Error Codes ---- */ 295#define HCI_ERROR_AUTH_FAILURE 0x05 | 74/* HCI device quirks */ 75enum { 76 HCI_QUIRK_RESET_ON_CLOSE, 77 HCI_QUIRK_RAW_DEVICE, 78 HCI_QUIRK_FIXUP_BUFFER_SIZE 79}; 80 81/* HCI device flags */ --- 215 unchanged lines hidden (view full) --- 297/* The spec doesn't define types for SMP keys, the _MASTER suffix is implied */ 298#define HCI_SMP_STK 0x80 299#define HCI_SMP_STK_SLAVE 0x81 300#define HCI_SMP_LTK 0x82 301#define HCI_SMP_LTK_SLAVE 0x83 302 303/* ---- HCI Error Codes ---- */ 304#define HCI_ERROR_AUTH_FAILURE 0x05 |
305#define HCI_ERROR_CONNECTION_TIMEOUT 0x08 |
|
296#define HCI_ERROR_REJ_BAD_ADDR 0x0f 297#define HCI_ERROR_REMOTE_USER_TERM 0x13 | 306#define HCI_ERROR_REJ_BAD_ADDR 0x0f 307#define HCI_ERROR_REMOTE_USER_TERM 0x13 |
308#define HCI_ERROR_REMOTE_LOW_RESOURCES 0x14 309#define HCI_ERROR_REMOTE_POWER_OFF 0x15 |
|
298#define HCI_ERROR_LOCAL_HOST_TERM 0x16 299#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18 300 301/* Flow control modes */ 302#define HCI_FLOW_CTL_MODE_PACKET_BASED 0x00 303#define HCI_FLOW_CTL_MODE_BLOCK_BASED 0x01 304 305/* Extended Inquiry Response field types */ --- 984 unchanged lines hidden (view full) --- 1290 1291struct hci_ev_num_comp_blocks { 1292 __le16 num_blocks; 1293 __u8 num_hndl; 1294 struct hci_comp_blocks_info handles[0]; 1295} __packed; 1296 1297/* Low energy meta events */ | 310#define HCI_ERROR_LOCAL_HOST_TERM 0x16 311#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18 312 313/* Flow control modes */ 314#define HCI_FLOW_CTL_MODE_PACKET_BASED 0x00 315#define HCI_FLOW_CTL_MODE_BLOCK_BASED 0x01 316 317/* Extended Inquiry Response field types */ --- 984 unchanged lines hidden (view full) --- 1302 1303struct hci_ev_num_comp_blocks { 1304 __le16 num_blocks; 1305 __u8 num_hndl; 1306 struct hci_comp_blocks_info handles[0]; 1307} __packed; 1308 1309/* Low energy meta events */ |
1310#define LE_CONN_ROLE_MASTER 0x00 1311 |
|
1298#define HCI_EV_LE_CONN_COMPLETE 0x01 1299struct hci_ev_le_conn_complete { 1300 __u8 status; 1301 __le16 handle; 1302 __u8 role; 1303 __u8 bdaddr_type; 1304 bdaddr_t bdaddr; 1305 __le16 interval; --- 227 unchanged lines hidden --- | 1312#define HCI_EV_LE_CONN_COMPLETE 0x01 1313struct hci_ev_le_conn_complete { 1314 __u8 status; 1315 __le16 handle; 1316 __u8 role; 1317 __u8 bdaddr_type; 1318 bdaddr_t bdaddr; 1319 __le16 interval; --- 227 unchanged lines hidden --- |