Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756511AbYKMTli (ORCPT ); Thu, 13 Nov 2008 14:41:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754616AbYKMTeW (ORCPT ); Thu, 13 Nov 2008 14:34:22 -0500 Received: from gw.goop.org ([64.81.55.164]:34414 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbYKMTeJ (ORCPT ); Thu, 13 Nov 2008 14:34:09 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 19 of 38] x86: add arch specific version of the swiotlb virt<->bus<->virt functions X-Mercurial-Node: 8405f18a95e67aa16fe1ed4436b99f247f19aa30 Message-Id: <8405f18a95e67aa16fe1.1226603417@abulafia.goop.org> In-Reply-To: Date: Thu, 13 Nov 2008 11:10:17 -0800 From: Jeremy Fitzhardinge To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Xen-devel , the arch/x86 maintainers , Ian Campbell Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 37 From: Ian Campbell These are to be used later and contain the default implementation. Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge --- arch/x86/kernel/pci-swiotlb_64.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/kernel/pci-swiotlb_64.c b/arch/x86/kernel/pci-swiotlb_64.c --- a/arch/x86/kernel/pci-swiotlb_64.c +++ b/arch/x86/kernel/pci-swiotlb_64.c @@ -23,6 +23,16 @@ return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order); } +unsigned long swiotlb_virt_to_bus(volatile void *address) +{ + return virt_to_bus(address); +} + +void * swiotlb_bus_to_virt(unsigned long address) +{ + return bus_to_virt(address); +} + static dma_addr_t swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size, int direction) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/