sb_pass_through.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * sb_tx.h
  3. * Samsung Mobile Wireless TX Header
  4. *
  5. * Copyright (C) 2021 Samsung Electronics, Inc.
  6. *
  7. *
  8. * This software is licensed under the terms of the GNU General Public
  9. * License version 2, as published by the Free Software Foundation, and
  10. * may be copied, distributed, and modified under those terms.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. */
  18. #ifndef __SB_PASS_THROUGH_H
  19. #define __SB_PASS_THROUGH_H __FILE__
  20. #include <linux/err.h>
  21. enum pass_through_mode {
  22. PTM_NONE = 0,
  23. PTM_1TO1,
  24. PTM_2TO1,
  25. };
  26. struct sb_pt;
  27. struct device;
  28. enum power_supply_property;
  29. union power_supply_propval;
  30. struct sb_pt *sb_pt_init(struct device *parent);
  31. int sb_pt_psy_set_property(struct sb_pt *pt, enum power_supply_property psp, const union power_supply_propval *value);
  32. int sb_pt_psy_get_property(struct sb_pt *pt, enum power_supply_property psp, union power_supply_propval *value);
  33. int sb_pt_monitor(struct sb_pt *pt, int chg_src);
  34. int sb_pt_check_chg_src(struct sb_pt *pt, int chg_src);
  35. #endif /* __SB_PASS_THROUGH_H */