home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / devnews / vol2 / sample3 / vdftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-28  |  3.4 KB  |  73 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /*                     IBM Sample Virtual Device Driver                       */
  4. /*                                                                            */
  5. /*                 Copyright (c) IBM Corporation 1993                         */
  6. /*                          All Rights Reserved                               */
  7. /*                                                                            */
  8. /*   DISCLAIMER OF WARRANTIES.  The following [enclosed] code is              */
  9. /*   sample code created by IBM Corporation. This sample code is not          */
  10. /*   part of any standard or IBM product and is provided to you solely        */
  11. /*   for  the purpose of assisting you in the development of your             */
  12. /*   applications.  The code is provided "AS IS", without                     */
  13. /*   warranty of any kind.  IBM shall not be liable for any damages           */
  14. /*   arising out of your use of the sample code, even if they have been       */
  15. /*   advised of the possibility of   such damages.                            */
  16. /*                                                                            */
  17. /******************************************************************************/
  18. /*      VDFT.H                                                                */
  19. /*      MVDM Virtual 3270 Device Driver Exported Definitions                  */
  20. /*                                                                            */
  21. /*      For include file hierarchy, see MVDM.H                                */
  22. /******************************************************************************/
  23.  
  24. /***    VDFT constants   ***/
  25.  
  26. #define TRUE            1
  27. #define FALSE           0
  28. #define ABORT           0x0002      /*  response value from VDHPopup       */
  29. #define RETRY           0x0004      /*  response value from VDHPopup       */
  30. #define IGNORE          0x0008      /*  response value from VDHPopup       */
  31.  
  32. #define DFT_NAME  "PDD.SYS"         /* name of PDD              */
  33.  
  34. #define StatusReg  0X2d0            /* for now ???? status reg addr   */
  35. #define FirstReg   0x2d1            /* first non status reg to monitor*/
  36.  
  37. #define numPorts   10               /* number of ports to hook  */
  38. #define numstat    1                /* number of status ports   */
  39. #define DFT_IRQ    9                /* IRQ for DFT adapter      */
  40.  
  41. #define ENABLE_INTS     1           /* function code for enable  */
  42. #define DISABLE_INTS    2           /* function code for disable  */
  43.  
  44. /***    VDFT data types  ***/
  45.  
  46. typedef USHORT VDFTPDB;             /* define PDB type */
  47.  
  48.  
  49. /***    VDFT function prototypes    ***/
  50.  
  51. BYTE HOOKENTRY VDFTDaIn( ULONG , PCRF );
  52. BYTE HOOKENTRY VDFTStIn( ULONG , PCRF );
  53.  
  54. VOID HOOKENTRY VDFTDaOut( BYTE, ULONG, PCRF );
  55. VOID HOOKENTRY VDFTStOut( BYTE, ULONG, PCRF );
  56.  
  57. BOOL HOOKENTRY VDFTCreate(HVDM);
  58. BOOL HOOKENTRY VDFTTerminate(HVDM);
  59. BOOL HOOKENTRY VDFTPDBChange(HVDM, VDFTPDB);
  60. BOOL HOOKENTRY VDFTPDBDestroy(HVDM, VDFTPDB);
  61.  
  62. BOOL PRIVENTRY RequestDirect();
  63.  
  64. SBOOL VDDENTRY VDFTPDDProc(ULONG, F16PVOID, F16PVOID );
  65. VOID HOOKENTRY VDFT_EOI(PCRF);
  66. VOID HOOKENTRY VDFT_IRET (PCRF);
  67.  
  68. BOOL EXPENTRY Start_Here(PSZ);
  69.  
  70. BOOL PRIVENTRY RequestDirect( VOID );
  71. BOOL PRIVENTRY EnableInterrupts(VOID );
  72. BOOL PRIVENTRY DisableInterrupts(VOID );
  73.