16a2968aaSIlan Elias /* 26a2968aaSIlan Elias * The NFC Controller Interface is the communication protocol between an 36a2968aaSIlan Elias * NFC Controller (NFCC) and a Device Host (DH). 46a2968aaSIlan Elias * 56a2968aaSIlan Elias * Copyright (C) 2011 Texas Instruments, Inc. 66a2968aaSIlan Elias * 76a2968aaSIlan Elias * Written by Ilan Elias <ilane@ti.com> 86a2968aaSIlan Elias * 96a2968aaSIlan Elias * Acknowledgements: 106a2968aaSIlan Elias * This file is based on hci.h, which was written 116a2968aaSIlan Elias * by Maxim Krasnyansky. 126a2968aaSIlan Elias * 136a2968aaSIlan Elias * This program is free software; you can redistribute it and/or modify 146a2968aaSIlan Elias * it under the terms of the GNU General Public License version 2 156a2968aaSIlan Elias * as published by the Free Software Foundation 166a2968aaSIlan Elias * 176a2968aaSIlan Elias * This program is distributed in the hope that it will be useful, 186a2968aaSIlan Elias * but WITHOUT ANY WARRANTY; without even the implied warranty of 196a2968aaSIlan Elias * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 206a2968aaSIlan Elias * GNU General Public License for more details. 216a2968aaSIlan Elias * 226a2968aaSIlan Elias * You should have received a copy of the GNU General Public License 236a2968aaSIlan Elias * along with this program; if not, write to the Free Software 246a2968aaSIlan Elias * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 256a2968aaSIlan Elias * 266a2968aaSIlan Elias */ 276a2968aaSIlan Elias 286a2968aaSIlan Elias #ifndef __NCI_H 296a2968aaSIlan Elias #define __NCI_H 306a2968aaSIlan Elias 316a2968aaSIlan Elias /* NCI constants */ 326a2968aaSIlan Elias #define NCI_MAX_NUM_MAPPING_CONFIGS 10 336a2968aaSIlan Elias #define NCI_MAX_NUM_RF_CONFIGS 10 346a2968aaSIlan Elias #define NCI_MAX_NUM_CONN 10 356a2968aaSIlan Elias 366a2968aaSIlan Elias /* NCI Status Codes */ 376a2968aaSIlan Elias #define NCI_STATUS_OK 0x00 386a2968aaSIlan Elias #define NCI_STATUS_REJECTED 0x01 39e8c0dacdSIlan Elias #define NCI_STATUS_RF_FRAME_CORRUPTED 0x02 40e8c0dacdSIlan Elias #define NCI_STATUS_FAILED 0x03 41e8c0dacdSIlan Elias #define NCI_STATUS_NOT_INITIALIZED 0x04 42e8c0dacdSIlan Elias #define NCI_STATUS_SYNTAX_ERROR 0x05 43e8c0dacdSIlan Elias #define NCI_STATUS_SEMANTIC_ERROR 0x06 44e8c0dacdSIlan Elias #define NCI_STATUS_UNKNOWN_GID 0x07 45e8c0dacdSIlan Elias #define NCI_STATUS_UNKNOWN_OID 0x08 46e8c0dacdSIlan Elias #define NCI_STATUS_INVALID_PARAM 0x09 47e8c0dacdSIlan Elias #define NCI_STATUS_MESSAGE_SIZE_EXCEEDED 0x0a 486a2968aaSIlan Elias /* Discovery Specific Status Codes */ 496a2968aaSIlan Elias #define NCI_STATUS_DISCOVERY_ALREADY_STARTED 0xa0 506a2968aaSIlan Elias #define NCI_STATUS_DISCOVERY_TARGET_ACTIVATION_FAILED 0xa1 51e8c0dacdSIlan Elias #define NCI_STATUS_DISCOVERY_TEAR_DOWN 0xa2 526a2968aaSIlan Elias /* RF Interface Specific Status Codes */ 536a2968aaSIlan Elias #define NCI_STATUS_RF_TRANSMISSION_ERROR 0xb0 546a2968aaSIlan Elias #define NCI_STATUS_RF_PROTOCOL_ERROR 0xb1 556a2968aaSIlan Elias #define NCI_STATUS_RF_TIMEOUT_ERROR 0xb2 566a2968aaSIlan Elias /* NFCEE Interface Specific Status Codes */ 576a2968aaSIlan Elias #define NCI_STATUS_MAX_ACTIVE_NFCEE_INTERFACES_REACHED 0xc0 586a2968aaSIlan Elias #define NCI_STATUS_NFCEE_INTERFACE_ACTIVATION_FAILED 0xc1 596a2968aaSIlan Elias #define NCI_STATUS_NFCEE_TRANSMISSION_ERROR 0xc2 606a2968aaSIlan Elias #define NCI_STATUS_NFCEE_PROTOCOL_ERROR 0xc3 616a2968aaSIlan Elias #define NCI_STATUS_NFCEE_TIMEOUT_ERROR 0xc4 626a2968aaSIlan Elias 636a2968aaSIlan Elias /* NCI RF Technology and Mode */ 646a2968aaSIlan Elias #define NCI_NFC_A_PASSIVE_POLL_MODE 0x00 656a2968aaSIlan Elias #define NCI_NFC_B_PASSIVE_POLL_MODE 0x01 666a2968aaSIlan Elias #define NCI_NFC_F_PASSIVE_POLL_MODE 0x02 676a2968aaSIlan Elias #define NCI_NFC_A_ACTIVE_POLL_MODE 0x03 686a2968aaSIlan Elias #define NCI_NFC_F_ACTIVE_POLL_MODE 0x05 696a2968aaSIlan Elias #define NCI_NFC_A_PASSIVE_LISTEN_MODE 0x80 706a2968aaSIlan Elias #define NCI_NFC_B_PASSIVE_LISTEN_MODE 0x81 716a2968aaSIlan Elias #define NCI_NFC_F_PASSIVE_LISTEN_MODE 0x82 726a2968aaSIlan Elias #define NCI_NFC_A_ACTIVE_LISTEN_MODE 0x83 736a2968aaSIlan Elias #define NCI_NFC_F_ACTIVE_LISTEN_MODE 0x85 746a2968aaSIlan Elias 75e8c0dacdSIlan Elias /* NCI RF Technologies */ 76e8c0dacdSIlan Elias #define NCI_NFC_RF_TECHNOLOGY_A 0x00 77e8c0dacdSIlan Elias #define NCI_NFC_RF_TECHNOLOGY_B 0x01 78e8c0dacdSIlan Elias #define NCI_NFC_RF_TECHNOLOGY_F 0x02 79e8c0dacdSIlan Elias #define NCI_NFC_RF_TECHNOLOGY_15693 0x03 80e8c0dacdSIlan Elias 81e8c0dacdSIlan Elias /* NCI Bit Rates */ 82e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_106 0x00 83e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_212 0x01 84e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_424 0x02 85e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_848 0x03 86e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_1696 0x04 87e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_3392 0x05 88e8c0dacdSIlan Elias #define NCI_NFC_BIT_RATE_6784 0x06 89e8c0dacdSIlan Elias 906a2968aaSIlan Elias /* NCI RF Protocols */ 916a2968aaSIlan Elias #define NCI_RF_PROTOCOL_UNKNOWN 0x00 926a2968aaSIlan Elias #define NCI_RF_PROTOCOL_T1T 0x01 936a2968aaSIlan Elias #define NCI_RF_PROTOCOL_T2T 0x02 946a2968aaSIlan Elias #define NCI_RF_PROTOCOL_T3T 0x03 956a2968aaSIlan Elias #define NCI_RF_PROTOCOL_ISO_DEP 0x04 966a2968aaSIlan Elias #define NCI_RF_PROTOCOL_NFC_DEP 0x05 976a2968aaSIlan Elias 986a2968aaSIlan Elias /* NCI RF Interfaces */ 99e8c0dacdSIlan Elias #define NCI_RF_INTERFACE_NFCEE_DIRECT 0x00 1006a2968aaSIlan Elias #define NCI_RF_INTERFACE_FRAME 0x01 1016a2968aaSIlan Elias #define NCI_RF_INTERFACE_ISO_DEP 0x02 1026a2968aaSIlan Elias #define NCI_RF_INTERFACE_NFC_DEP 0x03 1036a2968aaSIlan Elias 104e8c0dacdSIlan Elias /* NCI Reset types */ 105e8c0dacdSIlan Elias #define NCI_RESET_TYPE_KEEP_CONFIG 0x00 106e8c0dacdSIlan Elias #define NCI_RESET_TYPE_RESET_CONFIG 0x01 107e8c0dacdSIlan Elias 108e8c0dacdSIlan Elias /* NCI Static RF connection ID */ 109e8c0dacdSIlan Elias #define NCI_STATIC_RF_CONN_ID 0x00 110e8c0dacdSIlan Elias 111*db98c829SIlan Elias /* NCI Data Flow Control */ 112*db98c829SIlan Elias #define NCI_DATA_FLOW_CONTROL_NOT_USED 0xff 113*db98c829SIlan Elias 1146a2968aaSIlan Elias /* NCI RF_DISCOVER_MAP_CMD modes */ 1156a2968aaSIlan Elias #define NCI_DISC_MAP_MODE_POLL 0x01 1166a2968aaSIlan Elias #define NCI_DISC_MAP_MODE_LISTEN 0x02 1176a2968aaSIlan Elias #define NCI_DISC_MAP_MODE_BOTH 0x03 1186a2968aaSIlan Elias 1196a2968aaSIlan Elias /* NCI Discovery Types */ 1206a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_POLL_A_PASSIVE 0x00 1216a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_POLL_B_PASSIVE 0x01 1226a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_POLL_F_PASSIVE 0x02 1236a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_POLL_A_ACTIVE 0x03 1246a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_POLL_F_ACTIVE 0x05 1256a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_WAKEUP_A_ACTIVE 0x09 1266a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_LISTEN_A_PASSIVE 0x80 1276a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_LISTEN_B_PASSIVE 0x81 1286a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_LISTEN_F_PASSIVE 0x82 1296a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_LISTEN_A_ACTIVE 0x83 1306a2968aaSIlan Elias #define NCI_DISCOVERY_TYPE_LISTEN_F_ACTIVE 0x85 1316a2968aaSIlan Elias 1326a2968aaSIlan Elias /* NCI Deactivation Type */ 1336a2968aaSIlan Elias #define NCI_DEACTIVATE_TYPE_IDLE_MODE 0x00 1346a2968aaSIlan Elias #define NCI_DEACTIVATE_TYPE_SLEEP_MODE 0x01 1356a2968aaSIlan Elias #define NCI_DEACTIVATE_TYPE_SLEEP_AF_MODE 0x02 136e8c0dacdSIlan Elias #define NCI_DEACTIVATE_TYPE_DISCOVERY 0x03 1376a2968aaSIlan Elias 1386a2968aaSIlan Elias /* Message Type (MT) */ 1396a2968aaSIlan Elias #define NCI_MT_DATA_PKT 0x00 1406a2968aaSIlan Elias #define NCI_MT_CMD_PKT 0x01 1416a2968aaSIlan Elias #define NCI_MT_RSP_PKT 0x02 1426a2968aaSIlan Elias #define NCI_MT_NTF_PKT 0x03 1436a2968aaSIlan Elias 1446a2968aaSIlan Elias #define nci_mt(hdr) (((hdr)[0]>>5)&0x07) 1456a2968aaSIlan Elias #define nci_mt_set(hdr, mt) ((hdr)[0] |= (__u8)(((mt)&0x07)<<5)) 1466a2968aaSIlan Elias 1476a2968aaSIlan Elias /* Packet Boundary Flag (PBF) */ 1486a2968aaSIlan Elias #define NCI_PBF_LAST 0x00 1496a2968aaSIlan Elias #define NCI_PBF_CONT 0x01 1506a2968aaSIlan Elias 1516a2968aaSIlan Elias #define nci_pbf(hdr) (__u8)(((hdr)[0]>>4)&0x01) 1526a2968aaSIlan Elias #define nci_pbf_set(hdr, pbf) ((hdr)[0] |= (__u8)(((pbf)&0x01)<<4)) 1536a2968aaSIlan Elias 1546a2968aaSIlan Elias /* Control Opcode manipulation */ 1556a2968aaSIlan Elias #define nci_opcode_pack(gid, oid) (__u16)((((__u16)((gid)&0x0f))<<8)|\ 1566a2968aaSIlan Elias ((__u16)((oid)&0x3f))) 1576a2968aaSIlan Elias #define nci_opcode(hdr) nci_opcode_pack(hdr[0], hdr[1]) 1586a2968aaSIlan Elias #define nci_opcode_gid(op) (__u8)(((op)&0x0f00)>>8) 1596a2968aaSIlan Elias #define nci_opcode_oid(op) (__u8)((op)&0x003f) 1606a2968aaSIlan Elias 1616a2968aaSIlan Elias /* Payload Length */ 1626a2968aaSIlan Elias #define nci_plen(hdr) (__u8)((hdr)[2]) 1636a2968aaSIlan Elias 1646a2968aaSIlan Elias /* Connection ID */ 1656a2968aaSIlan Elias #define nci_conn_id(hdr) (__u8)(((hdr)[0])&0x0f) 1666a2968aaSIlan Elias 1676a2968aaSIlan Elias /* GID values */ 1686a2968aaSIlan Elias #define NCI_GID_CORE 0x0 1696a2968aaSIlan Elias #define NCI_GID_RF_MGMT 0x1 1706a2968aaSIlan Elias #define NCI_GID_NFCEE_MGMT 0x2 1716a2968aaSIlan Elias #define NCI_GID_PROPRIETARY 0xf 1726a2968aaSIlan Elias 1736a2968aaSIlan Elias /* ---- NCI Packet structures ---- */ 1746a2968aaSIlan Elias #define NCI_CTRL_HDR_SIZE 3 1756a2968aaSIlan Elias #define NCI_DATA_HDR_SIZE 3 1766a2968aaSIlan Elias 1776a2968aaSIlan Elias struct nci_ctrl_hdr { 1786a2968aaSIlan Elias __u8 gid; /* MT & PBF & GID */ 1796a2968aaSIlan Elias __u8 oid; 1806a2968aaSIlan Elias __u8 plen; 1816a2968aaSIlan Elias } __packed; 1826a2968aaSIlan Elias 1836a2968aaSIlan Elias struct nci_data_hdr { 1846a2968aaSIlan Elias __u8 conn_id; /* MT & PBF & ConnID */ 1856a2968aaSIlan Elias __u8 rfu; 1866a2968aaSIlan Elias __u8 plen; 1876a2968aaSIlan Elias } __packed; 1886a2968aaSIlan Elias 1896a2968aaSIlan Elias /* ------------------------ */ 1906a2968aaSIlan Elias /* ----- NCI Commands ---- */ 1916a2968aaSIlan Elias /* ------------------------ */ 1926a2968aaSIlan Elias #define NCI_OP_CORE_RESET_CMD nci_opcode_pack(NCI_GID_CORE, 0x00) 193e8c0dacdSIlan Elias struct nci_core_reset_cmd { 194e8c0dacdSIlan Elias __u8 reset_type; 195e8c0dacdSIlan Elias } __packed; 1966a2968aaSIlan Elias 1976a2968aaSIlan Elias #define NCI_OP_CORE_INIT_CMD nci_opcode_pack(NCI_GID_CORE, 0x01) 1986a2968aaSIlan Elias 1996a2968aaSIlan Elias #define NCI_OP_RF_DISCOVER_MAP_CMD nci_opcode_pack(NCI_GID_RF_MGMT, 0x00) 2006a2968aaSIlan Elias struct disc_map_config { 2016a2968aaSIlan Elias __u8 rf_protocol; 2026a2968aaSIlan Elias __u8 mode; 2036a2968aaSIlan Elias __u8 rf_interface_type; 2046a2968aaSIlan Elias } __packed; 2056a2968aaSIlan Elias 2066a2968aaSIlan Elias struct nci_rf_disc_map_cmd { 2076a2968aaSIlan Elias __u8 num_mapping_configs; 2086a2968aaSIlan Elias struct disc_map_config mapping_configs 2096a2968aaSIlan Elias [NCI_MAX_NUM_MAPPING_CONFIGS]; 2106a2968aaSIlan Elias } __packed; 2116a2968aaSIlan Elias 2126a2968aaSIlan Elias #define NCI_OP_RF_DISCOVER_CMD nci_opcode_pack(NCI_GID_RF_MGMT, 0x03) 2136a2968aaSIlan Elias struct disc_config { 2146a2968aaSIlan Elias __u8 type; 2156a2968aaSIlan Elias __u8 frequency; 2166a2968aaSIlan Elias } __packed; 2176a2968aaSIlan Elias 2186a2968aaSIlan Elias struct nci_rf_disc_cmd { 2196a2968aaSIlan Elias __u8 num_disc_configs; 2206a2968aaSIlan Elias struct disc_config disc_configs[NCI_MAX_NUM_RF_CONFIGS]; 2216a2968aaSIlan Elias } __packed; 2226a2968aaSIlan Elias 2236a2968aaSIlan Elias #define NCI_OP_RF_DEACTIVATE_CMD nci_opcode_pack(NCI_GID_RF_MGMT, 0x06) 2246a2968aaSIlan Elias struct nci_rf_deactivate_cmd { 2256a2968aaSIlan Elias __u8 type; 2266a2968aaSIlan Elias } __packed; 2276a2968aaSIlan Elias 2286a2968aaSIlan Elias /* ----------------------- */ 2296a2968aaSIlan Elias /* ---- NCI Responses ---- */ 2306a2968aaSIlan Elias /* ----------------------- */ 2316a2968aaSIlan Elias #define NCI_OP_CORE_RESET_RSP nci_opcode_pack(NCI_GID_CORE, 0x00) 2326a2968aaSIlan Elias struct nci_core_reset_rsp { 2336a2968aaSIlan Elias __u8 status; 2346a2968aaSIlan Elias __u8 nci_ver; 235e8c0dacdSIlan Elias __u8 config_status; 2366a2968aaSIlan Elias } __packed; 2376a2968aaSIlan Elias 2386a2968aaSIlan Elias #define NCI_OP_CORE_INIT_RSP nci_opcode_pack(NCI_GID_CORE, 0x01) 2396a2968aaSIlan Elias struct nci_core_init_rsp_1 { 2406a2968aaSIlan Elias __u8 status; 2416a2968aaSIlan Elias __le32 nfcc_features; 2426a2968aaSIlan Elias __u8 num_supported_rf_interfaces; 2436a2968aaSIlan Elias __u8 supported_rf_interfaces[0]; /* variable size array */ 2446a2968aaSIlan Elias /* continuted in nci_core_init_rsp_2 */ 2456a2968aaSIlan Elias } __packed; 2466a2968aaSIlan Elias 2476a2968aaSIlan Elias struct nci_core_init_rsp_2 { 2486a2968aaSIlan Elias __u8 max_logical_connections; 2496a2968aaSIlan Elias __le16 max_routing_table_size; 250e8c0dacdSIlan Elias __u8 max_ctrl_pkt_payload_len; 251e8c0dacdSIlan Elias __le16 max_size_for_large_params; 252e8c0dacdSIlan Elias __u8 max_data_pkt_payload_size; 253e8c0dacdSIlan Elias __u8 initial_num_credits; 254e8c0dacdSIlan Elias __u8 manufact_id; 255e8c0dacdSIlan Elias __le32 manufact_specific_info; 2566a2968aaSIlan Elias } __packed; 2576a2968aaSIlan Elias 2586a2968aaSIlan Elias #define NCI_OP_RF_DISCOVER_MAP_RSP nci_opcode_pack(NCI_GID_RF_MGMT, 0x00) 2596a2968aaSIlan Elias 2606a2968aaSIlan Elias #define NCI_OP_RF_DISCOVER_RSP nci_opcode_pack(NCI_GID_RF_MGMT, 0x03) 2616a2968aaSIlan Elias 2626a2968aaSIlan Elias #define NCI_OP_RF_DEACTIVATE_RSP nci_opcode_pack(NCI_GID_RF_MGMT, 0x06) 2636a2968aaSIlan Elias 2646a2968aaSIlan Elias /* --------------------------- */ 2656a2968aaSIlan Elias /* ---- NCI Notifications ---- */ 2666a2968aaSIlan Elias /* --------------------------- */ 2676a2968aaSIlan Elias #define NCI_OP_CORE_CONN_CREDITS_NTF nci_opcode_pack(NCI_GID_CORE, 0x07) 2686a2968aaSIlan Elias struct conn_credit_entry { 2696a2968aaSIlan Elias __u8 conn_id; 2706a2968aaSIlan Elias __u8 credits; 2716a2968aaSIlan Elias } __packed; 2726a2968aaSIlan Elias 2736a2968aaSIlan Elias struct nci_core_conn_credit_ntf { 2746a2968aaSIlan Elias __u8 num_entries; 2756a2968aaSIlan Elias struct conn_credit_entry conn_entries[NCI_MAX_NUM_CONN]; 2766a2968aaSIlan Elias } __packed; 2776a2968aaSIlan Elias 278e8c0dacdSIlan Elias #define NCI_OP_RF_INTF_ACTIVATED_NTF nci_opcode_pack(NCI_GID_RF_MGMT, 0x05) 2796a2968aaSIlan Elias struct rf_tech_specific_params_nfca_poll { 2806a2968aaSIlan Elias __u16 sens_res; 2816a2968aaSIlan Elias __u8 nfcid1_len; /* 0, 4, 7, or 10 Bytes */ 2826a2968aaSIlan Elias __u8 nfcid1[10]; 2836a2968aaSIlan Elias __u8 sel_res_len; /* 0 or 1 Bytes */ 2846a2968aaSIlan Elias __u8 sel_res; 2856a2968aaSIlan Elias } __packed; 2866a2968aaSIlan Elias 2876a2968aaSIlan Elias struct activation_params_nfca_poll_iso_dep { 2886a2968aaSIlan Elias __u8 rats_res_len; 2896a2968aaSIlan Elias __u8 rats_res[20]; 2906a2968aaSIlan Elias }; 2916a2968aaSIlan Elias 292e8c0dacdSIlan Elias struct nci_rf_intf_activated_ntf { 293e8c0dacdSIlan Elias __u8 rf_discovery_id; 294e8c0dacdSIlan Elias __u8 rf_interface_type; 2956a2968aaSIlan Elias __u8 rf_protocol; 296e8c0dacdSIlan Elias __u8 activation_rf_tech_and_mode; 2976a2968aaSIlan Elias __u8 rf_tech_specific_params_len; 2986a2968aaSIlan Elias 2996a2968aaSIlan Elias union { 3006a2968aaSIlan Elias struct rf_tech_specific_params_nfca_poll nfca_poll; 3016a2968aaSIlan Elias } rf_tech_specific_params; 3026a2968aaSIlan Elias 303e8c0dacdSIlan Elias __u8 data_exch_rf_tech_and_mode; 304e8c0dacdSIlan Elias __u8 data_exch_tx_bit_rate; 305e8c0dacdSIlan Elias __u8 data_exch_rx_bit_rate; 3066a2968aaSIlan Elias __u8 activation_params_len; 3076a2968aaSIlan Elias 3086a2968aaSIlan Elias union { 3096a2968aaSIlan Elias struct activation_params_nfca_poll_iso_dep nfca_poll_iso_dep; 3106a2968aaSIlan Elias } activation_params; 3116a2968aaSIlan Elias 3126a2968aaSIlan Elias } __packed; 3136a2968aaSIlan Elias 3146a2968aaSIlan Elias #define NCI_OP_RF_DEACTIVATE_NTF nci_opcode_pack(NCI_GID_RF_MGMT, 0x06) 315e8c0dacdSIlan Elias struct nci_rf_deactivate_ntf { 316e8c0dacdSIlan Elias __u8 type; 317e8c0dacdSIlan Elias __u8 reason; 318e8c0dacdSIlan Elias } __packed; 3196a2968aaSIlan Elias 3206a2968aaSIlan Elias #endif /* __NCI_H */ 321