Re: Accessing ISA board memory

From: Richard Zidlicky (Richard.Zidlicky@stud.informatik.uni-erlangen.de)
Date: Wed Apr 05 2000 - 04:00:52 EST


>
> Richard Zidlicky wrote:
> >
> > On Tue, Apr 04, 2000 at 05:08:22PM +0200, michel wrote:
> > > Hi,
> > >
> > > I'm using a Redhat 6.1 kernel (2.2.12-20), and a ISA board with memory from
> > > 0xe00000 to 0x1000000.
> > > I'm writing a driver to this particular board and I'm not able to access to its
> > > memory.
> > > A similar driver already work on the same PC with Lynx OS, so it is not a
> > > question of hardware compatibility.
> > >
> > > I try to use adresses 0xc0e00000 to 0xc1000000 directly in my module, but it
> > > dosen't work.
> >
> > use isa_{read,write}
>
> isa_xxx is more a tool for easing the transition to newer kernels.
> Ideally ioremap and read/write[bwl] should be used instead, especially
> if you are writing a driver from scratch...

hm.. I am no expert at PCI but I am pretty sure that every PCI card/driver
would break should I try to run it with the in/out/read/write[bw] definitions
for my Q40 ISA bridge. It has a sparse maping and address translation depends
on operand size. So I would think keeping ISA and PCI stuff appart would be a
win. I would actually like to see isa_{in,out}[bw] as well.

Bye
Richard

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:14 EST