linux/net/nfc/hci/command.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2012  Intel Corporation. All rights reserved.
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/module.h>

#include <net/nfc/hci.h>

#include "hci.h"

#define MAX_FWI

static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
			       const u8 *param, size_t param_len,
			       data_exchange_cb_t cb, void *cb_context)
{}

/*
 * HCI command execution completion callback.
 * err will be a standard linux error (may be converted from HCI response)
 * skb contains the response data and must be disposed, or may be NULL if
 * an error occurred
 */
static void nfc_hci_execute_cb(void *context, struct sk_buff *skb, int err)
{}

static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
			       const u8 *param, size_t param_len,
			       struct sk_buff **skb)
{}

int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event,
		       const u8 *param, size_t param_len)
{}
EXPORT_SYMBOL();

/*
 * Execute an hci command sent to gate.
 * skb will contain response data if success. skb can be NULL if you are not
 * interested by the response.
 */
int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
		     const u8 *param, size_t param_len, struct sk_buff **skb)
{}
EXPORT_SYMBOL();

int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
			   const u8 *param, size_t param_len,
			   data_exchange_cb_t cb, void *cb_context)
{}
EXPORT_SYMBOL();

int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
		      const u8 *param, size_t param_len)
{}
EXPORT_SYMBOL();

int nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
		      struct sk_buff **skb)
{}
EXPORT_SYMBOL();

static int nfc_hci_open_pipe(struct nfc_hci_dev *hdev, u8 pipe)
{}

static int nfc_hci_close_pipe(struct nfc_hci_dev *hdev, u8 pipe)
{}

static u8 nfc_hci_create_pipe(struct nfc_hci_dev *hdev, u8 dest_host,
			      u8 dest_gate, int *result)
{}

static int nfc_hci_delete_pipe(struct nfc_hci_dev *hdev, u8 pipe)
{}

static int nfc_hci_clear_all_pipes(struct nfc_hci_dev *hdev)
{}

int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate)
{}
EXPORT_SYMBOL();

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

int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate,
			 u8 pipe)
{}
EXPORT_SYMBOL();