^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2011 - 2012 Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef __LOCAL_PN544_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define __LOCAL_PN544_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <net/nfc/hci.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define DRIVER_DESC "HCI NFC driver for PN544"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define PN544_HCI_MODE 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define PN544_FW_MODE 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) typedef int (*fw_download_t)(void *context, const char *firmware_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) u8 hw_variant);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int pn544_hci_probe(void *phy_id, struct nfc_phy_ops *phy_ops, char *llc_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int phy_headroom, int phy_tailroom, int phy_payload,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) fw_download_t fw_download, struct nfc_hci_dev **hdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void pn544_hci_remove(struct nfc_hci_dev *hdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #endif /* __LOCAL_PN544_H_ */