modem_notifier.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (c) 2008-2010, 2012, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. /*
  14. * Modem Restart Notifier API
  15. *
  16. */
  17. #ifndef _MODEM_NOTIFIER_H
  18. #define _MODEM_NOTIFIER_H
  19. #include <linux/notifier.h>
  20. #define MODEM_NOTIFIER_START_RESET 0x1
  21. #define MODEM_NOTIFIER_END_RESET 0x2
  22. #define MODEM_NOTIFIER_SMSM_INIT 0x3
  23. extern int modem_register_notifier(struct notifier_block *nb);
  24. extern int modem_unregister_notifier(struct notifier_block *nb);
  25. extern void modem_notify(void *data, unsigned int state);
  26. extern void modem_queue_start_reset_notify(void);
  27. extern void modem_queue_end_reset_notify(void);
  28. extern void modem_queue_smsm_init_notify(void);
  29. extern int __init msm_init_modem_notifier_list(void);
  30. #endif /* _MODEM_NOTIFIER_H */