home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / system / rivatuner / RivaTuner20RC16.exe / SDK / Include / RivaTunerExports.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-21  |  4.1 KB  |  110 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // This header file defines functions exported by RivaTuner.exe 
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. #ifndef _RIVATUNER_EXPORTS_INCLUDED_
  7. #define _RIVATUNER_EXPORTS_INCLUDED_
  8.  
  9. #ifdef RIVATUNER_EXPORTS
  10. #define RIVATUNER_API extern "C" __declspec(dllexport)
  11. #else
  12. #define RIVATUNER_API extern "C" __declspec(dllimport)
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. //
  17. // host application IDs
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20.  
  21. #define RIVATUNER_HOST_APP                                        0x00000000
  22. #define MONITORINGHOSTSAMPLE_HOST_APP                            0x00000001
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. //
  26. // exported function names
  27. //
  28. /////////////////////////////////////////////////////////////////////////////
  29.  
  30. //R/O access to host application ID/version
  31.  
  32. typedef DWORD (*GET_HOST_APP_ID_PROC        )();
  33.     //DWORD GetHostAppID()
  34. typedef DWORD (*GET_HOST_APP_VERSION_PROC    )();
  35.     //DWORD GetHostAppVersion()
  36.  
  37. //R/O access to current display device identification
  38.  
  39. typedef LPCSTR    (*GET_DEVICE_NAME_PROC    )();
  40.     //LPCSTR GetDeviceName()
  41. typedef LPCSTR    (*GET_DEVICE_ID_PROC    )();
  42.     //LPCSTR GetDeviceID()
  43.  
  44. //R/W access to IO ports
  45.  
  46. typedef int                (*INP_PROC    )(unsigned short);
  47.     //int inp(unsigned short port)
  48. typedef unsigned short    (*INPW_PROC    )(unsigned short);
  49.     //unsigned short inpw(unsigned short port)
  50. typedef unsigned long    (*INPD_PROC    )(unsigned short);
  51.     //unsigned long inpd(unsigned short port)
  52.  
  53. typedef int                (*OUTP_PROC    )(unsigned short, int            );
  54.     //int outp(unsigned short port, int data)
  55. typedef unsigned short    (*OUTPW_PROC)(unsigned short, unsigned short);
  56.     //unsigned short outpw(unsigned short port, unsigned short data)
  57. typedef unsigned long    (*OUTPD_PROC)(unsigned short, unsigned long    );
  58.     //unsigned long outpd(unsigned short port, unsigned long data)
  59.  
  60. //R/W access to PCI bus configuration registers
  61.  
  62. typedef DWORD    (*READ_BUS_DATA_ULONG_PROC    )(DWORD, DWORD, DWORD);
  63.     //DWORD ReadBusDataUlong(DWORD bus, DWORD devfn, DWORD offset)
  64. typedef WORD    (*READ_BUS_DATA_USHORT_PROC    )(DWORD, DWORD, DWORD);
  65.     //WORD ReadBusDataUshort(DWORD bus, DWORD devfn, DWORD offset)
  66. typedef BYTE    (*READ_BUS_DATA_UCHAR_PROC    )(DWORD, DWORD, DWORD);
  67.     //BYTE ReadBusDataUchar(DWORD bus, DWORD devfn, DWORD offset)
  68.  
  69. typedef void (*WRITE_BUS_DATA_ULONG_PROC    )(DWORD, DWORD, DWORD, DWORD);
  70.     //void WriteBusDataUlong(DWORD bus, DWORD devfn, DWORD offset, DWORD data)
  71. typedef void (*WRITE_BUS_DATA_USHORT_PROC    )(DWORD, DWORD, DWORD, WORD    );
  72.     //void WriteBusDataUshort(DWORD bus, DWORD devfn, DWORD offset, WORD data)
  73. typedef void (*WRITE_BUS_DATA_UCHAR_PROC    )(DWORD, DWORD, DWORD, BYTE    );
  74.     //void WriteBusDataUchar(DWORD bus, DWORD devfn, DWORD offset, BYTE data)
  75.  
  76. //R/W access to current display device GPU registers 
  77.  
  78. typedef DWORD    (*READ_REGISTER_ULONG_PROC    )(DWORD);
  79.     //DWORD ReadRegisterUlong(DWORD address)
  80. typedef WORD    (*READ_REGISTER_USHORT_PROC    )(DWORD);
  81.     //WORD ReadRegisterUshort(DWORD address)
  82. typedef BYTE    (*READ_REGISTER_UCHAR_PROC    )(DWORD);
  83.     //BYTE ReadRegisterUchar(DWORD address)
  84.  
  85. typedef void    (*WRITE_REGISTER_ULONG_PROC    )(DWORD, DWORD    );
  86.     //void WriteRegisterUlong(DWORD address, DWORD data)
  87. typedef void    (*WRITE_REGISTER_USHORT_PROC)(DWORD, WORD    );
  88.     //void WriteRegisterUshort(DWORD address, WORD data)
  89. typedef void    (*WRITE_REGISTER_UCHAR_PROC    )(DWORD, BYTE    );
  90.     //void WriteRegisterUchar(DWORD address, BYTE data)
  91.  
  92. //R/O access to current display device VGA BIOS
  93.  
  94. typedef BOOL    (*ENABLE_READ_BIOS_PROC    )(BOOL );
  95.     //BYTE EnableReadBIOS(BOOL bEnable)
  96. typedef BYTE    (*READ_BIOS_PROC    )(DWORD);
  97.     //BYTE ReadBIOS(DWORD address)
  98.  
  99. //R/W access to current display device I2C buses
  100.  
  101. typedef BYTE    (*GET_I2C_BUS_NUM_PROC    )();
  102.     //BYTE GetI2CBusNum()
  103. typedef BOOL    (*READ_I2C_PROC            )(BYTE,BYTE,BYTE,LPBYTE);
  104.     //BOOL ReadI2C(BYTE bus, BYTE dev, BYTE off, LPBYTE lpData)
  105. typedef BOOL    (*WRITE_I2C_PROC        )(BYTE,BYTE,BYTE,LPBYTE);
  106.     //BOOL WriteI2C(BYTE bus, BYTE dev, BYTE off, LPBYTE lpData)
  107.  
  108. #endif
  109.  
  110.