home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / vcmospdd.h < prev    next >
C/C++ Source or Header  |  1999-03-15  |  1KB  |  65 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. /* NOINC */
  14. #if __IBMC__ || __IBMCPP__
  15.    #pragma info( none )
  16.       #ifndef __CHKHDR__
  17.          #pragma info( none )
  18.       #endif
  19.    #pragma info( restore )
  20. #endif
  21. /* INC */
  22.  
  23. #ifndef __VCMOSPDD__
  24. #define __VCMOSPDD__
  25.  
  26. // CMOS PDD component definitions
  27.  
  28. #define CLK_NAME        "CLOCK$"        //registered name for
  29.                                         //  VDD-PDD communication
  30.  
  31.  
  32. /***    PDD function commands
  33.  *
  34.  *  Format:
  35.  *      (*fpfnClkVDDProc)(CLKCMD_*, ul1, ul2);
  36.  *
  37.  *  CLKCMD_REGISTER:
  38.  *      ul1 == segment of 16:32 VDD entry point
  39.  *      ul2 ==  offset of 16:32 VDD entry point
  40.  *
  41.  *  CLKCMD_READCMOS:
  42.  *      ul1 == f16pReadReq      //16:16 pointer to read request packet
  43.  *      ul2 == f16pCMOS         //16:16 pointer to output array
  44.  */
  45.  
  46. #define CLKCMD_REGISTER         PDDCMD_REGISTER     //register VDD
  47. #define CLKCMD_READCMOS         (CLKCMD_REGISTER+1) //read cmos contents
  48.  
  49. typedef struct readreq_s {
  50.     BYTE        rdrq_CMOSAddr;  //CMOS port number to start reading
  51.     BYTE        rdrq_nbCMOS;    //number of bytes to read
  52. } READREQ;
  53.  
  54. #endif /* __VCMOSPDD__ */
  55.  
  56. /* NOINC */
  57. #if __IBMC__ || __IBMCPP__
  58.    #pragma info( none )
  59.       #ifndef __CHKHDR__
  60.          #pragma info( restore )
  61.       #endif
  62.    #pragma info( restore )
  63. #endif
  64. /* INC */
  65.