This I have tried already, so I was in the right direction. I have read
the IO-mapping.txt, but when I use ioremap, the code does not compile
anymore. As soon as I include asm/io.h, I get several pages of warnings,
mentioning all kind of header files.
I have seen in the code of another driver that they use
-I/usr/src/linux/include in the Makefile. When I do that, it compiles OK,
but insmod tells unresolved symbol ioremap.
I think the way I make the code is wrong.
Bas Benschop
Faculty of Applied Physics
University of Twente
The Netherlands
Use ioremap(physical_address)
Read /usr/src/linux/Documentation/IO-mapping.txt
Read other Linux PCI drivers code.
Best regards,
--
Tomek
On Mon, 4 Sep 2000, Bas Benschop wrote:
> Maybe this question is off-topic, but I'm quite new in both rtl and
> C-programming. I have a SBS-greenspring carrier board with an DAC
> module. This board is completely memory mapped. I can get the memory
> location it uses with the pci functions, but when I try to look at this
> location I get a segmentation fault. So I need a function to tell the
> kernel that I want so much memory at that location. How to do such a
> thing?
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/