home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / VCMOSPDD.H < prev    next >
C/C++ Source or Header  |  1997-04-10  |  1KB  |  57 lines

  1. /***    vcmospdd.h
  2.  *
  3.  *
  4.  *
  5.  *      Copyright (c) IBM Corporation 1993
  6.  *
  7.  *      All Rights Reserved
  8.  *
  9.  *      CMOS PDD/VDD shared structures/constants
  10.  *
  11.  */
  12.  
  13. #pragma checkout( suspend )
  14.    #ifndef __CHKHDR__
  15.       #pragma checkout( suspend )
  16.    #endif
  17. #pragma checkout( resume )
  18.  
  19. #ifndef __VCMOSPDD__
  20. #define __VCMOSPDD__
  21.  
  22. // CMOS PDD component definitions
  23.  
  24. #define CLK_NAME        "CLOCK$"        //registered name for
  25.                                         //  VDD-PDD communication
  26.  
  27.  
  28. /***    PDD function commands
  29.  *
  30.  *  Format:
  31.  *      (*fpfnClkVDDProc)(CLKCMD_*, ul1, ul2);
  32.  *
  33.  *  CLKCMD_REGISTER:
  34.  *      ul1 == segment of 16:32 VDD entry point
  35.  *      ul2 ==  offset of 16:32 VDD entry point
  36.  *
  37.  *  CLKCMD_READCMOS:
  38.  *      ul1 == f16pReadReq      //16:16 pointer to read request packet
  39.  *      ul2 == f16pCMOS         //16:16 pointer to output array
  40.  */
  41.  
  42. #define CLKCMD_REGISTER         PDDCMD_REGISTER     //register VDD
  43. #define CLKCMD_READCMOS         (CLKCMD_REGISTER+1) //read cmos contents
  44.  
  45. typedef struct readreq_s {
  46.     BYTE        rdrq_CMOSAddr;  //CMOS port number to start reading
  47.     BYTE        rdrq_nbCMOS;    //number of bytes to read
  48. } READREQ;
  49.  
  50. #endif /* __VCMOSPDD__ */
  51.  
  52. #pragma checkout( suspend )
  53.    #ifndef __CHKHDR__
  54.       #pragma checkout( resume )
  55.    #endif
  56. #pragma checkout( resume )
  57.