From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9602172120.AA14396@amt.tay1.dec.com> Date: Sat, 17 Feb 1996 16:21:59 -0500 From: Jay A Estabrook Subject: RE: ISA card access mapping Yann, > As our network is Token Ring based, we try to make a Linux Axp work >with the IBM Token Ring Card. This Card works perfectly with Linux i386. >The problem we met is the address mapping between i386 and Alpha >platform. When the driver try to access to the mmio zone it either >crashes or doesn't work (when we try to convert the address with >phys_to_virt function). What should be the right way to convert physical >addresses in the Alpha memory space ? It's probably worth taking a look at the drivers that have been ported to Alpha, to get an idea about this. In the network area, the DE4X5 and NE2000 drivers are known to work. But, for expediency's sake... On the Alphas, you need to use other than just the physical address of a buffer, for the card to DMA from/to. For this purpose, the routine is called "virt_to_bus()" and looks just like "virt_to_phys()", only it returns the magic "cookie" which you give to the PCI/ISA device, for it to use to access host memory. This *will* look different on different Alpha platforms, so it's necessary to use that interface for portability. It is identical to the "virt_to_phys()" for INTEL machines, don't know what is is for the others... Good luck. --Jay++