/* SPDX-License-Identifier: GPL-2.0+ */ /* * COMEDI ISA DMA support functions * Copyright (c) 2014 H Hartley Sweeten <hsweeten@visionengravers.com>
*/
#ifndef _COMEDI_ISADMA_H #define _COMEDI_ISADMA_H
#include <linux/types.h>
struct comedi_device; struct device;
/* * These are used to avoid issues when <asm/dma.h> and the DMA_MODE_ * defines are not available.
*/ #define COMEDI_ISADMA_READ 0 #define COMEDI_ISADMA_WRITE 1
/** * struct comedi_isadma_desc - cookie for ISA DMA * @virt_addr: virtual address of buffer * @hw_addr: hardware (bus) address of buffer * @chan: DMA channel * @maxsize: allocated size of buffer (in bytes) * @size: transfer size (in bytes) * @mode: DMA_MODE_READ or DMA_MODE_WRITE
*/ struct comedi_isadma_desc { void *virt_addr;
dma_addr_t hw_addr; unsignedint chan; unsignedint maxsize; unsignedint size; char mode;
};
/** * struct comedi_isadma - ISA DMA data * @dev: device to allocate non-coherent memory for * @desc: cookie for each DMA buffer * @n_desc: the number of cookies * @cur_dma: the current cookie in use * @chan: the first DMA channel requested * @chan2: the second DMA channel requested
*/ struct comedi_isadma { struct device *dev; struct comedi_isadma_desc *desc; int n_desc; int cur_dma; unsignedint chan; unsignedint chan2;
};
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.