18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_DMA_H 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_DMA_H 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * This file traditionally describes the i8237 PC style DMA controller. 68c2ecf20Sopenharmony_ci * Most architectures don't have these any more and can get the minimal 78c2ecf20Sopenharmony_ci * implementation from kernel/dma.c by not defining MAX_DMA_CHANNELS. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Some code relies on seeing MAX_DMA_ADDRESS though. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci#define MAX_DMA_ADDRESS PAGE_OFFSET 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciextern int request_dma(unsigned int dmanr, const char *device_id); 148c2ecf20Sopenharmony_ciextern void free_dma(unsigned int dmanr); 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#endif /* __ASM_GENERIC_DMA_H */ 17