1:     2:     3:     4:     5:     6:     7:     8:     9:    10:    11:    12:    13: 
   14: 
   15:    16:    17:    18:    19: 
   20: 
   21: #ifndef __TK_SYSMGR_H__
   22: #define __TK_SYSMGR_H__
   23: 
   24: #include <basic.h>
   25: 
   26: #ifdef __cplusplus
   27: extern "C" {
   28: #endif
   29: 
   30:    31:    32: 
   33: #define TA_NORESIDENT   0x00000010U       
   34: #define TA_RNG0         0x00000000U    
   35: #define TA_RNG1         0x00000100U    
   36: #define TA_RNG2         0x00000200U    
   37: #define TA_RNG3         0x00000300U    
   38: #define TA_NOCACHE      0x00010000U  
   39: 
   40:    41:    42: 
   43: typedef struct t_rsmb {
   44:         INT    blksz;             
   45:         INT    total;             
   46:         INT    free;              
   47: } T_RSMB;
   48: 
   49:    50:    51: 
   52: #define TSEVT_SUSPEND_BEGIN     1   
   53: #define TSEVT_SUSPEND_DONE      2    
   54: #define TSEVT_RESUME_BEGIN      3    
   55: #define TSEVT_RESUME_DONE       4     
   56: #define TSEVT_DEVICE_REGIST     5   
   57: #define TSEVT_DEVICE_DELETE     6   
   58: 
   59: 
   60: 
   61:    62:    63: 
   64: IMPORT void* Vmalloc( size_t size );
   65: IMPORT void* Vcalloc( size_t nmemb, size_t size );
   66: IMPORT void* Vrealloc( void *ptr, size_t size );
   67: IMPORT void  Vfree( void *ptr );
   68: 
   69:    70:    71: 
   72: IMPORT void* Kmalloc( size_t size );
   73: IMPORT void* Kcalloc( size_t nmemb, size_t size );
   74: IMPORT void* Krealloc( void *ptr, size_t size );
   75: IMPORT void  Kfree( void *ptr );
   76: 
   77: 
   78: 
   79: #ifndef __commarea__
   80: #define __commarea__
   81: typedef struct CommArea CommArea;       
   82: #endif
   83: 
   84:    85:    86: 
   87:    88:    89:    90:    91:    92:    93: 
   94: 
   95: 
   96: 
   97: 
   98: IMPORT INT tk_get_cfn( CONST UB *name, INT *val, INT max );
   99: IMPORT INT tk_get_cfs( CONST UB *name, UB *buf, INT max );
  100: 
  101: 
  102: 
  103: IMPORT ER tk_get_smb( void **addr, INT nblk, UINT attr );
  104: IMPORT ER tk_rel_smb( void *addr );
  105: IMPORT ER tk_ref_smb( T_RSMB *pk_rsmb );
  106: 
  107: 
  108: 
  109: IMPORT ER  _GetKernelCommonArea( CommArea **area );
  110: IMPORT int _syslog_send( const char *string, int len );
  111: 
  112: 
  113: #ifdef __cplusplus
  114: }
  115: #endif
  116: #endif