st21nfca_dep.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms and conditions of the GNU General Public License,
  6. * version 2, as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef __ST21NFCA_DEP_H
  17. #define __ST21NFCA_DEP_H
  18. #include <linux/skbuff.h>
  19. #include <linux/workqueue.h>
  20. struct st21nfca_dep_info {
  21. struct sk_buff *tx_pending;
  22. struct work_struct tx_work;
  23. u8 curr_nfc_dep_pni;
  24. u32 idx;
  25. u8 to;
  26. u8 did;
  27. u8 bsi;
  28. u8 bri;
  29. u8 lri;
  30. } __packed;
  31. int st21nfca_tm_event_send_data(struct nfc_hci_dev *hdev, struct sk_buff *skb,
  32. u8 gate);
  33. int st21nfca_tm_send_dep_res(struct nfc_hci_dev *hdev, struct sk_buff *skb);
  34. int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len);
  35. int st21nfca_im_send_dep_req(struct nfc_hci_dev *hdev, struct sk_buff *skb);
  36. void st21nfca_dep_init(struct nfc_hci_dev *hdev);
  37. void st21nfca_dep_deinit(struct nfc_hci_dev *hdev);
  38. #endif /* __ST21NFCA_DEP_H */