/* SPDX-License-Identifier: GPL-2.0 */ /* * Helpfile for jazzdma.c -- Mips Jazz R4030 DMA controller support
*/ #ifndef _ASM_JAZZDMA_H #define _ASM_JAZZDMA_H
/* * Prototypes and macros
*/ externunsignedlong vdma_alloc(unsignedlong paddr, unsignedlong size); externint vdma_free(unsignedlong laddr); externunsignedlong vdma_phys2log(unsignedlong paddr); externunsignedlong vdma_log2phys(unsignedlong laddr); externvoid vdma_stats(void); /* for debugging only */
externvoid vdma_enable(int channel); externvoid vdma_disable(int channel); externvoid vdma_set_mode(int channel, int mode); externvoid vdma_set_addr(int channel, long addr); externvoid vdma_set_count(int channel, int count); externint vdma_get_residue(int channel); externint vdma_get_enable(int channel);
/* * some definitions used by the driver functions
*/ #define VDMA_PAGESIZE 4096 #define VDMA_PGTBL_ENTRIES 4096 #define VDMA_PGTBL_SIZE (sizeof(VDMA_PGTBL_ENTRY) * VDMA_PGTBL_ENTRIES) #define VDMA_PAGE_EMPTY 0xff000000
/* * Macros to get page no. and offset of a given address * Note that VDMA_PAGE() works for physical addresses only
*/ #define VDMA_PAGE(a) ((unsignedint)(a) >> 12) #define VDMA_OFFSET(a) ((unsignedint)(a) & (VDMA_PAGESIZE-1))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.