18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci BlueZ - Bluetooth protocol stack for Linux 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci Copyright (C) 2011-2012 Intel Corporation 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci This program is free software; you can redistribute it and/or modify 78c2ecf20Sopenharmony_ci it under the terms of the GNU General Public License version 2 as 88c2ecf20Sopenharmony_ci published by the Free Software Foundation; 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 118c2ecf20Sopenharmony_ci OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 128c2ecf20Sopenharmony_ci FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. 138c2ecf20Sopenharmony_ci IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY 148c2ecf20Sopenharmony_ci CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES 158c2ecf20Sopenharmony_ci WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 168c2ecf20Sopenharmony_ci ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 178c2ecf20Sopenharmony_ci OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, 208c2ecf20Sopenharmony_ci COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS 218c2ecf20Sopenharmony_ci SOFTWARE IS DISCLAIMED. 228c2ecf20Sopenharmony_ci*/ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#ifndef __HCI_MON_H 258c2ecf20Sopenharmony_ci#define __HCI_MON_H 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistruct hci_mon_hdr { 288c2ecf20Sopenharmony_ci __le16 opcode; 298c2ecf20Sopenharmony_ci __le16 index; 308c2ecf20Sopenharmony_ci __le16 len; 318c2ecf20Sopenharmony_ci} __packed; 328c2ecf20Sopenharmony_ci#define HCI_MON_HDR_SIZE 6 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#define HCI_MON_NEW_INDEX 0 358c2ecf20Sopenharmony_ci#define HCI_MON_DEL_INDEX 1 368c2ecf20Sopenharmony_ci#define HCI_MON_COMMAND_PKT 2 378c2ecf20Sopenharmony_ci#define HCI_MON_EVENT_PKT 3 388c2ecf20Sopenharmony_ci#define HCI_MON_ACL_TX_PKT 4 398c2ecf20Sopenharmony_ci#define HCI_MON_ACL_RX_PKT 5 408c2ecf20Sopenharmony_ci#define HCI_MON_SCO_TX_PKT 6 418c2ecf20Sopenharmony_ci#define HCI_MON_SCO_RX_PKT 7 428c2ecf20Sopenharmony_ci#define HCI_MON_OPEN_INDEX 8 438c2ecf20Sopenharmony_ci#define HCI_MON_CLOSE_INDEX 9 448c2ecf20Sopenharmony_ci#define HCI_MON_INDEX_INFO 10 458c2ecf20Sopenharmony_ci#define HCI_MON_VENDOR_DIAG 11 468c2ecf20Sopenharmony_ci#define HCI_MON_SYSTEM_NOTE 12 478c2ecf20Sopenharmony_ci#define HCI_MON_USER_LOGGING 13 488c2ecf20Sopenharmony_ci#define HCI_MON_CTRL_OPEN 14 498c2ecf20Sopenharmony_ci#define HCI_MON_CTRL_CLOSE 15 508c2ecf20Sopenharmony_ci#define HCI_MON_CTRL_COMMAND 16 518c2ecf20Sopenharmony_ci#define HCI_MON_CTRL_EVENT 17 528c2ecf20Sopenharmony_ci#define HCI_MON_ISO_TX_PKT 18 538c2ecf20Sopenharmony_ci#define HCI_MON_ISO_RX_PKT 19 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_cistruct hci_mon_new_index { 568c2ecf20Sopenharmony_ci __u8 type; 578c2ecf20Sopenharmony_ci __u8 bus; 588c2ecf20Sopenharmony_ci bdaddr_t bdaddr; 598c2ecf20Sopenharmony_ci char name[8] __nonstring; 608c2ecf20Sopenharmony_ci} __packed; 618c2ecf20Sopenharmony_ci#define HCI_MON_NEW_INDEX_SIZE 16 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_cistruct hci_mon_index_info { 648c2ecf20Sopenharmony_ci bdaddr_t bdaddr; 658c2ecf20Sopenharmony_ci __le16 manufacturer; 668c2ecf20Sopenharmony_ci} __packed; 678c2ecf20Sopenharmony_ci#define HCI_MON_INDEX_INFO_SIZE 8 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci#endif /* __HCI_MON_H */ 70