diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-12-19 13:11:32 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-09 18:51:54 -0500 |
commit | 390a1bd8538132186ddb679cafe9e75b7ef7e2d2 (patch) | |
tree | 1c548396163a30e0e29f6572cf7b6f0c645085ba /net/nfc/core.c | |
parent | 2ad554a502facd705ce6eb362d0f1ac3ca426508 (diff) |
NFC: Initial Secure Element API
Each NFC adapter can have several links to different secure elements and
that property needs to be exported by the drivers.
A secure element link can be enabled and disabled, and card emulation will
be handled by the currently active one. Otherwise card emulation will be
host implemented.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r-- | net/nfc/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index 7d7b4ee34015..25522e56d350 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
@@ -757,6 +757,7 @@ struct nfc_dev *nfc_get_device(unsigned int idx) | |||
757 | */ | 757 | */ |
758 | struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, | 758 | struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, |
759 | u32 supported_protocols, | 759 | u32 supported_protocols, |
760 | u32 supported_se, | ||
760 | int tx_headroom, int tx_tailroom) | 761 | int tx_headroom, int tx_tailroom) |
761 | { | 762 | { |
762 | struct nfc_dev *dev; | 763 | struct nfc_dev *dev; |
@@ -774,6 +775,8 @@ struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, | |||
774 | 775 | ||
775 | dev->ops = ops; | 776 | dev->ops = ops; |
776 | dev->supported_protocols = supported_protocols; | 777 | dev->supported_protocols = supported_protocols; |
778 | dev->supported_se = supported_se; | ||
779 | dev->active_se = NFC_SE_NONE; | ||
777 | dev->tx_headroom = tx_headroom; | 780 | dev->tx_headroom = tx_headroom; |
778 | dev->tx_tailroom = tx_tailroom; | 781 | dev->tx_tailroom = tx_tailroom; |
779 | 782 | ||