Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mite.c File Reference
#include "mite.h"
#include "comedi_fc.h"
#include "../comedidev.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define PCI_MITE_SIZE   4096
 
#define PCI_DAQ_SIZE   4096
 
#define PCI_DAQ_SIZE_660X   8192
 
#define TOP_OF_PAGE(x)   ((x)|(~(PAGE_MASK)))
 

Functions

struct mite_structmite_alloc (struct pci_dev *pcidev)
 
 EXPORT_SYMBOL (mite_alloc)
 
int mite_setup2 (struct mite_struct *mite, unsigned use_iodwbsr_1)
 
 EXPORT_SYMBOL (mite_setup2)
 
int mite_setup (struct mite_struct *mite)
 
 EXPORT_SYMBOL (mite_setup)
 
void mite_unsetup (struct mite_struct *mite)
 
 EXPORT_SYMBOL (mite_unsetup)
 
struct mite_dma_descriptor_ringmite_alloc_ring (struct mite_struct *mite)
 
 EXPORT_SYMBOL (mite_alloc_ring)
 
void mite_free_ring (struct mite_dma_descriptor_ring *ring)
 
 EXPORT_SYMBOL (mite_free_ring)
 
struct mite_channelmite_request_channel_in_range (struct mite_struct *mite, struct mite_dma_descriptor_ring *ring, unsigned min_channel, unsigned max_channel)
 
 EXPORT_SYMBOL (mite_request_channel_in_range)
 
void mite_release_channel (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_release_channel)
 
void mite_dma_arm (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_dma_arm)
 
int mite_buf_change (struct mite_dma_descriptor_ring *ring, struct comedi_async *async)
 
 EXPORT_SYMBOL (mite_buf_change)
 
void mite_prep_dma (struct mite_channel *mite_chan, unsigned int num_device_bits, unsigned int num_memory_bits)
 
 EXPORT_SYMBOL (mite_prep_dma)
 
u32 mite_bytes_in_transit (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_bytes_in_transit)
 
u32 mite_bytes_written_to_memory_lb (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_bytes_written_to_memory_lb)
 
u32 mite_bytes_written_to_memory_ub (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_bytes_written_to_memory_ub)
 
u32 mite_bytes_read_from_memory_lb (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_bytes_read_from_memory_lb)
 
u32 mite_bytes_read_from_memory_ub (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_bytes_read_from_memory_ub)
 
unsigned mite_dma_tcr (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_dma_tcr)
 
void mite_dma_disarm (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_dma_disarm)
 
int mite_sync_input_dma (struct mite_channel *mite_chan, struct comedi_async *async)
 
 EXPORT_SYMBOL (mite_sync_input_dma)
 
int mite_sync_output_dma (struct mite_channel *mite_chan, struct comedi_async *async)
 
 EXPORT_SYMBOL (mite_sync_output_dma)
 
unsigned mite_get_status (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_get_status)
 
int mite_done (struct mite_channel *mite_chan)
 
 EXPORT_SYMBOL (mite_done)
 
 module_init (mite_module_init)
 
 module_exit (mite_module_exit)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PCI_DAQ_SIZE   4096

Definition at line 61 of file mite.c.

#define PCI_DAQ_SIZE_660X   8192

Definition at line 62 of file mite.c.

#define PCI_MITE_SIZE   4096

Definition at line 60 of file mite.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 52 of file mite.c.

#define TOP_OF_PAGE (   x)    ((x)|(~(PAGE_MASK)))

Definition at line 64 of file mite.c.

Function Documentation

EXPORT_SYMBOL ( mite_alloc  )
EXPORT_SYMBOL ( mite_setup2  )
EXPORT_SYMBOL ( mite_setup  )
EXPORT_SYMBOL ( mite_unsetup  )
EXPORT_SYMBOL ( mite_alloc_ring  )
EXPORT_SYMBOL ( mite_free_ring  )
EXPORT_SYMBOL ( mite_request_channel_in_range  )
EXPORT_SYMBOL ( mite_release_channel  )
EXPORT_SYMBOL ( mite_dma_arm  )
EXPORT_SYMBOL ( mite_buf_change  )
EXPORT_SYMBOL ( mite_prep_dma  )
EXPORT_SYMBOL ( mite_bytes_in_transit  )
EXPORT_SYMBOL ( mite_bytes_written_to_memory_lb  )
EXPORT_SYMBOL ( mite_bytes_written_to_memory_ub  )
EXPORT_SYMBOL ( mite_bytes_read_from_memory_lb  )
EXPORT_SYMBOL ( mite_bytes_read_from_memory_ub  )
EXPORT_SYMBOL ( mite_dma_tcr  )
EXPORT_SYMBOL ( mite_dma_disarm  )
EXPORT_SYMBOL ( mite_sync_input_dma  )
EXPORT_SYMBOL ( mite_sync_output_dma  )
EXPORT_SYMBOL ( mite_get_status  )
EXPORT_SYMBOL ( mite_done  )
struct mite_struct* mite_alloc ( struct pci_dev pcidev)
read

Definition at line 66 of file mite.c.

struct mite_dma_descriptor_ring* mite_alloc_ring ( struct mite_struct mite)
read

Definition at line 217 of file mite.c.

int mite_buf_change ( struct mite_dma_descriptor_ring ring,
struct comedi_async async 
)

Definition at line 331 of file mite.c.

u32 mite_bytes_in_transit ( struct mite_channel mite_chan)

Definition at line 483 of file mite.c.

u32 mite_bytes_read_from_memory_lb ( struct mite_channel mite_chan)

Definition at line 512 of file mite.c.

u32 mite_bytes_read_from_memory_ub ( struct mite_channel mite_chan)

Definition at line 522 of file mite.c.

u32 mite_bytes_written_to_memory_lb ( struct mite_channel mite_chan)

Definition at line 492 of file mite.c.

u32 mite_bytes_written_to_memory_ub ( struct mite_channel mite_chan)

Definition at line 502 of file mite.c.

void mite_dma_arm ( struct mite_channel mite_chan)

Definition at line 306 of file mite.c.

void mite_dma_disarm ( struct mite_channel mite_chan)

Definition at line 546 of file mite.c.

unsigned mite_dma_tcr ( struct mite_channel mite_chan)

Definition at line 531 of file mite.c.

int mite_done ( struct mite_channel mite_chan)

Definition at line 652 of file mite.c.

void mite_free_ring ( struct mite_dma_descriptor_ring ring)

Definition at line 236 of file mite.c.

unsigned mite_get_status ( struct mite_channel mite_chan)

Definition at line 633 of file mite.c.

void mite_prep_dma ( struct mite_channel mite_chan,
unsigned int  num_device_bits,
unsigned int  num_memory_bits 
)

Definition at line 386 of file mite.c.

void mite_release_channel ( struct mite_channel mite_chan)

Definition at line 279 of file mite.c.

struct mite_channel* mite_request_channel_in_range ( struct mite_struct mite,
struct mite_dma_descriptor_ring ring,
unsigned  min_channel,
unsigned  max_channel 
)
read

Definition at line 252 of file mite.c.

int mite_setup ( struct mite_struct mite)

Definition at line 189 of file mite.c.

int mite_setup2 ( struct mite_struct mite,
unsigned  use_iodwbsr_1 
)

Definition at line 103 of file mite.c.

int mite_sync_input_dma ( struct mite_channel mite_chan,
struct comedi_async async 
)

Definition at line 557 of file mite.c.

int mite_sync_output_dma ( struct mite_channel mite_chan,
struct comedi_async async 
)

Definition at line 595 of file mite.c.

void mite_unsetup ( struct mite_struct mite)

Definition at line 195 of file mite.c.

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
MODULE_DESCRIPTION ( "Comedi low-level driver )
module_exit ( mite_module_exit  )
module_init ( mite_module_init  )
MODULE_LICENSE ( "GPL"  )