linux/drivers/nfc/nxp-nci/nxp-nci.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2014  NXP Semiconductors  All rights reserved.
 *
 * Authors: Clément Perrochaud <[email protected]>
 *
 * Derived from PN544 device driver:
 * Copyright (C) 2012  Intel Corporation. All rights reserved.
*/

#ifndef __LOCAL_NXP_NCI_H_
#define __LOCAL_NXP_NCI_H_

#include <linux/completion.h>
#include <linux/firmware.h>
#include <linux/nfc.h>

#include <net/nfc/nci_core.h>

#define NXP_NCI_FW_HDR_LEN
#define NXP_NCI_FW_CRC_LEN

#define NXP_NCI_FW_FRAME_LEN_MASK

enum nxp_nci_mode {};

struct nxp_nci_phy_ops {};

struct nxp_nci_fw_info {};

struct nxp_nci_info {};

int nxp_nci_fw_download(struct nci_dev *ndev, const char *firmware_name);
void nxp_nci_fw_work(struct work_struct *work);
void nxp_nci_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
void nxp_nci_fw_work_complete(struct nxp_nci_info *info, int result);

int nxp_nci_probe(void *phy_id, struct device *pdev,
		  const struct nxp_nci_phy_ops *phy_ops,
		  unsigned int max_payload,
		  struct nci_dev **ndev);
void nxp_nci_remove(struct nci_dev *ndev);

#endif /* __LOCAL_NXP_NCI_H_ */