⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win_ss.x

📁 中国石油二期加油站IC系统后台通讯软件
💻 X
字号:
/********************************************************************20**
 
     Name:     WINSS -- implementation specific definitions
 
     Type:     C include file
 
     Desc:     Data structure definitions demanded by systems services.
               The contents of these are for the MTSS implementation.
 
     File:     win_ss.x
 
     Sid:      win_ss.x 1.1  -  7/13/01 10:33:13
 
     Prg:      kp
 
*********************************************************************21*/


#ifndef __WINSSX__
#define __WINSSX__

/* TAPA task entry doesn't need anything extra for MTSS */
typedef S8              SsdTTskEntry;


/* System task entry */
typedef struct ssdSTskEntry
{
    HANDLE           tHnd;
    DWORD            tId;
    Ent              ent;
    Inst             inst;
    SLockId          lock;

} SsdSTskEntry;


#ifdef SS_DRVR_SUPPORT

/* Driver task entry */
typedef struct ssdDrvrTskEntry
{
    Bool flag;

} SsdDrvrTskEntry;
#endif


/* timer entry--MTSS uses common timers */
typedef struct ssdTmrEntry
{
    CmTimer              timers[TMR_DEF_MAX];

} SsdTmrEntry;


/* dynamic pool doesn't need anything extra for MTSS */
typedef S8              SsdDPoolEntry;


/* static pool -- information for the memory management scheme */
typedef S8              SsdSPoolEntry;


/* generic pool doesn't need anything extra for MTSS */
typedef S8              SsdPoolEntry;


/* region doesn't need anything extra for MTSS */
typedef S8              SsdRegionEntry;


/* system services control point--tick count, timer implementation,
 *   console implementation, IS task implementation
 */
typedef struct ssdOs
{
    unsigned    randSeed;               /* random number generator seed */

    Ticks       sysTicks;               /* elapsed system ticks */

    HANDLE      tmrHdlrTID;             /* timer handler thread */
    CmTqCp      tmrTqCp;                /* common timer control point */
    CmTqType    tmrTq[SS_MAX_TMRS];     /* common timer queue */

    SEM_ID      ssStarted;              /* posted when SS completes init */
#ifdef CONAVL
    FILE        *conInFp;               /* console input file pointer */
    FILE        *conOutFp;              /* console output file pointer */
    HANDLE      conHdlrTID;             /* console handler thread ID */
#endif

#ifndef NOFILESYS
    FILE        *fileOutFp;             /* output file pointer */
#endif

#ifdef SS_DRVR_SUPPORT
    HANDLE      isTskHdlrTID;           /* IS task handler thread ID */
    int         isFildes[2];               /* pipe for SSetIntPend to isTskHdlr */
#endif

} SsdOs;


/*** add by shang, 2002-1-10 ***/

typedef struct
{
    Size         bktSize;
    U16          numBlks;
    Size         heapSize;
} RegionCfg_s;
/*** add by shang is over ***/




#endif  /*  __WINSSX__  */


  
/********************************************************************30**

         End of file: win_ss.x 1.1  -  7/13/0110:33:13

*********************************************************************31*/


/********************************************************************40**

        Notes:

*********************************************************************41*/

/********************************************************************50**

*********************************************************************51*/

   
/********************************************************************60**

        Revision history:

*********************************************************************61*/

/********************************************************************90**

     ver       pat    init                  description
------------ -------- ---- ----------------------------------------------

*********************************************************************91*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -