pn544.h 684 B

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