Re: Isa card access mapping

David Mosberger-Tang (davidm@AZStarNet.com)
Sat, 17 Feb 1996 13:46:40 -0700

>>>>> On Sat, 17 Feb 1996 20:59:06 +0100 (MET), Yann Doussot <doussot@via.ecp.fr> said:

Yann> As our network is Token Ring based, we try to make a
Yann> Linux Axp work with the IBM Token Ring Card. This Card works
Yann> perfectly with Linux i386. The problem we met is the address
Yann> mapping between i386 and Alpha platform. When the driver try
Yann> to access to the mmio zone it either crashes or doesn't work
Yann> (when we try to convert the address with phys_to_virt
Yann> function). What should be the right way to convert physical
Yann> addresses in the Alpha memory space ?

It's not safe to directly access memory. You'll have to change the
driver to use readb(), writeb() etc. (see include/asm-alpha/io.h).
You may also want to look at other drivers (e.g.,
drivers/char/console.c and drivers/char/selection.h).

When you get it working, please let me know so I can include it in the
FAQ.

--david



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices