tkernel_2/kernel/sysinit/src/sysinit.h | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: 15: /* 16: * sysinit.h (sysinit) 17: * Initialize System 18: */ 19: 20: #ifndef _SYSINIT_ 21: #define _SYSINIT_ 22: 23: #include <basic.h> 24: #include <tk/tkernel.h> 25: #include <tm/tmonitor.h> 26: 27: /* 28: * Get system configuration information (SYSCONF) 29: */ 30: IMPORT W GetSysConf( UB *name, W *val ); 31: IMPORT W GetSysConfStr( UB *name, UB *str ); 32: 33: /* 34: * Get device configuration information (DEVCONF) 35: */ 36: IMPORT W GetDevConf( UB *name, W *val ); 37: IMPORT W GetDevConfStr( UB *name, UB *str ); 38: 39: /* 40: * Platform dependent sequence 41: */ 42: IMPORT ER init_device( void ); 43: IMPORT ER start_device( void ); 44: IMPORT ER finish_device( void ); 45: IMPORT ER restart_device( W mode ); 46: IMPORT void DispProgress( W n ); 47: 48: /* ------------------------------------------------------------------------ */ 49: 50: #define IMPORT_DEFINE 1 51: #if IMPORT_DEFINE 52: IMPORT void init_system( void ); 53: IMPORT void start_system( void ); 54: IMPORT void shutdown_system( INT fin ); 55: #endif 56: 57: #endif /* _SYSINIT_ */