#ifndef _MITE_H_
#define _MITE_H_
#include <linux/spinlock.h>
#define MAX_MITE_DMA_CHANNELS …
struct comedi_device;
struct comedi_subdevice;
struct device;
struct pci_dev;
struct mite_dma_desc { … };
struct mite_ring { … };
struct mite_channel { … };
struct mite { … };
u32 mite_bytes_in_transit(struct mite_channel *mite_chan);
void mite_sync_dma(struct mite_channel *mite_chan, struct comedi_subdevice *s);
void mite_ack_linkc(struct mite_channel *mite_chan, struct comedi_subdevice *s,
bool sync);
int mite_done(struct mite_channel *mite_chan);
void mite_dma_arm(struct mite_channel *mite_chan);
void mite_dma_disarm(struct mite_channel *mite_chan);
void mite_prep_dma(struct mite_channel *mite_chan,
unsigned int num_device_bits, unsigned int num_memory_bits);
struct mite_channel *mite_request_channel_in_range(struct mite *mite,
struct mite_ring *ring,
unsigned int min_channel,
unsigned int max_channel);
struct mite_channel *mite_request_channel(struct mite *mite,
struct mite_ring *ring);
void mite_release_channel(struct mite_channel *mite_chan);
int mite_init_ring_descriptors(struct mite_ring *ring,
struct comedi_subdevice *s, unsigned int nbytes);
int mite_buf_change(struct mite_ring *ring, struct comedi_subdevice *s);
struct mite_ring *mite_alloc_ring(struct mite *mite);
void mite_free_ring(struct mite_ring *ring);
struct mite *mite_attach(struct comedi_device *dev, bool use_win1);
void mite_detach(struct mite *mite);
#define MITE_IODWBSR …
#define MITE_IODWBSR_1 …
#define WENAB …
#define MITE_IODWCR_1 …
#endif