Home |
RTTarget-32 Programming Manual Function RTPCSetConfigRegister Function RTPCMapMemoryWindow System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTPCMapMemoryWindowFunction RTPCMapMemoryWindow maps a memory region of the PC card into the computer's address space: void * RTPCMapMemoryWindow(int Socket, int Window, void * HostAddress, DWORD CardAddress, DWORD Size); ParametersSocketThe socket number to map. WindowMust be in the range 0 to 3. Although PCMCIA controllers support five memory windows, the last window is reserved by the driver to map the card's CIS. HostAddressPoints to the address of the window in the computer's address space. The application must initialize this value to a suitable location (i.e., an address not currently in use by any installed memory or device). If this value is initialized to NULL and paging is enabled, function RTPCMapMemoryWindow will allocate a suitable region of uncommitted memory. Must be a multiple of 4096. CardAddressThe address of the memory to map in the PC card's address space. Must be a multiple of 4096. SizeSpecifies the window's size in bytes. Must be a multiple of 4096. HostAddress + Size and CardAddress + Size must be below 64M as the PCMCIA controller only supports 26-bit addresses. return valueThe function returns the address of the mapped window, or NULL if the function has failed.
|