Re: Mapping large PCMCIA common memory in NDIS miniport by Seung
Seung
Thu Apr 01 12:33:01 CST 2004
The problem will even be more extensive as the size of the PCMCIA memory=
=
window is platform specific. Generally you should have enough window spa=
ce =
as early Flash cards were flash chip arrays mapped into the local =
processor space (up to 64MB). But as these cards become more scarce ther=
e =
isn't much of a need to make the window large anymore. You could try to =
take the base address which should just be the physical address (system =
bus address) and perform your own virtualalloc/copy. You also have to =
consider that you are operating in the device.exe process, you could be =
running out of virtual memory or mapping resources.
On Wed, 31 Mar 2004 23:21:07 -0800, JM Son =
<minibrain(removethis_nospam)@hotmail.com> wrote:
> Dear all,
>
> I'm porting PCMCIA wireless LAN adapter to Windows CE 4.2 on Samsung =
> SMDK2410 board
>
> Since, our PCMCIA adapter use large common memmory about 2.25MB,
> I tried to map common memory space in MiniportInitialize() with =
> NdisMMapIoSpace() function like this:
> --------------------
> Status =3D NdisMMapIoSpace( (PVOID *)(&(pAdapter->pMemVirtual)),
> pAdapter->MiniportAdapterHandle,
> pAdapter->MemBaseAddr,
> pAdapter->MemSpaceSize); // MemSpaceSize =
=3D =
> 0x240000
> -------------------
> but, this code generates OUT_OF_RESOURCE error.
>
> I suppose that the reason of error is the memory size is too large.
>
> Is it possible to map such large size of PCMCIA common memory?
> If possible, how can I do that?
>
>
> Thanks in advance...
-- =
Seung Yi
Chief Technologist
Codetelligence, Inc.
Web : www.codetelligence.com