Commit | Line | Data |
---|---|---|
69b1b781 MS |
1 | /* |
2 | * Copyright (C) 2006 Atmark Techno, Inc. | |
3 | * | |
4 | * This file is subject to the terms and conditions of the GNU General Public | |
5 | * License. See the file "COPYING" in the main directory of this archive | |
6 | * for more details. | |
7 | */ | |
8 | ||
9 | #ifndef _ASM_MICROBLAZE_DMA_H | |
10 | #define _ASM_MICROBLAZE_DMA_H | |
11 | ||
dcffc1b2 | 12 | #ifndef CONFIG_MMU |
69b1b781 MS |
13 | /* we don't have dma address limit. define it as zero to be |
14 | * unlimited. */ | |
15 | #define MAX_DMA_ADDRESS (0) | |
dcffc1b2 MS |
16 | #else |
17 | /* Virtual address corresponding to last available physical memory address. */ | |
18 | #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1) | |
19 | #endif | |
69b1b781 | 20 | |
113a591a MS |
21 | #ifdef CONFIG_PCI |
22 | extern int isa_dma_bridge_buggy; | |
23 | #else | |
24 | #define isa_dma_bridge_buggy (0) | |
25 | #endif | |
26 | ||
69b1b781 | 27 | #endif /* _ASM_MICROBLAZE_DMA_H */ |