diff options
Diffstat (limited to 'include/uapi/linux/nfc.h')
| -rw-r--r-- | include/uapi/linux/nfc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index 8137dd8d2adf..29bed72a4ac4 100644 --- a/include/uapi/linux/nfc.h +++ b/include/uapi/linux/nfc.h | |||
| @@ -71,6 +71,20 @@ | |||
| 71 | * @NFC_CMD_DISABLE_SE: Disable the physical link to a specific secure element. | 71 | * @NFC_CMD_DISABLE_SE: Disable the physical link to a specific secure element. |
| 72 | * @NFC_CMD_FW_DOWNLOAD: Request to Load/flash firmware, or event to inform | 72 | * @NFC_CMD_FW_DOWNLOAD: Request to Load/flash firmware, or event to inform |
| 73 | * that some firmware was loaded | 73 | * that some firmware was loaded |
| 74 | * @NFC_EVENT_SE_ADDED: Event emitted when a new secure element is discovered. | ||
| 75 | * This typically will be sent whenever a new NFC controller with either | ||
| 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 | ||
| 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). | ||
| 87 | * @NFC_CMD_GET_SE: Dump all discovered secure elements from an NFC controller. | ||
| 74 | */ | 88 | */ |
| 75 | enum nfc_commands { | 89 | enum nfc_commands { |
| 76 | NFC_CMD_UNSPEC, | 90 | NFC_CMD_UNSPEC, |
| @@ -97,6 +111,9 @@ enum nfc_commands { | |||
| 97 | NFC_CMD_FW_DOWNLOAD, | 111 | NFC_CMD_FW_DOWNLOAD, |
| 98 | NFC_EVENT_SE_ADDED, | 112 | NFC_EVENT_SE_ADDED, |
| 99 | NFC_EVENT_SE_REMOVED, | 113 | NFC_EVENT_SE_REMOVED, |
| 114 | NFC_EVENT_SE_CONNECTIVITY, | ||
| 115 | NFC_EVENT_SE_TRANSACTION, | ||
| 116 | NFC_CMD_GET_SE, | ||
| 100 | /* private: internal use only */ | 117 | /* private: internal use only */ |
| 101 | __NFC_CMD_AFTER_LAST | 118 | __NFC_CMD_AFTER_LAST |
| 102 | }; | 119 | }; |
| @@ -129,6 +146,7 @@ enum nfc_commands { | |||
| 129 | * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version | 146 | * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version |
| 130 | * @NFC_ATTR_SE_INDEX: Secure element index | 147 | * @NFC_ATTR_SE_INDEX: Secure element index |
| 131 | * @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED) | 148 | * @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED) |
| 149 | * @NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS: Firmware download operation status | ||
| 132 | */ | 150 | */ |
| 133 | enum nfc_attrs { | 151 | enum nfc_attrs { |
| 134 | NFC_ATTR_UNSPEC, | 152 | NFC_ATTR_UNSPEC, |
| @@ -154,6 +172,8 @@ enum nfc_attrs { | |||
| 154 | NFC_ATTR_FIRMWARE_NAME, | 172 | NFC_ATTR_FIRMWARE_NAME, |
| 155 | NFC_ATTR_SE_INDEX, | 173 | NFC_ATTR_SE_INDEX, |
| 156 | NFC_ATTR_SE_TYPE, | 174 | NFC_ATTR_SE_TYPE, |
| 175 | NFC_ATTR_SE_AID, | ||
| 176 | NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS, | ||
| 157 | /* private: internal use only */ | 177 | /* private: internal use only */ |
| 158 | __NFC_ATTR_AFTER_LAST | 178 | __NFC_ATTR_AFTER_LAST |
| 159 | }; | 179 | }; |
