Tizen 2.1 base
[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
22 #ifndef _VNET_H_
23 #define _VNET_H_
24
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 enum vnet_cp_state {
31         VNET_CP_STATE_OFFLINE,
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 int             vnet_get_cp_state( int fd );
43
44 int             vnet_rfs0_open( void );
45 int             vnet_ipc0_open( void );
46
47
48
49 #ifdef __cplusplus
50 }
51 #endif  /* __cplusplus */
52
53 #endif
54