History

NFC: Extend netlink interface for LTO, RW, and MIUX parameters support

NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for a device. LTO must be set before the link is up otherwise -EINPROGRESS is returned. RW and MIUX can be set at anytime and will be passed in subsequent CONNECT and CC messages. If one of the passed parameters is wrong none is set and -EINVAL is returned.

Thierry Escande committed 14 years ago

Commit 52feb441 parent f31652a6 files · +189 −19Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/nfc.h+15−0
@@ -60,6 +60,13 @@ · 59 unmodified lines
6060 * target mode.
6161 * @NFC_EVENT_DEVICE_DEACTIVATED: event emitted when the adapter is deactivated
6262 * from target mode.
63+ * @NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device
64+ * @NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for
65+ * a device. LTO must be set before the link is up otherwise -EINPROGRESS
66+ * is returned. RW and MIUX can be set at anytime and will be passed in
67+ * subsequent CONNECT and CC messages.
68+ * If one of the passed parameters is wrong none is set and -EINVAL is
69+ * returned.
6370 */
6471 enum nfc_commands {
6572 NFC_CMD_UNSPEC,
@@ -77,6 +84,8 @@ enum nfc_commands { · 11 unmodified lines
7784 NFC_EVENT_TARGET_LOST,
7885 NFC_EVENT_TM_ACTIVATED,
7986 NFC_EVENT_TM_DEACTIVATED,
87+ NFC_CMD_LLC_GET_PARAMS,
88+ NFC_CMD_LLC_SET_PARAMS,
8089 /* private: internal use only */
8190 __NFC_CMD_AFTER_LAST
8291 };
@@ -102,6 +111,9 @@ enum nfc_commands { · 19 unmodified lines
102111 * @NFC_ATTR_RF_MODE: Initiator or target
103112 * @NFC_ATTR_IM_PROTOCOLS: Initiator mode protocols to poll for
104113 * @NFC_ATTR_TM_PROTOCOLS: Target mode protocols to listen for
114+ * @NFC_ATTR_LLC_PARAM_LTO: Link TimeOut parameter
115+ * @NFC_ATTR_LLC_PARAM_RW: Receive Window size parameter
116+ * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter
105117 */
106118 enum nfc_attrs {
107119 NFC_ATTR_UNSPEC,
@@ -119,6 +131,9 @@ enum nfc_attrs { · 11 unmodified lines
119131 NFC_ATTR_DEVICE_POWERED,
120132 NFC_ATTR_IM_PROTOCOLS,
121133 NFC_ATTR_TM_PROTOCOLS,
134+ NFC_ATTR_LLC_PARAM_LTO,
135+ NFC_ATTR_LLC_PARAM_RW,
136+ NFC_ATTR_LLC_PARAM_MIUX,
122137 /* private: internal use only */
123138 __NFC_ATTR_AFTER_LAST
124139 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t