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.

30 lines
630 B

  1. //
  2. // MODULE : MEMIO.H
  3. // PURPOSE : Memory Mapped IO
  4. // AUTHOR : JBS Yadawa
  5. // CREATED : 7/20/96
  6. //
  7. //
  8. // Copyright (C) 1996 SGS-THOMSON Microelectronics
  9. //
  10. //
  11. // REVISION HISTORY :
  12. //
  13. // DATE :
  14. //
  15. // COMMENTS :
  16. //
  17. #ifndef __MEMIO_H__
  18. #define __MEMIO_H__
  19. BOOL FARAPI AllocMemoryBase(DWORD addr, DWORD memsize);
  20. BOOL FARAPI FreeMemoryBase(void);
  21. void FARAPI memOutByte(WORD reg, BYTE Val);
  22. void FARAPI memOutWord(WORD reg, WORD Val);
  23. void FARAPI memOutDword(WORD reg, DWORD Val);
  24. BYTE FARAPI memInByte(WORD reg);
  25. BYTE FARAPI memInByte(WORD reg);
  26. WORD FARAPI memInWord(WORD reg);
  27. DWORD FARAPI memInDword(WORD reg);
  28. #endif
  29.