blob: 08c073badf198f3296b384742b98a31a1ab9b408 [file] [log] [blame]
Michal Simek69b1b782009-03-27 14:25:35 +01001/*
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
Michal Simekdcffc1b2009-05-26 16:30:29 +020012#ifndef CONFIG_MMU
Michal Simek69b1b782009-03-27 14:25:35 +010013/* we don't have dma address limit. define it as zero to be
14 * unlimited. */
15#define MAX_DMA_ADDRESS (0)
Michal Simekdcffc1b2009-05-26 16:30:29 +020016#else
17/* Virtual address corresponding to last available physical memory address. */
18#define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
19#endif
Michal Simek69b1b782009-03-27 14:25:35 +010020
21#endif /* _ASM_MICROBLAZE_DMA_H */