Path: news.mitre.org!blanket.mitre.org!agate!awabi.library.ucla.edu!208.134.241.18!newsfeed.internetmci.com!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!News1.Ottawa.iSTAR.net!news.istar.net!news.achilles.net!not-for-mail From: Michael Polo Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: Bus Master DMA: memory limit to HalAllocateCommonBuffer? Date: Fri, 07 Nov 1997 10:37:55 -0500 Organization: Achilles Internet Ltd. Lines: 36 Message-ID: <346335D2.FC81E8E2@vitana.com> References: <34623fed.0@news.randori.com> NNTP-Posting-Host: ottawa2-5.achilles.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (WinNT; U) I had a similar problem allocating memory using the function mmMapIoSpace or something. While I did have less memory, paging should allow you to allocate as much as 4 gigs. To solve my problem I increased the number of pages via the system registry as well as increasing the virtual memory allocation. After that I had no problems. Hope this helps..... Mike Polo Anthony Corriveau wrote: > I'm writing a simple Kernel Mode driver to support a PCI busmaster DMA > device. > The call to "HalAllocateCommonBuffer" fails if I try to allocate more than > 18meg. > Sometimes it will fail trying to allocate as little as 4meg. I have 128 meg > of ram, > so I should have plenty of free physical memory. > The call to "HalGetAdapter()" always returns NumberOfMapRegisters=0x10. > This doesn't follow what is > in the documentation, which says MaxMemory=NumberOfMapRegisters*PAGE_SIZE. > So my maximum should be 0x10000 or > 64k bytes, not 18meg!. > Does anyone know what the limits of HalAllocateCommonBuffer are? > Does any have any more details on this? the DDK is pretty cryptic. > > Thanks , > > Anthony Corriveau > acorriveau@ldg.com > SBS Embedded Computers > Raleigh NC