Hi there
I have a question about IISR and Hardware Access, in an normal Driver i use
MmMapIoSpace for hardware register access (GPIO Regs as a sample).
But how can i access such a Hardware register in an IISR.
Because MmMapIoSpace is for userMode and a IISR Runs in KernelMode or im
wrong?

Thanks for your help
Patrick

RE: Hardware Register Access in an installable ISR by Patrick

Patrick
Tue Oct 31 05:50:02 CST 2006

Hi there

The IISR runs in Kernelmode so it is possible to access direct the virtual
address:
g_pGPIORegs =(XLLP_GPIO_T *) 0xA5300000;

Patrick


"Patrick" wrote:

> Hi there
> I have a question about IISR and Hardware Access, in an normal Driver i use
> MmMapIoSpace for hardware register access (GPIO Regs as a sample).
> But how can i access such a Hardware register in an IISR.
> Because MmMapIoSpace is for userMode and a IISR Runs in KernelMode or im
> wrong?
>
> Thanks for your help
> Patrick

Re: Hardware Register Access in an installable ISR by Steve

Steve
Tue Oct 31 09:22:30 CST 2006

>The IISR runs in Kernelmode so it is possible to access direct the virtual
>address:
>g_pGPIORegs =(XLLP_GPIO_T *) 0xA5300000;
Note: That assumes that something has already mapped the address into the
static mapping (on x86 and ARM the OAL can do that in OEMAddressTable) or
the driver has called BusTransBusAddrToStatic() to map it to a static
virtual address that an ISR can access.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: Hardware Register Access in an installable ISR by Patrick

Patrick
Wed Nov 01 02:31:02 CST 2006

Thanks you for your help Steve Maillet

greeting from Switzerland
Patrick