gonzui


Format: Advanced Search

tkernel_2/include/tk/syslib.hbare sourcepermlink (0.02 seconds)

Search this content:

    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:  *      @(#)syslib.h (T-Kernel)
   17:  *
   18:  *      System Library
   19:  */
   20: 
   21: #ifndef __TK_SYSLIB_H__
   22: #define __TK_SYSLIB_H__
   23: 
   24: #include <basic.h>
   25: #include <tk/typedef.h>
   26: 
   27: #include <tk/sysdepend/syslib_common.h>
   28: 
   29: #ifdef __cplusplus
   30: extern "C" {
   31: #endif
   32: 
   33: /*
   34:  * Task address space setting
   35:  */
   36: IMPORT ER SetTaskSpace( ID tskid );
   37: 
   38: /*
   39:  * Address space check
   40:  */
   41: IMPORT ER ChkSpaceR( CONST void *addr, INT len );
   42: IMPORT ER ChkSpaceRW( CONST void *addr, INT len );
   43: IMPORT ER ChkSpaceRE( CONST void *addr, INT len );
   44: IMPORT INT ChkSpaceBstrR( CONST UB *str, INT max );
   45: IMPORT INT ChkSpaceBstrRW( CONST UB *str, INT max );
   46: IMPORT INT ChkSpaceTstrR( CONST TC *str, INT max );
   47: IMPORT INT ChkSpaceTstrRW( CONST TC *str, INT max );
   48: 
   49: /*
   50:  * Address space lock
   51:  */
   52: IMPORT ER LockSpace( CONST void *addr, INT len );
   53: IMPORT ER UnlockSpace( CONST void *addr, INT len );
   54: 
   55: /*
   56:  * Get physical address
   57:  */
   58: IMPORT INT CnvPhysicalAddr( CONST void *vaddr, INT len, void **paddr );
   59: 
   60: /*
   61:  * Wait
   62:  */
   63: IMPORT void WaitUsec( UINT usec );      /* micro second wait */
   64: IMPORT void WaitNsec( UINT nsec );      /* nano second wait */
   65: 
   66: #ifdef __cplusplus
   67: }
   68: #endif
   69: #endif /* __TK_SYSLIB_H__ */