Peter.

I think you'll still need to use ioremap() to get a virtual address with
which to access the memory -- and don't forget to iounmap() afterwards.  If
you don't have a copy of Rubini's book, Linux Device Drivers, the Q&D
account is
        VirtualAddress = ioremap( PhysicalAddress , size );
            iounmap( VirtualAddress );
You can't access any ISA-bus memory (or PCI either) with the physical
address, you must use a virtual address.

Once you re-map the address, you can access it just like any other
kernel-addressable memory.

If you have any more questions, contact me off-list.

    Norm

----- Original Message -----
From: Peter Grössinger <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 12:03 PM
Subject: [rtl] accessing external devices from rtl


>
> hello,
>
> i would like to access an external isa device from an rt linux process. I
> am running rtl 2.3 - 2.2.14 on a mops pc104. the device is located at
> address 0xfc0000 which is in the memory hole set by the bios.
>
> would anybody know how i can access the memory of the device best ?
>
> thank you very much in advance !
>
> regards,
> peter
>
> _____________________________________________________
>
> Peter Groessinger
> Software Development
> TTTech Computertechnik AG
> Schoenbrunner Strasse 7, A-1040 Vienna, Austria
> http://www.tttech.com
>
> Phone: +43(1)585 34 34-42, Fax: +43(1)585 34 34-90
> mailto: [EMAIL PROTECTED]
> _____________________________________________________
>
> -- [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/
>
>

-- [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/

Reply via email to