linux/drivers/nfc/nfcmrvl/fw_dnld.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Marvell NFC driver: Firmware downloader
 *
 * Copyright (C) 2015, Marvell International Ltd.
 */

#ifndef __NFCMRVL_FW_DNLD_H__
#define __NFCMRVL_FW_DNLD_H__

#include <linux/workqueue.h>

#define NFCMRVL_FW_MAGIC

#define NCI_OP_PROP_BOOT_CMD

#define NCI_CORE_LC_PROP_FW_DL
#define NCI_CORE_LC_CONNID_PROP_FW_DL

#define HELPER_CMD_ENTRY_POINT
#define HELPER_CMD_PACKET_FORMAT
#define HELPER_ACK_PACKET_FORMAT
#define HELPER_RETRY_REQUESTED

struct nfcmrvl_private;

struct nfcmrvl_fw_uart_config {} __packed;

struct nfcmrvl_fw_i2c_config {} __packed;

struct nfcmrvl_fw_spi_config {} __packed;

struct nfcmrvl_fw_binary_config {} __packed;

struct nfcmrvl_fw {} __packed;

struct nfcmrvl_fw_dnld {};

int nfcmrvl_fw_dnld_init(struct nfcmrvl_private *priv);
void nfcmrvl_fw_dnld_deinit(struct nfcmrvl_private *priv);
void nfcmrvl_fw_dnld_abort(struct nfcmrvl_private *priv);
int nfcmrvl_fw_dnld_start(struct nci_dev *ndev, const char *firmware_name);
void nfcmrvl_fw_dnld_recv_frame(struct nfcmrvl_private *priv,
				struct sk_buff *skb);

#endif