diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-25 10:22:08 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-08-13 18:35:17 -0400 |
commit | 91a32269e31282405db405b9ec9ce1a30568e4b0 (patch) | |
tree | 4038d4bc16fde89b740a622edd90e796f8937040 | |
parent | 1972b5b3a66f1b6a9df04cc91faf401354919262 (diff) |
NFC: Define secure element connectivity and transaction events
The SE_CONNECTIVITY event is for an SE to request connection to e.g. a
modem. The SE_TRANSACTION one is sent when an application running on a
specific SE wants to notify the host CPU about the end of a transaction.
Those events respectively map to the EVT_CONNECTIVITY and the
EVT_TRANSACTION HCI events.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/uapi/linux/nfc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index 40ada984cb78..539d60494c04 100644 --- a/include/uapi/linux/nfc.h +++ b/include/uapi/linux/nfc.h | |||
@@ -76,6 +76,14 @@ | |||
76 | * an embedded SE or an UICC one connected to it through SWP. | 76 | * an embedded SE or an UICC one connected to it through SWP. |
77 | * @NFC_EVENT_SE_REMOVED: Event emitted when a secure element is removed from | 77 | * @NFC_EVENT_SE_REMOVED: Event emitted when a secure element is removed from |
78 | * the system, as a consequence of e.g. an NFC controller being unplugged. | 78 | * the system, as a consequence of e.g. an NFC controller being unplugged. |
79 | * @NFC_EVENT_SE_CONNECTIVITY: This event is emitted whenever a secure element | ||
80 | * is requesting connectivity access. For example a UICC SE may need to | ||
81 | * talk with a sleeping modem and will notify this need by sending this | ||
82 | * event. It is then up to userspace to decide if it will wake the modem | ||
83 | * up or not. | ||
84 | * @NFC_EVENT_SE_TRANSACTION: This event is sent when an application running on | ||
85 | * a specific SE notifies us about the end of a transaction. The parameter | ||
86 | * for this event is the application ID (AID). | ||
79 | */ | 87 | */ |
80 | enum nfc_commands { | 88 | enum nfc_commands { |
81 | NFC_CMD_UNSPEC, | 89 | NFC_CMD_UNSPEC, |
@@ -102,6 +110,8 @@ enum nfc_commands { | |||
102 | NFC_CMD_FW_DOWNLOAD, | 110 | NFC_CMD_FW_DOWNLOAD, |
103 | NFC_EVENT_SE_ADDED, | 111 | NFC_EVENT_SE_ADDED, |
104 | NFC_EVENT_SE_REMOVED, | 112 | NFC_EVENT_SE_REMOVED, |
113 | NFC_EVENT_SE_CONNECTIVITY, | ||
114 | NFC_EVENT_SE_TRANSACTION, | ||
105 | /* private: internal use only */ | 115 | /* private: internal use only */ |
106 | __NFC_CMD_AFTER_LAST | 116 | __NFC_CMD_AFTER_LAST |
107 | }; | 117 | }; |
@@ -159,6 +169,7 @@ enum nfc_attrs { | |||
159 | NFC_ATTR_FIRMWARE_NAME, | 169 | NFC_ATTR_FIRMWARE_NAME, |
160 | NFC_ATTR_SE_INDEX, | 170 | NFC_ATTR_SE_INDEX, |
161 | NFC_ATTR_SE_TYPE, | 171 | NFC_ATTR_SE_TYPE, |
172 | NFC_ATTR_SE_AID, | ||
162 | /* private: internal use only */ | 173 | /* private: internal use only */ |
163 | __NFC_ATTR_AFTER_LAST | 174 | __NFC_ATTR_AFTER_LAST |
164 | }; | 175 | }; |