linux/drivers/nfc/st-nci/vendor_cmds.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Proprietary commands extension for STMicroelectronics NFC NCI Chip
 *
 * Copyright (C) 2014-2015  STMicroelectronics SAS. All rights reserved.
 */

#include <net/genetlink.h>
#include <linux/module.h>
#include <linux/nfc.h>
#include <linux/delay.h>
#include <net/nfc/nci_core.h>

#include "st-nci.h"

#define ST_NCI_HCI_DM_GETDATA
#define ST_NCI_HCI_DM_PUTDATA
#define ST_NCI_HCI_DM_LOAD
#define ST_NCI_HCI_DM_GETINFO
#define ST_NCI_HCI_DM_FWUPD_START
#define ST_NCI_HCI_DM_FWUPD_STOP
#define ST_NCI_HCI_DM_UPDATE_AID
#define ST_NCI_HCI_DM_RESET

#define ST_NCI_HCI_DM_FIELD_GENERATOR
#define ST_NCI_HCI_DM_VDC_MEASUREMENT_VALUE
#define ST_NCI_HCI_DM_VDC_VALUE_COMPARISON

#define ST_NCI_FACTORY_MODE_ON
#define ST_NCI_FACTORY_MODE_OFF

#define ST_NCI_EVT_POST_DATA

struct get_param_data {} __packed;

static int st_nci_factory_mode(struct nfc_dev *dev, void *data,
			       size_t data_len)
{}

static int st_nci_hci_clear_all_pipes(struct nfc_dev *dev, void *data,
				      size_t data_len)
{}

static int st_nci_hci_dm_put_data(struct nfc_dev *dev, void *data,
				  size_t data_len)
{}

static int st_nci_hci_dm_update_aid(struct nfc_dev *dev, void *data,
				    size_t data_len)
{}

static int st_nci_hci_dm_get_info(struct nfc_dev *dev, void *data,
				  size_t data_len)
{}

static int st_nci_hci_dm_get_data(struct nfc_dev *dev, void *data,
				  size_t data_len)
{}

static int st_nci_hci_dm_fwupd_start(struct nfc_dev *dev, void *data,
				     size_t data_len)
{}

static int st_nci_hci_dm_fwupd_end(struct nfc_dev *dev, void *data,
				   size_t data_len)
{}

static int st_nci_hci_dm_direct_load(struct nfc_dev *dev, void *data,
				     size_t data_len)
{}

static int st_nci_hci_dm_reset(struct nfc_dev *dev, void *data,
			       size_t data_len)
{}

static int st_nci_hci_get_param(struct nfc_dev *dev, void *data,
				size_t data_len)
{}

static int st_nci_hci_dm_field_generator(struct nfc_dev *dev, void *data,
					 size_t data_len)
{}

static int st_nci_hci_dm_vdc_measurement_value(struct nfc_dev *dev, void *data,
					       size_t data_len)
{}

static int st_nci_hci_dm_vdc_value_comparison(struct nfc_dev *dev, void *data,
					      size_t data_len)
{}

static int st_nci_loopback(struct nfc_dev *dev, void *data,
			   size_t data_len)
{}

static int st_nci_manufacturer_specific(struct nfc_dev *dev, void *data,
					size_t data_len)
{}

static const struct nfc_vendor_cmd st_nci_vendor_cmds[] =;

int st_nci_vendor_cmds_init(struct nci_dev *ndev)
{}
EXPORT_SYMBOL();