fdp.h 821 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /* -------------------------------------------------------------------------
  3. * Copyright (C) 2014-2016, Intel Corporation
  4. *
  5. * -------------------------------------------------------------------------
  6. */
  7. #ifndef __LOCAL_FDP_H_
  8. #define __LOCAL_FDP_H_
  9. #include <net/nfc/nci_core.h>
  10. #include <linux/gpio/consumer.h>
  11. struct fdp_i2c_phy {
  12. struct i2c_client *i2c_dev;
  13. struct gpio_desc *power_gpio;
  14. struct nci_dev *ndev;
  15. /* < 0 if i2c error occurred */
  16. int hard_fault;
  17. uint16_t next_read_size;
  18. };
  19. int fdp_nci_probe(struct fdp_i2c_phy *phy, const struct nfc_phy_ops *phy_ops,
  20. struct nci_dev **ndev, int tx_headroom, int tx_tailroom,
  21. u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
  22. void fdp_nci_remove(struct nci_dev *ndev);
  23. #endif /* __LOCAL_FDP_H_ */