/*  k 1001    08.07.90   */
/* k 0019	12/07/90 	*/
/* k 0021	12/07/90	*/
/* k 0046	08/09/90	*/
/* k 1007       24/09/90        */
/* k 0072	04/11/90	*/
/* k 0097	14/12/90	*/
/* k 0119       08/02/91        */
/* k 0121	09/02/91	*/
/* k 0132	24/02/91	*/
/* k 0142       06/03/91        */
/* k 0178       14/06/91        */
/* k 1051       16/08/91        */  /* include dlc-async routine */
/* k 0301       05/02/92        */  /* timer routines */
/* k 1083       25/03/92        */  /* SOLARIS-2 adapter */
struct rqb {
  struct rqb *link;	     /* link field */
								/* @0021 */
  union  {         /* th */		/* @0046 */
    struct th th;
    char ch[12];			/* @0046 */
    struct {      /* ra *		* @0046 */
#define  OP    1        /* @0119 */   /* multiplier */
#define  NR    4        /* @0119 */
#define  FROM  64       /* @0119 */
#define  RTYPE 128      /* @0119 */
/*      unsigned op  :2;  * 0 - RET, 1 - CALL* 		* @0046 *
			* 2 - ATTACH, 3 - WAIT *	* @0046 *
      unsigned nr  :1;	* 0 - return from pcall *	* @0097 *
			* 1 - not to return from pcall *	* @0097 *
      unsigned rsv1:3;  * reserved *  	* @0097 *	* @0046 *
      unsigned from:1;  * 0 - from TOP, 1 - from BOTTOM   	* @0046 *
      unsigned type:1;  * 0 - SEG, 1 - RQB *          * @0046 */
      unsigned char code;  /* @0121 */                 /* @0119 */
      char stcb;    /* subtask number */
      union {
	short buflen;   /* buffer length for segment */
	struct  {
	  char parm1;   /* parameter #1 for rqb */
	  char parm2;   /* parameter #2 for rqb */
		} parm;
	    } rparm;
      union {
	struct {
	  char *area1;
	  short rclass;
	  short rsrlen;
	       } rqba;
	char area[8];
	struct {
	  struct hscb *hscb;
	  char rswa[4]; 					/* @0021 */
	       } hh;
        struct {            /* @0301 */
          struct hscb *hscb;/* @0301 */
          long time;        /* @0301 */
               } ti;        /* @0301 */
	     } wa;
	  } ra;
	 } th;
  struct rh rh;
  union ru ru;
	   };
#define RQB  1
#define SEG  0
#define TOP  0
#define BOTTOM 1
#define RET  0
#define CALL 1
#define ATTACH 2
#define WAIT 3
#define BUF  1
#define ST_N 20 /* 1083 *//* 1001 *//* @0100 *//* @0142 1051 */
#define APPL_CODE 1
#define PATH_CODE 2
#define SESSA_CODE  3
#define FISC_CODE  4
#define CSC_CODE 5
#define CPMGR_CODE 6
#define PU_CODE 7
#define DFC_CODE 8
#define PFROM_CODE 9
#define LAN_CODE 10
#define CONF_CODE 11
#define PINP_CODE 12
#define DLC7920_CODE 13           /*  1001   */
#define DLCTRN_CODE 14            /*  1007   */
#define DLCTRN39_CODE 15          /*  1007   */
#define DATAW_CODE 16				/* @0072 */
#define DELDCR_CODE 16                          /* @0178 */
#define ACTVT_CODE 17			/* @0100 */
#define ACTLU_CODE 18			/* @0132 *//* @0142 */
#define DLCASY_CODE 19  	    /* @1051 */
#define DLCSOLAR_CODE 20  	    /* @1083 */
#define ACTIVATE 1
#define DEACT 2
#define DISPLAY 4
