|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
Re: [Xen-ia64-devel] where's phys_to_machine?
On Wed, Feb 14, 2007 at 10:00:27AM -0800, David Brown wrote:
> This maybe an odd question but there are several patches for drivers
> out there that have code in them for xen support (ie quadrics). The
> drivers call phys_to_machine however I'm having problems finding that
> symbol in the xen-ia64-unstable tree.
>
> In the i386 tree its located under
> include/asm-i386/mach-xen/asm/maddr.h. However, its not found under
> the ia64 tree.
>
> Any ideas on what the quadrics drivers should be calling? or is this a
> function that has yet to be added to the xen-ia64-unstable tree?
>
> Any help would be appreciated.
Probably the ia64 counter part is phys_to_machine_for_dma().
It convers pseudo physical address to machine address.
In general, device drivers shouldn't call phys_to_machine() directly.
For dma, device drivers should use dma api.
For IO area access, device drivers should use ioremap()/iounmap().
This is only the theory and presumably you already know it.
The device which you are playing with might have strange aspects,
I guess.
--
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
|
|
|
|