Share via


BusTransBusAddrToStatic (Windows CE 5.0)

Send Feedback

This function translates a bus address to a system address. Then, it creates a static, process independent, virtual address mapping for that address.

BOOL BusTransBusAddrToStatic (  IN HANDLE hBusAccess,  IN INTERFACE_TYPE InterfaceType,  IN ULONG BusNumber,  IN PHYSICAL_ADDRESS BusAddress,  IN ULONG Length,  IN OUT PULONG AddressSpace,  OUT PPVOID MappedAddress);

Parameters

  • hBusAccess
    [in] Handle obtained from CreateBusAccessHandle.
  • InterfaceType
    [in] Bus type specified by an element of INTERFACE_TYPE.
  • BusNumber
    [in] Bus number where the device resides.
  • BusAddress
    [in] Bus-relative address of registers and ports on the device. The PHYSICAL_ADDRESS is represented by 40 bits. BusTransBusAddrToStatic calls CreateStaticMapping, which right-shifts (>>) the 40-bit address by 8 bits.
  • Length
    [in] Number of bytes to map on the device.
  • AddressSpace
    [in, out] Flag to indicate whether what this function maps to is in I/O space or memory space. On input, this is an initialized variable. On output, this is the flag. AddressSpace 0x0 indicates memory space and AddressSpace 0x1 indicates I/O space.
  • MappedAddress
    [out] Virtual address where this function mapped the physical address.

Return Values

Returns TRUE if successful. Otherwise, it returns FALSE.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: CEDDK.h.

See Also

CreateBusAccessHandle | CreateStaticMapping | INTERFACE_TYPE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.