linux/drivers/nfc/st21nfca/se.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2014  STMicroelectronics SAS. All rights reserved.
 */

#include <net/nfc/hci.h>

#include "st21nfca.h"

#define ST21NFCA_EVT_UICC_ACTIVATE
#define ST21NFCA_EVT_UICC_DEACTIVATE
#define ST21NFCA_EVT_SE_HARD_RESET
#define ST21NFCA_EVT_SE_SOFT_RESET
#define ST21NFCA_EVT_SE_END_OF_APDU_TRANSFER
#define ST21NFCA_EVT_SE_ACTIVATE
#define ST21NFCA_EVT_SE_DEACTIVATE

#define ST21NFCA_EVT_TRANSMIT_DATA
#define ST21NFCA_EVT_WTX_REQUEST

#define ST21NFCA_EVT_CONNECTIVITY
#define ST21NFCA_EVT_TRANSACTION

#define ST21NFCA_SE_TO_HOT_PLUG
/* Connectivity pipe only */
#define ST21NFCA_SE_COUNT_PIPE_UICC
/* Connectivity + APDU Reader pipe */
#define ST21NFCA_SE_COUNT_PIPE_EMBEDDED

#define ST21NFCA_SE_MODE_OFF
#define ST21NFCA_SE_MODE_ON

#define ST21NFCA_PARAM_ATR
#define ST21NFCA_ATR_DEFAULT_BWI

/*
 * WT = 2^BWI/10[s], convert into msecs and add a secure
 * room by increasing by 2 this timeout
 */
#define ST21NFCA_BWI_TO_TIMEOUT(x)
#define ST21NFCA_ATR_GET_Y_FROM_TD(x)

/* If TA is present bit 0 is set */
#define ST21NFCA_ATR_TA_PRESENT(x)
/* If TB is present bit 1 is set */
#define ST21NFCA_ATR_TB_PRESENT(x)

static u8 st21nfca_se_get_bwi(struct nfc_hci_dev *hdev)
{}

static void st21nfca_se_get_atr(struct nfc_hci_dev *hdev)
{}

static int st21nfca_hci_control_se(struct nfc_hci_dev *hdev, u32 se_idx,
				u8 state)
{}

int st21nfca_hci_discover_se(struct nfc_hci_dev *hdev)
{}
EXPORT_SYMBOL();

int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx)
{}
EXPORT_SYMBOL();

int st21nfca_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx)
{}
EXPORT_SYMBOL();

int st21nfca_hci_se_io(struct nfc_hci_dev *hdev, u32 se_idx,
			u8 *apdu, size_t apdu_length,
			se_io_cb_t cb, void *cb_context)
{}
EXPORT_SYMBOL();

static void st21nfca_se_wt_work(struct work_struct *work)
{}

static void st21nfca_se_wt_timeout(struct timer_list *t)
{}

static void st21nfca_se_activation_timeout(struct timer_list *t)
{}

/*
 * Returns:
 * <= 0: driver handled the event, skb consumed
 *    1: driver does not handle the event, please do standard processing
 */
int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host,
				u8 event, struct sk_buff *skb)
{}
EXPORT_SYMBOL();

int st21nfca_apdu_reader_event_received(struct nfc_hci_dev *hdev,
					u8 event, struct sk_buff *skb)
{}
EXPORT_SYMBOL();

void st21nfca_se_init(struct nfc_hci_dev *hdev)
{}
EXPORT_SYMBOL();

void st21nfca_se_deinit(struct nfc_hci_dev *hdev)
{}
EXPORT_SYMBOL();