1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2006 Atmark Techno, Inc. 4 */ 5 6 #ifndef _ASM_MICROBLAZE_DMA_H 7 #define _ASM_MICROBLAZE_DMA_H 8 9 #ifndef CONFIG_MMU 10 /* we don't have dma address limit. define it as zero to be 11 * unlimited. */ 12 #define MAX_DMA_ADDRESS (0) 13 #else 14 /* Virtual address corresponding to last available physical memory address. */ 15 #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1) 16 #endif 17 18 #ifdef CONFIG_PCI 19 extern int isa_dma_bridge_buggy; 20 #else 21 #define isa_dma_bridge_buggy (0) 22 #endif 23 24 #endif /* _ASM_MICROBLAZE_DMA_H */ 25