Re: How to accesss memory map io register?
- From: "Stephan Wolf [MVP]" <stewo68@xxxxxxxxxxx>
- Date: 17 May 2006 06:13:47 -0700
hsphuah@xxxxxxx wrote:
I have a problem. I have mapped my memory io register but I do not know
how to read and update a particular io register.
See
READ_REGISTER_UCHAR
READ_REGISTER_USHORT
READ_REGISTER_ULONG
WRITE_REGISTER_UCHAR
WRITE_REGISTER_USHORT
WRITE_REGISTER_ULONG
Note: The "REGISTER" variants are used to access memory-mapped I/O
space (x86 MOV instructions) whereas the "PORT" variants are used to
access x86 I/O ports (x86 IN and OUT instructions).
This is usually subject for confusion. The I/O port space is a special
address space in the x86 that is independent of the I/O memory space.
I/O registers can exist in both port and memory I/O space. See also
"Accessing Hardware Registers"
http://www.wd-3.com/archive/PioAccess.htm
The DDK documentation on the aforementioned functions (macros) is here:
http://msdn.microsoft.com/library/> Win32 and COM Development
> Windows Driver Kit
> General Driver Development Information
> General Driver Architecture
> Kernel-Mode Driver Architecture
> Reference
> Driver Support Routines
> Summary of Kernel-Mode Support Routines
> Memory
> Device Memory Access
mmadd = MmUnmapIoSpace(pdx->pMmAdd, 5);
This function has no return value (void). Also, You are probaly talking
about MmMapIoSpace(), not "Unmap".
Stephan
.
- References:
- How to accesss memory map io register?
- From: hsphuah
- How to accesss memory map io register?
- Prev by Date: Re: How to send a simple MIDI-note on a soundcard?
- Next by Date: Re: 32 bit WinDbg on host debugging 64 bit driver on target
- Previous by thread: How to accesss memory map io register?
- Next by thread: Help needed for development of SDIO drver on WinXP
- Index(es):
Relevant Pages
|