lkml.org 
[lkml]   [2009]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 27/30] microblaze_mmu_v1: Update dma.h for MMU
    Date
    From: Michal Simek <monstr@monstr.eu>

    Signed-off-by: Michal Simek <monstr@monstr.eu>
    ---
    arch/microblaze/include/asm/dma.h | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/arch/microblaze/include/asm/dma.h b/arch/microblaze/include/asm/dma.h
    index 0967fa0..08c073b 100644
    --- a/arch/microblaze/include/asm/dma.h
    +++ b/arch/microblaze/include/asm/dma.h
    @@ -9,8 +9,13 @@
    #ifndef _ASM_MICROBLAZE_DMA_H
    #define _ASM_MICROBLAZE_DMA_H

    +#ifndef CONFIG_MMU
    /* we don't have dma address limit. define it as zero to be
    * unlimited. */
    #define MAX_DMA_ADDRESS (0)
    +#else
    +/* Virtual address corresponding to last available physical memory address. */
    +#define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
    +#endif

    #endif /* _ASM_MICROBLAZE_DMA_H */
    --
    1.5.5.1


    \
     
     \ /
      Last update: 2009-04-27 11:51    [W:0.036 / U:29.452 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site