linux_old1/include/net/nfc
Frederic Danis 391d8a2da7 NFC: Add NCI over SPI receive
Before any operation, driver interruption is de-asserted to prevent
race condition between TX and RX.

Transaction starts by emitting "Direct read" and acknowledged mode
bytes. Then packet length is read allowing to allocate correct NCI
socket buffer. After that payload is retrieved.

A delay after the transaction can be added.
This delay is determined by the driver during nci_spi_allocate_device()
call and can be 0.

If acknowledged mode is set:
- CRC of header and payload is checked
- if frame reception fails (CRC error): NACK is sent
- if received frame has ACK or NACK flag: unblock nci_spi_send()

Payload is passed to NCI module.

At the end, driver interruption is re asserted.

Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2013-06-14 13:44:16 +02:00
..
hci.h NFC: HCI: Implement fw_upload ops 2013-06-14 00:26:09 +02:00
llc.h NFC: Add an shdlc llc module to llc core 2012-09-25 00:17:25 +02:00
nci.h NFC: Parse NCI NFC-DEP activation params 2012-09-25 00:17:23 +02:00
nci_core.h NFC: Add NCI over SPI receive 2013-06-14 13:44:16 +02:00
nfc.h NFC: Add firmware upload netlink command 2013-06-14 00:26:08 +02:00