Date: Mon, 15 Jun 2020 14:58:40 +0000 (UTC) From: Takanori Watanabe <takawata@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r362199 - head/sys/netgraph/bluetooth/include Message-ID: <202006151458.05FEweZa010759@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: takawata Date: Mon Jun 15 14:58:40 2020 New Revision: 362199 URL: https://svnweb.freebsd.org/changeset/base/362199 Log: Update event masks constant to Bluetooth core spec V5.2 and add LE Events. PR: 247257 Submitted by: Marc Veldman Modified: head/sys/netgraph/bluetooth/include/ng_hci.h Modified: head/sys/netgraph/bluetooth/include/ng_hci.h ============================================================================== --- head/sys/netgraph/bluetooth/include/ng_hci.h Mon Jun 15 13:46:40 2020 (r362198) +++ head/sys/netgraph/bluetooth/include/ng_hci.h Mon Jun 15 14:58:40 2020 (r362199) @@ -225,7 +225,8 @@ /* 0x0010 - 0x8000 - reserved for future use */ /* Event masks */ -#define NG_HCI_EVMSK_ALL 0x00000000ffffffff +#define NG_HCI_EVMSK_DEFAULT 0x00001fffffffffff +#define NG_HCI_EVMSK_ALL 0x1fffffffffffffff #define NG_HCI_EVMSK_NONE 0x0000000000000000 #define NG_HCI_EVMSK_INQUIRY_COMPL 0x0000000000000001 #define NG_HCI_EVMSK_INQUIRY_RESULT 0x0000000000000002 @@ -259,7 +260,70 @@ #define NG_HCI_EVMSK_QOS_VIOLATION 0x0000000020000000 #define NG_HCI_EVMSK_PAGE_SCAN_MODE_CHANGE 0x0000000040000000 #define NG_HCI_EVMSK_PAGE_SCAN_REP_MODE_CHANGE 0x0000000080000000 -/* 0x0000000100000000 - 0x8000000000000000 - reserved for future use */ +#define NG_HCI_EVMSK_FLOW_SPEC_COMPL 0x0000000100000000 +#define NG_HCI_EVMSK_INQUIRY_RESULT_W_RSSI 0x0000000200000000 +#define NG_HCI_EVMSK_READ_REM_EXT_FEAT_COMPL 0x0000000400000000 + +/* 0x0000000800000000 - 0x0000080000000000 - not in use */ + +#define NG_HCI_EVMSK_SYNC_CONN_COMPL 0x0000100000000000 +#define NG_HCI_EVMSK_SYNC_CONN_CHANGED 0x0000200000000000 +#define NG_HCI_EVMSK_SNIFF_SUBRATING 0x0000400000000000 +#define NG_HCI_EVMSK_EXT_INQUIRY_RESULT 0x0000800000000000 +#define NG_HCI_EVMSK_ENC_KEY_REFRESH_COMPL 0x0001000000000000 +#define NG_HCI_EVMSK_IO_CAPABILITY_REQ 0x0002000000000000 +#define NG_HCI_EVMSK_IO_CAPABILITY_RESP 0x0004000000000000 +#define NG_HCI_EVMSK_USER_CONFIRMATION_REQ 0x0008000000000000 +#define NG_HCI_EVMSK_USER_PASSKEY_REQ 0x0010000000000000 +#define NG_HCI_EVMSK_REM_OOB_DATA_REQ 0x0020000000000000 +#define NG_HCI_EVMSK_SIMPLE_PAIRING_COMPL 0x0040000000000000 +#define NG_HCI_EVMSK_LINK_SUPERV_TO_CHANGED 0x0080000000000000 +#define NG_HCI_EVMSK_ENH_FLUSH_COMPL 0x0100000000000000 +#define NG_HCI_EVMSK_USER_PASSKEY_NOTIFICATION 0x0200000000000000 +#define NG_HCI_EVMSK_KEYPRESS_NOTIFICATION 0x0400000000000000 +#define NG_HCI_EVMSK_REM_HOST_SUPP_FEAT_NOTIFI 0x0800000000000000 +#define NG_HCI_EVMSK_LE_META 0x1000000000000000 +/* 0x1000000100000000 - 0x8000000000000000 - reserved for future use */ + +/* LE events masks*/ +#define NG_HCI_LEEVMSK_ALL 0x000000003fffffff +#define NG_HCI_LEEVMSK_NONE 0x0000000000000000 +#define NG_HCI_LEEVMSK_DEFAULT 0x000000000000001f +#define NG_HCI_LEEVMSK_CONN_COMPLETE 0x0000000000000001 +#define NG_HCI_LEEVMSK_ADV_REP 0x0000000000000002 +#define NG_HCI_LEEVMSK_CONN_UPDATE 0x0000000000000004 +#define NG_HCI_LEEVMSK_READ_REM_FEAT_REQ 0x0000000000000008 +#define NG_HCI_LEEVMSK_LONG_TERM_KEY_REQ 0x0000000000000010 +#define NG_HCI_LEEVMSK_REM_CONN_PARAM_REQ 0x0000000000000020 +#define NG_HCI_LEEVMSK_DATA_LENGTH_CHG 0x0000000000000040 +#define NG_HCI_LEEVMSK_RD_LOC_P256_PK_COMPL 0x0000000000000080 +#define NG_HCI_LEEVMSK_GEN_DHKEY_COMPL 0x0000000000000100 +#define NG_HCI_LEEVMSK_ENH_CONN_COMPL 0x0000000000000200 +#define NG_HCI_LEEVMSK_DIR_ADV_REP 0x0000000000000400 +#define NG_HCI_LEEVMSK_PHY_UPD_COMPL 0x0000000000000800 +#define NG_HCI_LEEVMSK_EXT_ADV_REP 0x0000000000001000 +#define NG_HCI_LEEVMSK_PER_ADV_SYNC_EST 0x0000000000002000 +#define NG_HCI_LEEVMSK_PER_ADV_REP 0x0000000000004000 +#define NG_HCI_LEEVMSK_PER_ADV_SYNC_LOST 0x0000000000008000 +#define NG_HCI_LEEVMSK_SCAN_TIMEOUT 0x0000000000010000 +#define NG_HCI_LEEVMSK_ADV_SET_TERM 0x0000000000020000 +#define NG_HCI_LEEVMSK_SCAN_REQ_RCVD 0x0000000000040000 +#define NG_HCI_LEEVMSK_CHAN_SEL_ALGO 0x0000000000080000 +#define NG_HCI_LEEVMSK_CONNLESS_IQ_REP 0x0000000000010000 +#define NG_HCI_LEEVMSK_CONN_IQ_REP 0x0000000000020000 +#define NG_HCI_LEEVMSK_CTE_REQ_FAILED 0x0000000000040000 +#define NG_HCI_LEEVMSK_PER_ADV_SYN_TRF_RCVD 0x0000000000080000 +#define NG_HCI_LEEVMSK_CIS_EST 0x0000000000100000 +#define NG_HCI_LEEVMSK_CIS_REQ 0x0000000000200000 +#define NG_HCI_LEEVMSK_CREATE_BIG_COMPL 0x0000000000400000 +#define NG_HCI_LEEVMSK_TERM_BIG_COMPL 0x0000000000800000 +#define NG_HCI_LEEVMSK_BIG_SYNC_EST 0x0000000001000000 +#define NG_HCI_LEEVMSK_BIG_SYNC_LOST 0x0000000002000000 +#define NG_HCI_LEEVMSK_REQ_PEER_SCA_COMPL 0x0000000004000000 +#define NG_HCI_LEEVMSK_PATH_LOSS_THRESHOLD 0x0000000008000000 +#define NG_HCI_LEEVMSK_TX_PWR_REP 0x0000000010000000 +#define NG_HCI_LEEVMSK_BIGINFO_ADV_REP 0x0000000020000000 +/* 0x0000000040000000 - 0x8000000000000000 - reserved for future use */ /* Filter types */ #define NG_HCI_FILTER_TYPE_NONE 0x00
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006151458.05FEweZa010759>