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

Go to the source code of this file.

Data Structures

struct  subdev_8255_private
 

Macros

#define _8255_SIZE   4
 
#define _8255_DATA   0
 
#define _8255_CR   3
 
#define CR_C_LO_IO   0x01
 
#define CR_B_IO   0x02
 
#define CR_B_MODE   0x04
 
#define CR_C_HI_IO   0x08
 
#define CR_A_IO   0x10
 
#define CR_A_MODE(a)   ((a)<<5)
 
#define CR_CW   0x80
 

Functions

void subdev_8255_interrupt (struct comedi_device *dev, struct comedi_subdevice *s)
 
 EXPORT_SYMBOL (subdev_8255_interrupt)
 
int subdev_8255_init (struct comedi_device *dev, struct comedi_subdevice *s, int(*io)(int, int, int, unsigned long), unsigned long iobase)
 
 EXPORT_SYMBOL (subdev_8255_init)
 
int subdev_8255_init_irq (struct comedi_device *dev, struct comedi_subdevice *s, int(*io)(int, int, int, unsigned long), unsigned long iobase)
 
 EXPORT_SYMBOL (subdev_8255_init_irq)
 
void subdev_8255_cleanup (struct comedi_device *dev, struct comedi_subdevice *s)
 
 EXPORT_SYMBOL (subdev_8255_cleanup)
 
 module_comedi_driver (dev_8255_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define _8255_CR   3

Definition at line 92 of file 8255.c.

#define _8255_DATA   0

Definition at line 91 of file 8255.c.

#define _8255_SIZE   4

Definition at line 89 of file 8255.c.

#define CR_A_IO   0x10

Definition at line 98 of file 8255.c.

#define CR_A_MODE (   a)    ((a)<<5)

Definition at line 99 of file 8255.c.

#define CR_B_IO   0x02

Definition at line 95 of file 8255.c.

#define CR_B_MODE   0x04

Definition at line 96 of file 8255.c.

#define CR_C_HI_IO   0x08

Definition at line 97 of file 8255.c.

#define CR_C_LO_IO   0x01

Definition at line 94 of file 8255.c.

#define CR_CW   0x80

Definition at line 100 of file 8255.c.

Function Documentation

EXPORT_SYMBOL ( subdev_8255_interrupt  )
EXPORT_SYMBOL ( subdev_8255_init  )
EXPORT_SYMBOL ( subdev_8255_init_irq  )
EXPORT_SYMBOL ( subdev_8255_cleanup  )
MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_driver ( dev_8255_driver  )
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_LICENSE ( "GPL"  )
void subdev_8255_cleanup ( struct comedi_device dev,
struct comedi_subdevice s 
)

Definition at line 352 of file 8255.c.

int subdev_8255_init ( struct comedi_device dev,
struct comedi_subdevice s,
int(*)(int, int, int, unsigned long io,
unsigned long  iobase 
)

Definition at line 302 of file 8255.c.

int subdev_8255_init_irq ( struct comedi_device dev,
struct comedi_subdevice s,
int(*)(int, int, int, unsigned long io,
unsigned long  iobase 
)

Definition at line 334 of file 8255.c.

void subdev_8255_interrupt ( struct comedi_device dev,
struct comedi_subdevice s 
)

Definition at line 117 of file 8255.c.