linux/net/nfc/digital_core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * NFC Digital Protocol stack
 * Copyright (c) 2013, Intel Corporation.
 */

#define pr_fmt(fmt)

#include <linux/module.h>

#include "digital.h"

#define DIGITAL_PROTO_NFCA_RF_TECH

#define DIGITAL_PROTO_NFCB_RF_TECH

#define DIGITAL_PROTO_NFCF_RF_TECH

#define DIGITAL_PROTO_ISO15693_RF_TECH

/* Delay between each poll frame (ms) */
#define DIGITAL_POLL_INTERVAL

struct digital_cmd {};

struct sk_buff *digital_skb_alloc(struct nfc_digital_dev *ddev,
				  unsigned int len)
{}

void digital_skb_add_crc(struct sk_buff *skb, crc_func_t crc_func, u16 init,
			 u8 bitwise_inv, u8 msb_first)
{}

int digital_skb_check_crc(struct sk_buff *skb, crc_func_t crc_func,
			  u16 crc_init, u8 bitwise_inv, u8 msb_first)
{}

static inline void digital_switch_rf(struct nfc_digital_dev *ddev, bool on)
{}

static inline void digital_abort_cmd(struct nfc_digital_dev *ddev)
{}

static void digital_wq_cmd_complete(struct work_struct *work)
{}

static void digital_send_cmd_complete(struct nfc_digital_dev *ddev,
				      void *arg, struct sk_buff *resp)
{}

static void digital_wq_cmd(struct work_struct *work)
{}

int digital_send_cmd(struct nfc_digital_dev *ddev, u8 cmd_type,
		     struct sk_buff *skb, struct digital_tg_mdaa_params *params,
		     u16 timeout, nfc_digital_cmd_complete_t cmd_cb,
		     void *cb_context)
{}

int digital_in_configure_hw(struct nfc_digital_dev *ddev, int type, int param)
{}

int digital_tg_configure_hw(struct nfc_digital_dev *ddev, int type, int param)
{}

static int digital_tg_listen_mdaa(struct nfc_digital_dev *ddev, u8 rf_tech)
{}

static int digital_tg_listen_md(struct nfc_digital_dev *ddev, u8 rf_tech)
{}

int digital_target_found(struct nfc_digital_dev *ddev,
			 struct nfc_target *target, u8 protocol)
{}

void digital_poll_next_tech(struct nfc_digital_dev *ddev)
{}

static void digital_wq_poll(struct work_struct *work)
{}

static void digital_add_poll_tech(struct nfc_digital_dev *ddev, u8 rf_tech,
				  digital_poll_t poll_func)
{}

/**
 * digital_start_poll - start_poll operation
 * @nfc_dev: device to be polled
 * @im_protocols: bitset of nfc initiator protocols to be used for polling
 * @tm_protocols: bitset of nfc transport protocols to be used for polling
 *
 * For every supported protocol, the corresponding polling function is added
 * to the table of polling technologies (ddev->poll_techs[]) using
 * digital_add_poll_tech().
 * When a polling function fails (by timeout or protocol error) the next one is
 * schedule by digital_poll_next_tech() on the poll workqueue (ddev->poll_work).
 */
static int digital_start_poll(struct nfc_dev *nfc_dev, __u32 im_protocols,
			      __u32 tm_protocols)
{}

static void digital_stop_poll(struct nfc_dev *nfc_dev)
{}

static int digital_dev_up(struct nfc_dev *nfc_dev)
{}

static int digital_dev_down(struct nfc_dev *nfc_dev)
{}

static int digital_dep_link_up(struct nfc_dev *nfc_dev,
			       struct nfc_target *target,
			       __u8 comm_mode, __u8 *gb, size_t gb_len)
{}

static int digital_dep_link_down(struct nfc_dev *nfc_dev)
{}

static int digital_activate_target(struct nfc_dev *nfc_dev,
				   struct nfc_target *target, __u32 protocol)
{}

static void digital_deactivate_target(struct nfc_dev *nfc_dev,
				      struct nfc_target *target,
				      u8 mode)
{}

static int digital_tg_send(struct nfc_dev *dev, struct sk_buff *skb)
{}

static void digital_in_send_complete(struct nfc_digital_dev *ddev, void *arg,
				     struct sk_buff *resp)
{}

static int digital_in_send(struct nfc_dev *nfc_dev, struct nfc_target *target,
			   struct sk_buff *skb, data_exchange_cb_t cb,
			   void *cb_context)
{}

static const struct nfc_ops digital_nfc_ops =;

struct nfc_digital_dev *nfc_digital_allocate_device(const struct nfc_digital_ops *ops,
					    __u32 supported_protocols,
					    __u32 driver_capabilities,
					    int tx_headroom, int tx_tailroom)
{}
EXPORT_SYMBOL();

void nfc_digital_free_device(struct nfc_digital_dev *ddev)
{}
EXPORT_SYMBOL();

int nfc_digital_register_device(struct nfc_digital_dev *ddev)
{}
EXPORT_SYMBOL();

void nfc_digital_unregister_device(struct nfc_digital_dev *ddev)
{}
EXPORT_SYMBOL();

MODULE_DESCRIPTION();
MODULE_LICENSE();