Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2008-2010, 2012, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 | |
| 18 | #ifndef _MODEM_NOTIFIER_H |
| 19 | #define _MODEM_NOTIFIER_H |
| 20 | |
| 21 | #include <linux/notifier.h> |
| 22 | |
| 23 | #define MODEM_NOTIFIER_START_RESET 0x1 |
| 24 | #define MODEM_NOTIFIER_END_RESET 0x2 |
| 25 | #define MODEM_NOTIFIER_SMSM_INIT 0x3 |
| 26 | |
| 27 | extern int modem_register_notifier(struct notifier_block *nb); |
| 28 | extern int modem_unregister_notifier(struct notifier_block *nb); |
| 29 | extern void modem_notify(void *data, unsigned int state); |
| 30 | extern void modem_queue_start_reset_notify(void); |
| 31 | extern void modem_queue_end_reset_notify(void); |
| 32 | extern void modem_queue_smsm_init_notify(void); |
Jeff Hugo | 0ce0a90 | 2012-06-11 15:53:18 -0600 | [diff] [blame] | 33 | extern int __init msm_init_modem_notifier_list(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 34 | |
| 35 | #endif /* _MODEM_NOTIFIER_H */ |