linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] NFC subsystem
@ 2011-06-02 21:46 Lauro Ramos Venancio
  2011-06-02 21:46 ` [PATCH 1/6] NFC: add nfc subsystem core Lauro Ramos Venancio
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Lauro Ramos Venancio @ 2011-06-02 21:46 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, lauro.venancio, marcio.macedo, aloisio.almeida,
	sameo, Waldemar.Rymarkiewicz

This series of patches implements the first part of the Near Field
Communication (NFC) subsystem.

A NFC subsystem is required to standardize the NFC device drivers
development and to create an unified userspace interface.

This implementation focus in one of the three NFC use cases: the tag
read/write. However the architecture was designed with the card
emulation and peer-to-peer use cases in mind.

The subsystem is divided in some parts. The 'core' is responsible for
providing the device driver interface. On the other side, it is also
responsible for providing an interface to the control operations and
low-level data exchange.

The control operations are available to userspace via generic netlink.
The most important operations are NFC_CMD_START_POLL and
NFC_CMD_STOP_POLL that control the polling for targets. The event
NFC_EVENT_TARGETS_FOUND is emitted to return polling results.

The low-level data exchange interface to userspace is provided by a
new socket family: PF_NFC. The NFC_SOCKPROTO_RAW uses SOCK_SEQPACKET
to perform raw communication with NFC targets. The address family
(AF_NFC) has the local device id, the NFC target id and the NFC
protocol as fields.

Further, the low-level data exchange interface provided by the core
can also be used to implement the LLCP protocol.

To test the implementation, we developed the NXP pn533 driver and an
user application example. The driver implementation is included in
this patch series. The user application example can be found at
http://code.openbossa.org.

Aloisio Almeida Jr (3):
  NFC: add NFC socket family
  NFC: pn533: add NXP pn533 nfc device driver
  NFC: add Documentation/networking/nfc.txt

Lauro Ramos Venancio (3):
  NFC: add nfc subsystem core
  NFC: add nfc generic netlink interface
  NFC: add the NFC socket raw protocol

 Documentation/networking/nfc.txt |  127 +++
 drivers/Kconfig                  |    2 -
 drivers/Makefile                 |    1 +
 drivers/nfc/Kconfig              |   24 +-
 drivers/nfc/Makefile             |    3 +
 drivers/nfc/pn533.c              | 1629 ++++++++++++++++++++++++++++++++++++++
 include/linux/nfc.h              |  136 ++++
 include/linux/socket.h           |    4 +-
 include/net/nfc.h                |  149 ++++
 net/Kconfig                      |    1 +
 net/Makefile                     |    1 +
 net/core/sock.c                  |    6 +-
 net/nfc/Kconfig                  |   24 +
 net/nfc/Makefile                 |    9 +
 net/nfc/af_nfc.c                 |   98 +++
 net/nfc/core.c                   |  403 ++++++++++
 net/nfc/netlink.c                |  446 +++++++++++
 net/nfc/nfc.h                    |  110 +++
 net/nfc/rawsock.c                |  351 ++++++++
 19 files changed, 3506 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/networking/nfc.txt
 create mode 100644 drivers/nfc/pn533.c
 create mode 100644 include/linux/nfc.h
 create mode 100644 include/net/nfc.h
 create mode 100644 net/nfc/Kconfig
 create mode 100644 net/nfc/Makefile
 create mode 100644 net/nfc/af_nfc.c
 create mode 100644 net/nfc/core.c
 create mode 100644 net/nfc/netlink.c
 create mode 100644 net/nfc/nfc.h
 create mode 100644 net/nfc/rawsock.c


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-06-18  8:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02 21:46 [PATCH 0/6] NFC subsystem Lauro Ramos Venancio
2011-06-02 21:46 ` [PATCH 1/6] NFC: add nfc subsystem core Lauro Ramos Venancio
2011-06-03 13:35   ` Johannes Berg
2011-06-03 13:45     ` Aloisio Almeida
2011-06-03 13:48       ` Johannes Berg
2011-06-02 21:46 ` [PATCH 2/6] NFC: add nfc generic netlink interface Lauro Ramos Venancio
2011-06-03 13:44   ` Johannes Berg
2011-06-03 20:18     ` Lauro Ramos Venancio
2011-06-03 20:38       ` Johannes Berg
2011-06-03 21:35         ` Aloisio Almeida
2011-06-03 21:39           ` Johannes Berg
2011-06-06  8:01       ` Kalle Valo
2011-06-06 16:20       ` Samuel Ortiz
2011-06-02 21:46 ` [PATCH 3/6] NFC: add NFC socket family Lauro Ramos Venancio
2011-06-02 21:46 ` [PATCH 4/6] NFC: add the NFC socket raw protocol Lauro Ramos Venancio
2011-06-02 21:46 ` [PATCH 5/6] NFC: pn533: add NXP pn533 nfc device driver Lauro Ramos Venancio
2011-06-02 21:46 ` [PATCH 6/6] NFC: add Documentation/networking/nfc.txt Lauro Ramos Venancio
2011-06-17 16:45 ` [PATCH 0/6] NFC subsystem John W. Linville
2011-06-17 17:07   ` Samuel Ortiz
2011-06-18  8:03   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).