Re: mmaping an IO port device

2007-12-12 Thread Aras Vaichas
Aras Vaichas wrote: Hi, Can I implement mmap with an io port connected device on an x86 based CPU? I'll just add one more bit of information which might effect the situation. The CPU I am using is an Elan SC520 microcontroller. It seems that this CPU is able remap the General Pu

Re: mmaping an IO port device

2007-12-12 Thread Aras Vaichas
Aras Vaichas wrote: I then call ioread16(FPGA_base + FPGA_register) for both x86 and ARM and it all works perfectly. No problems there. Oop, sorry I lied a little. I actually use inw/outw for the x86 version. e.g. inw( FPGA_REG_IO_BASE + FPGA_register); but the main problem still stands

mmaping an IO port device

2007-12-12 Thread Aras Vaichas
Hi, Can I implement mmap with an io port connected device on an x86 based CPU? Background: I've got a device driver which can be compiled for either x86 or ARM. The driver provides an interface to an FPGA via either an IO port (0x180) on the x86 or as a memory mapped SRAM-like device (0x3000