Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.3 KiB

  1. //**************************************************************************
  2. //
  3. // Title : WDMKServ.h
  4. //
  5. // Date : 1997.12.02 1st making
  6. //
  7. // Author : Toshiba [PCS](PSY) Hideki Yagi
  8. //
  9. // Copyright 1997 Toshiba Corporation. All Rights Reserved.
  10. //
  11. // -------------------------------------------------------------------------
  12. //
  13. // Change log :
  14. //
  15. // Date Revision Description
  16. // ------------ ---------- -----------------------------------------------
  17. // 1997.12.02 000.0000 1st making.
  18. //
  19. //**************************************************************************
  20. class HW_DEVICE_EXTENSION;
  21. class CWDMKernelService : public IKernelService
  22. {
  23. public:
  24. CWDMKernelService(void){ m_ioBase=0; m_pHwDevExt=NULL; };
  25. ~CWDMKernelService(void){ m_ioBase=0; m_pHwDevExt=NULL; };
  26. BOOL Init( DWORD address, HW_DEVICE_EXTENSION *pHwDevExt, PCHAR szID );
  27. BOOL InitConfig( DWORD ID );
  28. BOOL SetPCIConfigData( DWORD address, DWORD data );
  29. BOOL SetPCIConfigData( DWORD address, WORD data );
  30. BOOL SetPCIConfigData( DWORD address, BYTE data );
  31. BOOL GetPCIConfigData( DWORD address, DWORD *data );
  32. BOOL GetPCIConfigData( DWORD address, WORD *data );
  33. BOOL GetPCIConfigData( DWORD address, BYTE *data );
  34. BOOL SetPortData( DWORD address, DWORD data );
  35. BOOL SetPortData( DWORD address, WORD data );
  36. BOOL SetPortData( DWORD address, BYTE data );
  37. BOOL GetPortData( DWORD address, DWORD *data );
  38. BOOL GetPortData( DWORD address, WORD *data );
  39. BOOL GetPortData( DWORD address, BYTE *data );
  40. BOOL GetTickCount( DWORD *pTickCount );
  41. BOOL Sleep( DWORD SleepCount );
  42. void DisableHwInt( void );
  43. void EnableHwInt( void );
  44. BOOL CheckInt( void );
  45. private:
  46. DWORD m_ioBase;
  47. HW_DEVICE_EXTENSION *m_pHwDevExt;
  48. DWORD m_IntCount;
  49. KIRQL m_OldIrql;
  50. PKTHREAD m_pThread;
  51. KEVENT m_Event;
  52. DWORD m_PCIConfigData;
  53. KIRQL m_Irql;
  54. CHAR m_MachineID[20]; // save Machine inf
  55. };