fdp.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* -------------------------------------------------------------------------
  2. * Copyright (C) 2014-2016, Intel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. * -------------------------------------------------------------------------
  14. */
  15. #ifndef __LOCAL_FDP_H_
  16. #define __LOCAL_FDP_H_
  17. #include <net/nfc/nci_core.h>
  18. #include <linux/gpio/consumer.h>
  19. struct fdp_i2c_phy {
  20. struct i2c_client *i2c_dev;
  21. struct gpio_desc *power_gpio;
  22. struct nci_dev *ndev;
  23. /* < 0 if i2c error occurred */
  24. int hard_fault;
  25. uint16_t next_read_size;
  26. };
  27. int fdp_nci_probe(struct fdp_i2c_phy *phy, struct nfc_phy_ops *phy_ops,
  28. struct nci_dev **ndev, int tx_headroom, int tx_tailroom,
  29. u8 clock_type, u32 clock_freq, u8 *fw_vsc_cfg);
  30. void fdp_nci_remove(struct nci_dev *ndev);
  31. int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
  32. #endif /* __LOCAL_FDP_H_ */