home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / HFILES.ZIP / LAN_5_C.H < prev    next >
C/C++ Source or Header  |  1990-07-19  |  5KB  |  99 lines

  1. /*-------------------------------------------------------------------*/
  2. /*                TRACE 802.2 DATA DECLARATIONS                      */
  3. /*-------------------------------------------------------------------*/
  4.  
  5. struct     pdt_trace_on_parms
  6.  {
  7.  word       cmd_table_length;           /* Length of command table   */
  8.  word       reserved1;                  /* RESERVED                  */
  9.  dword      start_tick_0;               /* Adapter 0 timer start cnt */
  10.  dword      stop_tick_0;                /* Adapter 0 timer stop cnt  */
  11.  dword      start_tick_1;               /* Adapter 1 timer start cnt */
  12.  dword      stop_tick_1;                /* Adapter 1 timer stop cnt  */
  13.  byte       reserved2[4];               /* RESERVED                  */
  14.  byte       reserved3[8];               /* Reserved for application  */
  15.  dword      cmd_table_addr;             /* Address of command table  */
  16.  };
  17.  
  18. struct     llc_trace_header
  19.  {
  20.  byte       trace_code;                 /* Trace code                */
  21.  byte       adapter_number;             /* Adapter number            */
  22.  byte       adapter_work_flag;          /* Adapter work flag         */
  23.  };
  24.  
  25. struct     ccb_trace
  26.  {
  27.  struct     llc_trace_header common;    /* LLC trace header          */
  28.  byte       event_code;                 /* READ event code           */
  29.  byte       ccb_command_code;           /* CCB command code          */
  30.  byte       rc_correlator;              /* Return code / correlator  */
  31.  byte       element_flag;               /* Queue element flag        */
  32.  byte       application_id;             /* Application ID            */
  33.  word       process_id;                 /* Process ID                */
  34.  dword      ccb_virtual_addr;           /* Virtual address of CCB    */
  35.  word       timer_tick_low_word;        /* Low word of timer tick    */
  36.  };
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. struct     receive_trace
  44.  {
  45.  struct     llc_trace_header common;    /* LLC trace header          */
  46.  byte       event_code;                 /* READ event code           */
  47.  word       reserved;                   /* RESERVED                  */
  48.  byte       element_flag;               /* Queue element flag        */
  49.  byte       application_id;             /* Application ID            */
  50.  word       process_id;                 /* Process ID                */
  51.  dword      sap_virtual_addr;           /* Virtual address of SAP CB */
  52.  word       timer_tick_low_word;        /* Low word of timer tick    */
  53.  };
  54.  
  55. struct     status_exception_trace
  56.  {
  57.  struct     llc_trace_header common;    /* LLC trace header          */
  58.  byte       event_code;                 /* READ event code           */
  59.  byte       event_subcode;              /* READ event sub-code       */
  60.  byte       reserved;                   /* RESERVED                  */
  61.  byte       element_flag;               /* Queue element flag        */
  62.  byte       application_id;             /* Application ID            */
  63.  word       status;                     /* Status type               */
  64.  dword      status_data;                /* Status information        */
  65.  word       timer_tick_low_word;        /* Low word of timer tick    */
  66.  };
  67.  
  68. struct     timer_trace
  69.  {
  70.  struct     llc_trace_header common;    /* LLC trace header          */
  71.  byte       reserved1;                  /* RESERVED                  */
  72.  byte       pisr_high;                  /* High byte of PISR         */
  73.  byte       pisr_low;                   /* Low byte of PISR          */
  74.  word       timer_count;                /* Number of timer interrupts*/
  75.  byte       reserved2[6];               /* RESERVED                  */
  76.  word       timer_tick_low_word;        /* Low word of timer tick    */
  77.  };
  78.  
  79. struct     interrupt_received
  80.  {
  81.  struct     llc_trace_header common;    /* LLC trace header          */
  82.  byte       activation_reason_code;     /* Activation Record/Reason  */
  83.  byte       associated_command_code;    /* Command code              */
  84.  byte       return_code;                /* Return code               */
  85.  byte       command_specific[4];        /* Command specific data     */
  86.  dword      stack_ss_sp;                /* Stack selector/offset     */
  87.  word       timer_tick_low_word;        /* Low word of timer tick    */
  88.  };
  89.  
  90.  
  91.  
  92. struct     interrupt_error
  93.  {
  94.  struct     llc_trace_header common;    /* LLC trace header          */
  95.  byte       srb_ssb_arb_wk_area[11];    /* Work area for SRB/SSB/ARB */
  96.  word       timer_tick_low_word;        /* Low word of timer tick    */
  97.  };
  98.  
  99.