Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C) 2011 - 2012  Intel Corporation. All rights reserved.
0004  */
0005 
0006 #ifndef __LOCAL_PN544_H_
0007 #define __LOCAL_PN544_H_
0008 
0009 #include <net/nfc/hci.h>
0010 
0011 #define DRIVER_DESC "HCI NFC driver for PN544"
0012 
0013 #define PN544_HCI_MODE 0
0014 #define PN544_FW_MODE 1
0015 
0016 typedef int (*fw_download_t)(void *context, const char *firmware_name,
0017                 u8 hw_variant);
0018 
0019 int pn544_hci_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
0020             char *llc_name, int phy_headroom, int phy_tailroom,
0021             int phy_payload, fw_download_t fw_download,
0022             struct nfc_hci_dev **hdev);
0023 void pn544_hci_remove(struct nfc_hci_dev *hdev);
0024 
0025 #endif /* __LOCAL_PN544_H_ */