ONLP
Open Network Linux Platform APIs
platform.h
Go to the documentation of this file.
1 /************************************************************
2  * <bsn.cl fy=2017 v=onl>
3  *
4  * Copyright 2017 Big Switch Networks, Inc.
5  *
6  * Licensed under the Eclipse Public License, Version 1.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.eclipse.org/legal/epl-v10.html
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15  * either express or implied. See the License for the specific
16  * language governing permissions and limitations under the
17  * License.
18  *
19  * </bsn.cl>
20  ********************************************************/
28 #ifndef __ONLP_PLATFORM_H__
29 #define __ONLP_PLATFORM_H__
30 
31 #include <onlp/onlp_config.h>
32 #include <onlp/onlp.h>
33 
34 #include <AIM/aim_pvs.h>
35 
39 char* onlp_platform_name_get(void);
40 
44 int onlp_platform_sw_init(const char* platform);
45 
50 int onlp_platform_hw_init(uint32_t flags);
51 
58 int onlp_platform_sw_denit(void);
59 
64 int onlp_platform_manager_start(int block);
65 
70 int onlp_platform_manager_stop(int block);
71 
76 
84 
88 void
89 onlp_platform_manager_daemon(const char* name, const char* logfile,
90  const char* pidfile, char** argv);
94 int onlp_platform_debug(aim_pvs_t* pvs, int argc, char** argv);
95 
96 #endif /* __ONLP_PLATFORM_H__ */
97 /* @} */
onlp Configuration Header
int onlp_platform_hw_init(uint32_t flags)
Platform Hardware init.
int onlp_platform_sw_init(const char *platform)
Platform software init.
int onlp_platform_sw_denit(void)
Deinitialize the chassis software module.
char * onlp_platform_name_get(void)
Get the current ONL platform name.
int onlp_platform_manager_start(int block)
Start the platform management thread.
int onlp_platform_manager_stop(int block)
Stop the platform management thread.
int onlp_platform_manager_join(void)
Join the platform management thread.
int onlp_platform_debug(aim_pvs_t *pvs, int argc, char **argv)
Call the platform debug hook.
void onlp_platform_manager_manage(void)
Perform any pending platform management activities.
void onlp_platform_manager_daemon(const char *name, const char *logfile, const char *pidfile, char **argv)
Run in platform manager dameon mode.