sb_wireless.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * include/linux/battery/sb_wireless.h
  3. *
  4. * header file supporting samsung battery wireless information
  5. *
  6. * Copyright (C) 2023 Samsung Electronics
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #ifndef __SB_WIRELESS_H__
  24. #define __SB_WIRELESS_H__
  25. enum wpc_op_mode {
  26. WPC_OP_MODE_NONE = 0, /* AC MISSING */
  27. WPC_OP_MODE_BPP,
  28. WPC_OP_MODE_PPDE,
  29. WPC_OP_MODE_EPP,
  30. WPC_OP_MODE_MPP,
  31. WPC_OP_MODE_MAX
  32. };
  33. enum wpc_auth_mode {
  34. WPC_AUTH_MODE_NONE = 0,
  35. WPC_AUTH_MODE_BPP,
  36. WPC_AUTH_MODE_PPDE,
  37. WPC_AUTH_MODE_EPP,
  38. WPC_AUTH_MODE_MPP,
  39. WPC_AUTH_MODE_MAX
  40. };
  41. struct sb_wireless_op {
  42. int (*get_op_mode)(void *pdata);
  43. int (*get_qi_ver)(void *pdata);
  44. int (*get_auth_mode)(void *pdata);
  45. };
  46. const char *sb_wrl_op_mode_str(int op_mode);
  47. int sb_wireless_set_op(void *pdata, const struct sb_wireless_op *op);
  48. #endif /* __SB_WIRELESS_H__ */