162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASM_GENERIC_DMA_H
362306a36Sopenharmony_ci#define __ASM_GENERIC_DMA_H
462306a36Sopenharmony_ci/*
562306a36Sopenharmony_ci * This file traditionally describes the i8237 PC style DMA controller.
662306a36Sopenharmony_ci * Most architectures don't have these any more and can get the minimal
762306a36Sopenharmony_ci * implementation from kernel/dma.c by not defining MAX_DMA_CHANNELS.
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * Some code relies on seeing MAX_DMA_ADDRESS though.
1062306a36Sopenharmony_ci */
1162306a36Sopenharmony_ci#define MAX_DMA_ADDRESS PAGE_OFFSET
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciextern int request_dma(unsigned int dmanr, const char *device_id);
1462306a36Sopenharmony_ciextern void free_dma(unsigned int dmanr);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#endif /* __ASM_GENERIC_DMA_H */
17