Mail Archives: djgpp/2000/06/12/21:30:31
"Chris Fought" <cfought AT systran DOT com> writes:
> O.K., I tried using __djgpp_map_physical_memory and it isn't working for me.
> I am still trying to map in physical memory from a PCI device so that I can
> grant user level acess to it. I checked info for this function and this is
> what I find:
>
> int __djgpp_map_physical_memory(void *our_addr, unsigned long num_bytes,
> unsigned long phys_addr);
>
> The PCI card that I am trying to map has 8 megs of RAM and it located at
> 0x41000000. So I have tried doing the following:
>
> __djgpp_map_physical_memory ( 0x800000, 41000000);
>
> I know that this is missing the *our_addr argument, but I have tried placing
> different values here without any luck (can someone please tell me what the
> 'our_addr parameter is for (pleaseeeeeeee)). Are there one or more other
> functions that I have to call to set up page tables??...can anyone
> help....huge thanks in advance.
The problem is the last argument value you've given
there. 41000000. It should have been in Hex.
And you're not allowed to setup your own pages. You've got to live
with __djgpp_map_physical_memory.
- Raw text -