Changes to Modem Interface Plug-in based on New Design for Tizen2.1.
[platform/core/telephony/tel-plugin-imcmodem.git] / include / vnet.h
1 /*
2  * tel-plugin-imcmodem
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Kyoungyoup Park <gynaru.park@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef _VNET_H_
22 #define _VNET_H_
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /* CP states */
29 enum vnet_cp_state {
30         VNET_CP_STATE_UNKNOWN = -1,
31         VNET_CP_STATE_OFFLINE = 0,
32         VNET_CP_STATE_CRASH_RESET,
33         VNET_CP_STATE_CRASH_EXIT,
34         VNET_CP_STATE_BOOTING,
35         VNET_CP_STATE_ONLINE,
36         VNET_CP_STATE_NV_REBUILDING,
37         VNET_CP_STATE_LOADER_DONE,
38 };
39
40 void vnet_start_cp_ramdump( void );
41 void vnet_start_cp_reset( void );
42
43 enum vnet_cp_state vnet_get_cp_state( int fd );
44
45 int vnet_rfs0_open( void );
46 int vnet_ipc0_open( void );
47
48
49 #ifdef __cplusplus
50 }
51 #endif  /* __cplusplus */
52
53 #endif  /* _VNET_H_ */