st-nci.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * NCI based Driver for STMicroelectronics NFC Chip
  3. *
  4. * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __LOCAL_ST_NCI_H_
  19. #define __LOCAL_ST_NCI_H_
  20. #include "st-nci_se.h"
  21. #include "ndlc.h"
  22. /* Define private flags: */
  23. #define ST_NCI_RUNNING 1
  24. #define ST_NCI_CORE_PROP 0x01
  25. #define ST_NCI_SET_NFC_MODE 0x02
  26. struct nci_mode_set_cmd {
  27. u8 cmd_type;
  28. u8 mode;
  29. } __packed;
  30. struct nci_mode_set_rsp {
  31. u8 status;
  32. } __packed;
  33. struct st_nci_info {
  34. struct llt_ndlc *ndlc;
  35. unsigned long flags;
  36. struct st_nci_se_info se_info;
  37. };
  38. void st_nci_remove(struct nci_dev *ndev);
  39. int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
  40. int phy_tailroom);
  41. #endif /* __LOCAL_ST_NCI_H_ */