nci.h 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * NCI based driver for Samsung S3FWRN5 NFC chip
  4. *
  5. * Copyright (C) 2015 Samsung Electrnoics
  6. * Robert Baldyga <[email protected]>
  7. */
  8. #ifndef __LOCAL_S3FWRN5_NCI_H_
  9. #define __LOCAL_S3FWRN5_NCI_H_
  10. #include "s3fwrn5.h"
  11. #define NCI_PROP_SET_RFREG 0x22
  12. struct nci_prop_set_rfreg_cmd {
  13. __u8 index;
  14. __u8 data[252];
  15. };
  16. struct nci_prop_set_rfreg_rsp {
  17. __u8 status;
  18. };
  19. #define NCI_PROP_START_RFREG 0x26
  20. struct nci_prop_start_rfreg_rsp {
  21. __u8 status;
  22. };
  23. #define NCI_PROP_STOP_RFREG 0x27
  24. struct nci_prop_stop_rfreg_cmd {
  25. __u16 checksum;
  26. };
  27. struct nci_prop_stop_rfreg_rsp {
  28. __u8 status;
  29. };
  30. #define NCI_PROP_FW_CFG 0x28
  31. struct nci_prop_fw_cfg_cmd {
  32. __u8 clk_type;
  33. __u8 clk_speed;
  34. __u8 clk_req;
  35. };
  36. struct nci_prop_fw_cfg_rsp {
  37. __u8 status;
  38. };
  39. extern const struct nci_driver_ops s3fwrn5_nci_prop_ops[4];
  40. int s3fwrn5_nci_rf_configure(struct s3fwrn5_info *info, const char *fw_name);
  41. #endif /* __LOCAL_S3FWRN5_NCI_H_ */