diff options
author | Vincent Cuissard <cuissard@marvell.com> | 2015-06-11 11:25:47 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-06-11 23:37:37 +0200 |
commit | 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 (patch) | |
tree | 33d59530eba0b11a835b869af86ee69e17ea7e34 /include/net/nfc/nci.h | |
parent | 4a2b947f56b33cde68d6e0543160ea09ce651fd9 (diff) | |
download | op-kernel-dev-9961127d4bce6325e9a0b0fb105e0c85a6c62cb7.zip op-kernel-dev-9961127d4bce6325e9a0b0fb105e0c85a6c62cb7.tar.gz |
NFC: nci: add generic uart support
Some NFC controller supports UART as host interface.
As with SPI, a lot of code can be shared between vendor
drivers. This patch add the generic support of UART and
provides some extension API for vendor specific needs.
This code is strongly inspired by the Bluetooth HCI ldisc
implementation. NCI UART vendor drivers will have to register
themselves to this layer via nci_uart_register.
Underlying tty will have to be configured from user land
thanks to an ioctl.
Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc/nci.h')
-rw-r--r-- | include/net/nfc/nci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/nfc/nci.h b/include/net/nfc/nci.h index a2f2f3d..75d2e18 100644 --- a/include/net/nfc/nci.h +++ b/include/net/nfc/nci.h @@ -35,6 +35,7 @@ #define NCI_MAX_NUM_RF_CONFIGS 10 #define NCI_MAX_NUM_CONN 10 #define NCI_MAX_PARAM_LEN 251 +#define NCI_MAX_PACKET_SIZE 258 /* NCI Status Codes */ #define NCI_STATUS_OK 0x00 |