@ -67,6 +67,11 @@
* subsequent CONNECT and CC messages .
* If one of the passed parameters is wrong none is set and - EINVAL is
* returned .
* @ NFC_CMD_ENABLE_SE : Enable the physical link to a specific secure element .
* Once enabled a secure element will handle card emulation mode , i . e .
* starting a poll from a device which has a secure element enabled means
* we want to do SE based card emulation .
* @ NFC_CMD_DISABLE_SE : Disable the physical link to a specific secure element .
*/
enum nfc_commands {
NFC_CMD_UNSPEC ,
@ -86,6 +91,8 @@ enum nfc_commands {
NFC_EVENT_TM_DEACTIVATED ,
NFC_CMD_LLC_GET_PARAMS ,
NFC_CMD_LLC_SET_PARAMS ,
NFC_CMD_ENABLE_SE ,
NFC_CMD_DISABLE_SE ,
/* private: internal use only */
__NFC_CMD_AFTER_LAST
} ;
@ -114,6 +121,7 @@ enum nfc_commands {
* @ NFC_ATTR_LLC_PARAM_LTO : Link TimeOut parameter
* @ NFC_ATTR_LLC_PARAM_RW : Receive Window size parameter
* @ NFC_ATTR_LLC_PARAM_MIUX : MIU eXtension parameter
* @ NFC_ATTR_SE : Available Secure Elements
*/
enum nfc_attrs {
NFC_ATTR_UNSPEC ,
@ -134,6 +142,7 @@ enum nfc_attrs {
NFC_ATTR_LLC_PARAM_LTO ,
NFC_ATTR_LLC_PARAM_RW ,
NFC_ATTR_LLC_PARAM_MIUX ,
NFC_ATTR_SE ,
/* private: internal use only */
__NFC_ATTR_AFTER_LAST
} ;
@ -172,6 +181,11 @@ enum nfc_attrs {
# define NFC_PROTO_NFC_DEP_MASK (1 << NFC_PROTO_NFC_DEP)
# define NFC_PROTO_ISO14443_B_MASK (1 << NFC_PROTO_ISO14443_B)
/* NFC Secure Elements */
# define NFC_SE_NONE 0x0
# define NFC_SE_UICC 0x1
# define NFC_SE_EMBEDDED 0x2
struct sockaddr_nfc {
sa_family_t sa_family ;
__u32 dev_idx ;