Hi,
I am writing KITL Ethernet driver for CEPC platforms. I am using memory base
(BAR [0] of PCIe config space of my device which is 0x50100000.
I am using 512 MB RAM. But when in my code I try to read any device memory
using 0x50100000 base address, my WinCE machine restart
Do I need to reserve memory at address 0x50100000 ? I also used
HalTranslateBusAddress (to translate bus address to system physical address)
and MmMapIoSpace (to translate physical address to virtual address) but it
return same virtual address (0x50100000) which is my physical address.
Below is fraction of memory mapping
1. startup.asm
_OEMAddressTable:
dd 80000000h, 0, 20000000h
dd 0, 0, 0
------------------------------------------------------
2. boot.bib
MEMORY
EBOOT 00130000 00040000 RAMIMAGE
RAM 00170000 00070000 RAM
ETH_DMA 00200000 00020000 RESERVED
dwReservedArea 00000000 00220000 FIXUPVAR
3. config.bib
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 1E000000 RAM
nk.exe :dwOEMTotalRAM 0 20000000 FIXUPVAR
-------------------------------------------------------------------
Kindly help.
Sincerely,
Tushar Dave