Old fashion design for PC-104
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.

46 lines
1.5 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: KernelIO.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of KernelIO.h
  13. //----------------------------------------------------------------------------
  14. #ifndef WINIO_H
  15. #define WINIO_H
  16. #ifdef WINIO_DLL
  17. //#define WINIO_API _declspec(dllexport)
  18. #else
  19. //#define WINIO_API _declspec(dllimport)
  20. #endif
  21. #define WINIO_API
  22. extern "C"
  23. {
  24. WINIO_API bool _stdcall InitializeWinIo();
  25. WINIO_API void _stdcall ShutdownWinIo();
  26. WINIO_API PBYTE _stdcall MapPhysToLin(PBYTE pbPhysAddr, DWORD dwPhysSize, HANDLE *pPhysicalMemoryHandle);
  27. WINIO_API bool _stdcall UnmapPhysicalMemory(HANDLE PhysicalMemoryHandle, PBYTE pbLinAddr);
  28. WINIO_API bool _stdcall GetPhysLong(PBYTE pbPhysAddr, PDWORD pdwPhysVal);
  29. WINIO_API bool _stdcall SetPhysLong(PBYTE pbPhysAddr, DWORD dwPhysVal);
  30. WINIO_API bool _stdcall GetPortVal(WORD wPortAddr, PDWORD pdwPortVal, BYTE bSize);
  31. WINIO_API bool _stdcall SetPortVal(WORD wPortAddr, DWORD dwPortVal, BYTE bSize);
  32. WINIO_API bool _stdcall InstallWinIoDriver(PSTR pszWinIoDriverPath, bool IsDemandLoaded = false);
  33. WINIO_API bool _stdcall RemoveWinIoDriver();
  34. }
  35. extern bool IsNT;
  36. extern HANDLE hDriver;
  37. extern bool IsWinIoInitialized;
  38. bool _stdcall StartWinIoDriver();
  39. bool _stdcall StopWinIoDriver();
  40. #endif