diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfc.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/nfc.h b/include/linux/nfc.h index 34d8303111f0..89fee4ab1904 100644 --- a/include/linux/nfc.h +++ b/include/linux/nfc.h | |||
| @@ -139,9 +139,22 @@ struct sockaddr_nfc { | |||
| 139 | __u32 nfc_protocol; | 139 | __u32 nfc_protocol; |
| 140 | }; | 140 | }; |
| 141 | 141 | ||
| 142 | #define NFC_LLCP_MAX_SERVICE_NAME 63 | ||
| 143 | struct sockaddr_nfc_llcp { | ||
| 144 | sa_family_t sa_family; | ||
| 145 | __u32 dev_idx; | ||
| 146 | __u32 target_idx; | ||
| 147 | __u32 nfc_protocol; | ||
| 148 | __u8 dsap; /* Destination SAP, if known */ | ||
| 149 | __u8 ssap; /* Source SAP to be bound to */ | ||
| 150 | char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */; | ||
| 151 | size_t service_name_len; | ||
| 152 | }; | ||
| 153 | |||
| 142 | /* NFC socket protocols */ | 154 | /* NFC socket protocols */ |
| 143 | #define NFC_SOCKPROTO_RAW 0 | 155 | #define NFC_SOCKPROTO_RAW 0 |
| 144 | #define NFC_SOCKPROTO_MAX 1 | 156 | #define NFC_SOCKPROTO_LLCP 1 |
| 157 | #define NFC_SOCKPROTO_MAX 2 | ||
| 145 | 158 | ||
| 146 | #define NFC_HEADER_SIZE 1 | 159 | #define NFC_HEADER_SIZE 1 |
| 147 | 160 | ||
