sec_charging_modprobe.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * sec_charging_modprobe.h
  3. * Samsung Mobile Battery Header
  4. *
  5. * Copyright (C) 2021 Samsung Electronics
  6. *
  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 version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __SEC_CHARGING_MODPROBE_H
  13. #define __SEC_CHARGING_MODPROBE_H __FILE__
  14. #include <linux/module.h>
  15. #include <linux/printk.h>
  16. #include <linux/jiffies.h>
  17. #include <linux/sched.h>
  18. #include <linux/wait.h>
  19. enum sec_chg_dev_info {
  20. SC_DEV_FG = 0x1,
  21. SC_DEV_MAIN_CHG = 0x2,
  22. SC_DEV_DIR_CHG = 0x4,
  23. SC_DEV_SEC_DIR_CHG = 0x8,
  24. SC_DEV_WRL_CHG = 0x10,
  25. SC_DEV_SB_MFC = 0x20,
  26. SC_DEV_MAIN_LIM = 0x40,
  27. SC_DEV_SUB_LIM = 0x80,
  28. };
  29. struct dev_init_info {
  30. wait_queue_head_t dev_wait;
  31. unsigned int dev;
  32. };
  33. extern int sec_chg_set_dev_init(unsigned int dev);
  34. extern void sec_chg_check_modprobe(void);
  35. extern void sec_chg_check_dev_modprobe(unsigned int dev);
  36. extern void sec_chg_init_gdev(void);
  37. #endif /* __SEC_CHARGING_MODPROBE_H */