Re: HalTranslateBusAddress

From: K. S. Huang (ks_huang_at_AlphaNetworks.com_remove.this)
Date: 10/29/04


Date: Fri, 29 Oct 2004 17:19:58 +0800

The HalTranslateBusAddress will translate the specific bus address into the
system's (usually the CPU) address space.

But no matter the Bus Address or System address handled by
HalTranslateBusAddress are all physical address.
You must use the value returned for TranslatedAddr in a subsequent call to
MmMapIoSpace if the AddressSpace value returns 0, which indicates that it is
a memory address.

you may use the TransBusAddrToVirtual instead of calling
HalTranslateBusAddress and MmMapIoSpace.
the TransBusAddrToVirtual will invoke the MmMapIoSpace if needed.

"Manoj" <Manoj@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D
:F86272FA-1B07-447B-903F-2E847DA2E44B@microsoft.com...
> what is the function of HalTranslateBusAddress ,can u explain in
detail...
> since i am a beginner in wince ,i really want to know the exact working
of
> the function in detail.....
>
>
> Thanking you



Relevant Pages

  • Re: HalTranslateBusAddress
    ... Please use bus function in CEDDK. ... The different between hal function and bus bus function is bus function will ... route to Bus driver before calling into OAL. ... thing for you while HalTranslateBusAddress can't. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Accessing BIOS area
    ... >> You can use MmMapIoSpace to map physical memory pages into system ... >> so, assuming you already know where the bios is, you can map it into ... >based system, translating an I/O space will use HalTranslateBusAddress, ...
    (microsoft.public.development.device.drivers)