diff options
| author | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-10 09:47:37 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-14 07:44:59 -0400 |
| commit | 2757c3723c3d2b13e3a8bfaa034826f64e9cca43 (patch) | |
| tree | 05a2c978fc9edbc973f1f6b55afbddf6ccb79f55 /include/uapi/linux | |
| parent | fed7c25ec0d4894edfc36bbe5c5231e52f45483a (diff) | |
NFC: Send netlink events for secure elements additions and removals
When an NFC driver or host controller stack discovers a secure element,
it will call nfc_add_se(). In order for userspace applications to use
these secure elements, a netlink event will then be sent with the SE
index and its type. With that information userspace applications can
decide wether or not to enable SEs, through their indexes.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nfc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index 3a57cef0b986..caed0f324d5f 100644 --- a/include/uapi/linux/nfc.h +++ b/include/uapi/linux/nfc.h | |||
| @@ -95,6 +95,8 @@ enum nfc_commands { | |||
| 95 | NFC_CMD_LLC_SDREQ, | 95 | NFC_CMD_LLC_SDREQ, |
| 96 | NFC_EVENT_LLC_SDRES, | 96 | NFC_EVENT_LLC_SDRES, |
| 97 | NFC_CMD_FW_UPLOAD, | 97 | NFC_CMD_FW_UPLOAD, |
| 98 | NFC_EVENT_SE_ADDED, | ||
| 99 | NFC_EVENT_SE_REMOVED, | ||
| 98 | /* private: internal use only */ | 100 | /* private: internal use only */ |
| 99 | __NFC_CMD_AFTER_LAST | 101 | __NFC_CMD_AFTER_LAST |
| 100 | }; | 102 | }; |
| @@ -125,6 +127,8 @@ enum nfc_commands { | |||
| 125 | * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter | 127 | * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter |
| 126 | * @NFC_ATTR_SE: Available Secure Elements | 128 | * @NFC_ATTR_SE: Available Secure Elements |
| 127 | * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version | 129 | * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version |
| 130 | * @NFC_ATTR_SE_INDEX: Secure element index | ||
| 131 | * @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED) | ||
| 128 | */ | 132 | */ |
| 129 | enum nfc_attrs { | 133 | enum nfc_attrs { |
| 130 | NFC_ATTR_UNSPEC, | 134 | NFC_ATTR_UNSPEC, |
| @@ -148,6 +152,8 @@ enum nfc_attrs { | |||
| 148 | NFC_ATTR_SE, | 152 | NFC_ATTR_SE, |
| 149 | NFC_ATTR_LLC_SDP, | 153 | NFC_ATTR_LLC_SDP, |
| 150 | NFC_ATTR_FIRMWARE_NAME, | 154 | NFC_ATTR_FIRMWARE_NAME, |
| 155 | NFC_ATTR_SE_INDEX, | ||
| 156 | NFC_ATTR_SE_TYPE, | ||
| 151 | /* private: internal use only */ | 157 | /* private: internal use only */ |
| 152 | __NFC_ATTR_AFTER_LAST | 158 | __NFC_ATTR_AFTER_LAST |
| 153 | }; | 159 | }; |
