blob: 96ad04747816caa523cd2b1b0a1d259b12994c01 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2008-2010, 2012, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
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
27extern int modem_register_notifier(struct notifier_block *nb);
28extern int modem_unregister_notifier(struct notifier_block *nb);
29extern void modem_notify(void *data, unsigned int state);
30extern void modem_queue_start_reset_notify(void);
31extern void modem_queue_end_reset_notify(void);
32extern void modem_queue_smsm_init_notify(void);
Jeff Hugo0ce0a902012-06-11 15:53:18 -060033extern int __init msm_init_modem_notifier_list(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070034
35#endif /* _MODEM_NOTIFIER_H */