lkml.org 
[lkml]   [2008]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 19 of 38] x86: add arch specific version of the swiotlb virt<->bus<->virt functions
    Date
    From
    From: Ian Campbell <ian.campbell@citrix.com>

    These are to be used later and contain the default implementation.

    Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    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)



    \
     
     \ /
      Last update: 2008-11-13 20:43    [W:0.029 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site