gonzui


Format: Advanced Search

tkernel_2/include/sys/sysdepend/tef_em1d/rominfo_depend.hbare sourcepermlink (0.01 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:  *      @(#)rominfo_depend.h (sys/EM1-D512)
   17:  *
   18:  *      ROM information
   19:  */
   20: 
   21: #ifndef __SYS_ROMINFO_DEPEND_H__
   22: #define __SYS_ROMINFO_DEPEND_H__
   23: 
   24: #ifdef __cplusplus
   25: extern "C" {
   26: #endif
   27: 
   28: /*
   29:  * ROM information
   30:  */
   31: typedef struct {
   32:         FP     kernel;             /* Kernel startup address */
   33:         UB     *sysconf;   /* SYSCONF top */
   34:         UB     *devconf;   /* DEVCONF top */
   35:         void   *userarea;        /* RAM user area top */
   36:         FP     userinit;   /* User initialization program address */
   37:         FP     resetinit;  /* Reset initialization program address */
   38:         VW     rsv[10];    /* Reserved (always 0) */
   39:         UW     rd_type;    /* ROM disk type */
   40:         UW     rd_blksz;   /* ROM disk block size */
   41:         UW     rd_saddr;   /* ROM disk start address */
   42:         UW     rd_eaddr;   /* ROM disk end address */
   43:         VW     rsv2[12];   /* Reserved (always 0) */
   44: } RomInfo;
   45: 
   46: /* Start address of ROMInfo */
   47: #define ROMInfo ( (RomInfo*)0x70020000 )
   48: 
   49: 
   50: /* common tag in DEVCONF[] --> config/src/sysdepend/<TARGET>/DEVCONF */
   51: #define DCTAG_DEBUGMODE ((UB*)"DEBUGMODE")      /* Debug mode (1:debug, 0:normal) */
   52: 
   53: /* common tag in SYSCONF[] --> config/src/sysdepend/<TARGET>/SYSCONF */
   54: /* Product information */
   55: #define SCTAG_TSYSNAME  ((UB*)"TSysName")        /* System name */
   56: 
   57: #define SCTAG_MAKER     ((UB*)"Maker")              /* Maker Code */
   58: #define SCTAG_PRODUCTID ((UB*)"ProductID")      /* Kernel Identifier */
   59: #define SCTAG_SPECVER   ((UB*)"SpecVer")  /* Specification Version */
   60: #define SCTAG_PRODUCTVER ((UB*)"ProductVer")    /* Product Version */
   61: #define SCTAG_PRODUCTNO ((UB*)"ProductNo")      /* Product Number [0]-[3] */
   62: 
   63: 
   64: /* T-Kernel/OS */
   65: #define SCTAG_TMAXTSKID ((UB*)"TMaxTskId")      /* Maximum task ID */
   66: #define SCTAG_TMAXSEMID ((UB*)"TMaxSemId")      /* Maximum semaphore ID */
   67: #define SCTAG_TMAXFLGID ((UB*)"TMaxFlgId")      /* Maximum event flag ID */
   68: #define SCTAG_TMAXMBXID ((UB*)"TMaxMbxId")      /* Maximum mail box ID */
   69: #define SCTAG_TMAXMTXID ((UB*)"TMaxMtxId")      /* Maximum mutex ID */
   70: #define SCTAG_TMAXMBFID ((UB*)"TMaxMbfId")      /* Maximum message buffer ID */
   71: #define SCTAG_TMAXPORID ((UB*)"TMaxPorId")      /* Maximum rendezvous port ID */
   72: #define SCTAG_TMAXMPFID ((UB*)"TMaxMpfId")      /* Maximum fixed size memory pool ID */
   73: #define SCTAG_TMAXMPLID ((UB*)"TMaxMplId")      /* Maximum variable size memory pool ID */
   74: #define SCTAG_TMAXCYCID ((UB*)"TMaxCycId")      /* Maximum cyclic handler ID */
   75: #define SCTAG_TMAXALMID ((UB*)"TMaxAlmId")      /* Maximum alarm handler ID */
   76: #define SCTAG_TMAXRESID ((UB*)"TMaxResId")      /* Maximum resource group ID */
   77: #define SCTAG_TMAXSSYID ((UB*)"TMaxSsyId")      /* Maximum sub system ID */
   78: #define SCTAG_TMAXSSYPRI ((UB*)"TMaxSsyPri")    /* Maximum sub system priority */
   79: 
   80: #define SCTAG_TSYSSTKSZ ((UB*)"TSysStkSz")      /* Default system stack size (byte) */
   81: #define SCTAG_TSVCLIMIT ((UB*)"TSVCLimit")      /* SVC protection level */
   82: #define SCTAG_TTIMPERIOD ((UB*)"TTimPeriod")    /* Timer interval (msec) */
   83: 
   84: 
   85: /* T-Kernel/SM */                               /* Maximum number of ... */
   86: #define SCTAG_TMAXREGDEV ((UB*)"TMaxRegDev")    /* devices registration */
   87: #define SCTAG_TMAXOPNDEV ((UB*)"TMaxOpnDev")    /* devices open */
   88: #define SCTAG_TMAXREQDEV ((UB*)"TMaxReqDev")    /* device requests */
   89: 
   90: #define SCTAG_TDEVTMBFSZ ((UB*)"TDEvtMbfSz")    /* Event notification message */
   91:                                                 /* buffer size (byte), */
   92:                                                 /* Maximum length of message (byte) */
   93: 
   94: 
   95: /* Task Event(1-8) */                           /* Message management */
   96: #define SCTAG_TEV_MSGEVT ((UB*)"TEV_MsgEvt")    /* Receive message */
   97: #define SCTAG_TEV_MSGBRK ((UB*)"TEV_MsgBrk")    /* Release of an message waiting state */
   98: 
   99: #define SCTAG_TEV_GDI    ((UB*)"TEV_GDI") /* GDI interface */
  100: #define SCTAG_TEV_FFLOCK ((UB*)"TEV_FFLock")    /* Release of an FIFO lock waiting state */
  101: 
  102: 
  103: /* Segment manager */
  104: #define SCTAG_REALMEMEND ((UB*)"RealMemEnd")    /* RAM bottom address (logical address) */
  105: 
  106: 
  107: /* Stack Size for ARM */
  108: #define SCTAG_ABTSTKSZ  ((UB*)"AbtStkSz")        /* Abort(MMU) */
  109: #define SCTAG_UNDSTKSZ  ((UB*)"UndStkSz")        /* Undefined instruction */
  110: #define SCTAG_IRQSTKSZ  ((UB*)"IrqStkSz")        /* IRQ interrupt */
  111: #define SCTAG_FIQSTKSZ  ((UB*)"FiqStkSz")        /* FIQ interrupt */
  112: 
  113: 
  114: #ifdef __cplusplus
  115: }
  116: #endif
  117: #endif /* __SYS_ROMINFO_DEPEND_H__ */