home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / PCMCIA / SOCKET / SSOS2.INC < prev    next >
Text File  |  1995-04-14  |  4KB  |  94 lines

  1. ;*DDK*************************************************************************/
  2. ;
  3. ; COPYRIGHT (C) Award Software International Inc., 1994
  4. ; COPYRIGHT    Copyright (C) 1995 IBM Corporation
  5. ;
  6. ;    The following IBM OS/2 WARP source code is provided to you solely for
  7. ;    the purpose of assisting you in your development of OS/2 WARP device
  8. ;    drivers. You may use this code in accordance with the IBM License
  9. ;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
  10. ;    Copyright statement may not be removed.;
  11. ;*****************************************************************************/
  12. ;******************************************************************************
  13. ;*
  14. ;*                              File SSOS2.INC
  15. ;*
  16. ;*                          OS2 related definitions
  17. ;*
  18. ;*
  19. ;*
  20. ;******************************************************************************
  21.  
  22. ifndef   __SSOS2_INC_
  23. __SSOS2_INC_            equ     1
  24.  
  25. MAX_MSG                 equ     4192        ; Size of message buffer
  26.                         include utilmd17.inc ; User defined messages
  27.  
  28. ;---------------------- OS/2 Init Command Request Packet ----------------------
  29.  
  30. InitPacket              struc
  31. Pkt_Len                 db      ?           ; length in bytes of packet
  32. Pkt_Unit                db      ?           ; subunit number of block device
  33. Pkt_Cmd                 db      ?           ; command code
  34. Pkt_Status              dw      ?           ; status word
  35. Pkt_Flag                db      ?           ; disk driver internal flags
  36.                         db      3 dup(?)    ; reserved
  37. Pkt_DevLink             dd      ?           ; device multiple-request link
  38.  
  39. PktInitcUnit            db      ?           ; number of units returned
  40. PktInitpEnd             dd      ?           ; On Exit:  pointer to free mem
  41.                                             ; after dev
  42.                                             ; On Entry: address of Device
  43.                                             ; Helper router
  44. PktInitParms            dd      ?           ; pointer parameters
  45. InitPacket              ends
  46.  
  47. ;----------------------------- Attach DD structure ----------------------------
  48.  
  49. AttachDD_Data           struc
  50. ADDD_Reserved1          dw      ?
  51. ADDD_Reserved2          dw      ?
  52. ADDD_Reserved3          dw      ?
  53. ADDD_IDCOff             dw      ?           ; IDC Entry point offset
  54. ADDD_IDCSeg             dw      ?           ; IDC Entry point segment
  55. ADDD_IDCDS              dw      ?           ; Protected mode DS of IDC Driver
  56. AttachDD_Data           ends
  57.  
  58. AddSS_Data              struc               ; Add Socket Services argument
  59. wAttr                   dw      ?
  60. if PCMCIA_LEVEL GT 210h
  61. pData_Off               dw      ?           ; Socket Services data area offset
  62. endif
  63. pData_Seg               dw      ?           ; Socket Services data area segment
  64. AddSS_Data              ends
  65.  
  66. AddSS                   equ     032h        ; Add Socket Services function
  67.  
  68. ;--------------------------- OS/2 Device attributes ---------------------------
  69.  
  70. DEV_IDC         equ     0100000000000000b   ; Support inter-driver communications
  71.  
  72. DATTR_SS        equ     DEV_CHAR_DEV OR DEV_IDC
  73.                                             ; Character device, supporting
  74.                                             ; inter-driver communications
  75.  
  76. DATTR_CAPS      equ     DEV_INITCOMPLETE    ; Supports INIT_COMPLETE message
  77.  
  78. ;---------------------- Device commands and return codes ----------------------
  79.  
  80. UNKNOWN_CMD             equ     3
  81. osGENERAL_FAILURE       equ     0Ch
  82.  
  83. ;-------------------------------- OS2 functions -------------------------------
  84.  
  85. stdOut                  equ     1           ; Standart Output device
  86. EXTERNDEF               GetSegmPars:near    ; Forward reference
  87. EXTERNDEF               osAddSS:far         ; Forward reference
  88.  
  89. ;------------------------------- OS2 Driver Name ------------------------------
  90.  
  91. OS2DRVNAME              equ     'SSPCIC$$'
  92.  
  93. endif                                       ; __SSOS2_INC_
  94.