^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ASM_GENERIC_DMA_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ASM_GENERIC_DMA_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * This file traditionally describes the i8237 PC style DMA controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Most architectures don't have these any more and can get the minimal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * implementation from kernel/dma.c by not defining MAX_DMA_CHANNELS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Some code relies on seeing MAX_DMA_ADDRESS though.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define MAX_DMA_ADDRESS PAGE_OFFSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern int request_dma(unsigned int dmanr, const char *device_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern void free_dma(unsigned int dmanr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif /* __ASM_GENERIC_DMA_H */