home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / lan_4_c.h < prev    next >
C/C++ Source or Header  |  1998-10-01  |  4KB  |  105 lines

  1. /*------------------------------------------------------------------*/
  2. /*  EXCEPTION 802.2 DATA DECLARATIONS FOR DYNAMIC LINK ROUTINE      */
  3. /*------------------------------------------------------------------*/
  4. struct     exception_parms_dlr
  5.  {
  6.  dword      notification_flag;          /* User notification flag    */
  7.  word       ccb_count;                  /* Count of CCBs attached    */
  8.  address    event_ccb_pointer;          /* Pointer to CCB chain      */
  9.  word       buffer_count;               /* Count of buffers attached */
  10.  address    first_buffer_addr;          /* Pointer to buffer chain   */
  11.  word       rcv_frame_count;            /* Count of frames attached  */
  12.  address    rcv_frame_addr;             /* pointer to frame chain    */
  13.  };
  14.  
  15.  
  16. struct     adapter_check_dlr
  17.  {
  18.  struct     exception_parms_dlr common; /* Exception information     */
  19.  word       reason_code;                /* Adapter check reason code */
  20.  word       parameter_0;                /* Parameter 0 information   */
  21.  word       parameter_1;                /* Parameter 1 information   */
  22.  word       parameter_2;                /* Parameter 2 information   */
  23.  };
  24.  
  25.  
  26. struct     ring_network_status_dlr
  27.  {
  28.  struct     exception_parms_dlr common; /* Exception information     */
  29.  word       ring_status_code;           /* Ring/Network status code  */
  30.  };
  31.  
  32.  
  33. struct     pc_detected_errors_dlr
  34.  {
  35.  struct     exception_parms_dlr common; /* Exception information     */
  36.  byte       error_code;                 /* PC detected error code    */
  37.  byte       error_data;                 /* PC detected error data    */
  38.  byte       function_code;              /* OS function code data     */
  39.  byte       reserved;                   /* Reserved for applicatoin  */
  40.  word       os_return_code;             /* OS return code            */
  41.  word       process_id;                 /* Process ID                */
  42.  };
  43.  
  44.  
  45. struct     system_action_dlr
  46.  {
  47.  struct     exception_parms_dlr common; /* Exception information     */
  48.  byte       system_action_id;           /* System action ID          */
  49.  byte       sap_station_reset;          /* SAP station affected      */
  50.  };
  51.  
  52.  
  53. /*------------------------------------------------------------------*/
  54. /*  EXCEPTION 802.2 DATA DECLARATIONS FOR DEVICE DRIVER             */
  55. /*------------------------------------------------------------------*/
  56. struct     adapter_check_dd
  57.  {
  58.  struct     command_completion_info common;
  59.  word       reason_code;                /* Adapter check reason code */
  60.  word       parameter_0;                /* Parameter 0 information   */
  61.  word       parameter_1;                /* Parameter 1 information   */
  62.  word       parameter_2;                /* Parameter 2 information   */
  63.  };
  64.  
  65.  
  66. struct     ring_network_status_dd
  67.  {
  68.  struct     command_completion_info common;
  69.  word       ring_status_code;           /* Ring/Network status code  */
  70.  };
  71.  
  72.  
  73. struct     pc_detected_errors_dd
  74.  {
  75.  struct     command_completion_info common;
  76.  byte       error_code;                 /* PC detected error code    */
  77.  byte       error_data;                 /* PC detected error data    */
  78.  byte       function_code;              /* OS function code data     */
  79.  byte       reserved[5];                /* RESERVED                  */
  80.  };
  81.  
  82.  
  83. struct     system_action_dd
  84.  {
  85.  struct     command_completion_info common;
  86.  byte       system_action_id;           /* System action ID          */
  87.  byte       sap_station_reset;          /* SAP station affected      */
  88.  };
  89.  
  90.  
  91. /*------------------------------------------------------------------*/
  92. /*  DLC STATUS 802.2 DATA DECLARATION                               */
  93. /*------------------------------------------------------------------*/
  94. struct     dlc_status
  95.  {
  96.  word       station_id;                 /* Station ID for this event */
  97.  word       dlc_status_code;            /* DLC status code           */
  98.  byte       frmr_data[5];               /* FRaMe Reject data         */
  99.  byte       access_priority;            /* Access priority           */
  100.  byte       remote_node[6];             /* Remote Node               */
  101.  byte       remote_sap;                 /* Remote SAP                */
  102.  byte       reserved;                   /* RESERVED                  */
  103.  word       user_stat_value;            /* User defined value        */
  104.  };
  105.