WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] where's phys_to_machine?

To: David Brown <dmlb2000@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] where's phys_to_machine?
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 15 Feb 2007 11:15:21 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Feb 2007 18:14:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9c21eeae0702141000i4dce681we0dc4590c7ca553c@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9c21eeae0702141000i4dce681we0dc4590c7ca553c@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
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

<Prev in Thread] Current Thread [Next in Thread>