35#ifndef NIDAS_DIAMOND_IR104_H
36#define NIDAS_DIAMOND_IR104_H
48#define IR104_IOC_MAGIC 'i'
51#define IR104_MAX_BOARDS 4
53#define IR104_IO_REGION_SIZE 15
58#define IR104_GET_NOUT _IO(IR104_IOC_MAGIC,0)
61#define IR104_GET_NIN _IO(IR104_IOC_MAGIC,1)
65 _IOW(IR104_IOC_MAGIC,2,unsigned char[3])
69 _IOW(IR104_IOC_MAGIC,3,unsigned char[3])
73#define IR104_SET_TO_VAL \
74 _IOW(IR104_IOC_MAGIC,4,unsigned char[6])
77#define IR104_GET_DOUT \
78 _IOR(IR104_IOC_MAGIC,5,unsigned char[3])
81#define IR104_GET_DIN \
82 _IOR(IR104_IOC_MAGIC,6,unsigned char[3])
84#define IR104_IOC_MAXNR 6
93#include <linux/cdev.h>
94#include <linux/device.h>
122#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
125 struct semaphore mutex;
129 unsigned char outputs[3];
136 struct dsm_sample_circ_buf relay_samples;
141 wait_queue_head_t read_queue;
146 struct sample_read_state read_state;
152 unsigned int missedSamples;
static unsigned int ioport[MESA_4I34_MAX_NR_DEVS]
Definition mesa.c:72
static string device
Definition sing.cc:60