Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay A Estabrook <jestabro@amt.tay1.dec.com>
Subject: RE: ISA card access mapping
Date: Sat, 17 Feb 1996 16:21:59 -0500	[thread overview]
Message-ID: <9602172120.AA14396@amt.tay1.dec.com> (raw)

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++

             reply	other threads:[~1996-02-17 21:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-17 21:21 Jay A Estabrook [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-02-17 20:46 Isa card access mapping David Mosberger-Tang
1996-02-17 19:59 Yann Doussot
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox