Search Linux Wireless

[PATCH 0/4] NFC: NCI protocol implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series of patches implements the first part of the NFC Controller Interface protocol.

The NCI is a standard communication protocol between an NFC Controller (NFCC) and a Device Host (DH), defined by the NFC Forum.

The NCI protocol implementation is chip independent and responsible for:
	- Reset, initialization and configuration of the NFC controller
	- Sending commands/data to the NFC controller
	- Receiving responses/notifications/data from the NFC controller
	- Flow control for Control and Data Messages
	- Segmentation and reassembly for Control and Data Messages
	- An addressing scheme for NFC Execution Environments (NFCEE), e.g. 	secure element
	- An addressing scheme for Remote NFC Endpoints (NFCEE or RF targets) 	(via logical connections)

The NCI protocol is added to the NFC subsystem below the NFC core:
 
+--------------------------------------+
|              USER SPACE              |
+--------------------------------------+
     ^                        ^
     | low-level              | control
     | data exchange          | operations
     |                        |
     |                        v
     |                  +-----------+
     | AF_NFC           |  netlink  |
     | socket           +-----------+
     | raw                    ^
     |                        |
     v                        v
+---------+             +-----------+
| rawsock | <---------> | NFC core  |
+---------+             +-----------+
                	            ^
                              |
                              v
              	      +-----------+
                        | NCI core  |
                        +-----------+
				      ^
				      |
				      V
			      +-----------+
			      |  driver   |
			      +-----------+

The driver will register itself to the NCI core, and in turn the NCI core will register itself to the NFC core.

Two new control operations were added (via generic netlink):
	- Dev_up, which turn on the NFC controller (this operation may take a 	few seconds, as it can download new FW to the NFC controller)
	- Dev_down, which turn off the NFC controller

The nfc.h file was moved from include/net to include/net/nfc, since 2 new header files were added to the new include/net/nfc folder.

To test the implementation, we developed the NFC TI Shared Transport driver and tested it with the user application example (provided by Lauro/Aloisio).
The driver implementation is included in this patch series.

Ilan Elias (4):
  NFC: Add NFC dev_up and dev_down control operations
  NFC: Move nfc.h from include/net to include/net/nfc
  NFC: Basic NFC NCI protocol implementation
  NFC: NFC driver for TI shared transport

 drivers/nfc/Kconfig         |   11 +
 drivers/nfc/Makefile        |    1 +
 drivers/nfc/nfcwilink.c     |  339 +++++++++++++++++++
 drivers/nfc/pn533.c         |    4 +-
 include/linux/nfc.h         |    6 +
 include/net/nfc/nci.h       |  313 ++++++++++++++++++
 include/net/nfc/nci_core.h  |  177 ++++++++++
 include/net/{ => nfc}/nfc.h |    3 +
 net/nfc/Kconfig             |    2 +
 net/nfc/Makefile            |    1 +
 net/nfc/core.c              |   69 ++++
 net/nfc/nci/Kconfig         |   10 +
 net/nfc/nci/Makefile        |    7 +
 net/nfc/nci/nci_core.c      |  750 +++++++++++++++++++++++++++++++++++++++++++
 net/nfc/nci/nci_data.c      |  252 +++++++++++++++
 net/nfc/nci/nci_lib.c       |   94 ++++++
 net/nfc/nci/nci_ntf.c       |  264 +++++++++++++++
 net/nfc/nci/nci_rsp.c       |  226 +++++++++++++
 net/nfc/netlink.c           |   64 ++++
 net/nfc/nfc.h               |    6 +-
 20 files changed, 2597 insertions(+), 2 deletions(-)
 create mode 100644 drivers/nfc/nfcwilink.c
 create mode 100644 include/net/nfc/nci.h
 create mode 100644 include/net/nfc/nci_core.h
 rename include/net/{ => nfc}/nfc.h (97%)
 create mode 100644 net/nfc/nci/Kconfig
 create mode 100644 net/nfc/nci/Makefile
 create mode 100644 net/nfc/nci/nci_core.c
 create mode 100644 net/nfc/nci/nci_data.c
 create mode 100644 net/nfc/nci/nci_lib.c
 create mode 100644 net/nfc/nci/nci_ntf.c
 create mode 100644 net/nfc/nci/nci_rsp.c
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux