Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_GENERIC_DMA_H
0003 #define __ASM_GENERIC_DMA_H
0004 /*
0005  * This file traditionally describes the i8237 PC style DMA controller.
0006  * Most architectures don't have these any more and can get the minimal
0007  * implementation from kernel/dma.c by not defining MAX_DMA_CHANNELS.
0008  *
0009  * Some code relies on seeing MAX_DMA_ADDRESS though.
0010  */
0011 #define MAX_DMA_ADDRESS PAGE_OFFSET
0012 
0013 extern int request_dma(unsigned int dmanr, const char *device_id);
0014 extern void free_dma(unsigned int dmanr);
0015 
0016 #endif /* __ASM_GENERIC_DMA_H */