AlcapDAQ  1
vmedrv_conf.h
Go to the documentation of this file.
1 /* vmedrv_conf.h */
2 /* VME device driver for Bit3 Model 617 on Linux 2.6.x */
3 /* Created by Enomoto Sanshiro on 28 November 1999. */
4 /* Last updated by Enomoto Sanshiro on 17 October 2005. */
5 
6 
7 #ifndef __VMEDRV_CONF_H_
8 #define __VMEDRV_CONF_H_
9 
10 #include "vmedrv.h"
11 #include <linux/moduleparam.h>
12 
13 #ifndef VMEDRV_MAJOR
14 #define VMEDRV_MAJOR 0
15 #endif
17 module_param(vmedrv_major, int, S_IRUGO);
18 
19 static char* vmedrv_name = "vmedrv";
20 module_param(vmedrv_name, charp, S_IRUGO);
21 
22 static int target_card_number = 0;
23 module_param(target_card_number, int, S_IRUGO);
24 
25 
27  char* mode_name;
28  unsigned address_modifier;
30  unsigned data_width;
31  unsigned function_code;
32  unsigned byte_swapping;
33 };
34 
35 static const struct vmedrv_config_t vmedrv_config_table[] = {
36 /* Name AM code DMA AM Data Width Function Code BYTE SWAP */
37 { "A16D16", amA16, amINVALID, dwWORD, fcREMOTE_BUS_IO, bsNONE },
38 { "A16D32", amA16, amINVALID, dwLONG, fcREMOTE_BUS_IO, bsNONE },
43 /* The order of entries in this table must be exactly same with */
44 /* the order in vmedrv_access_modes_t in "vmedrv.h". */
45 };
46 
47 
48 static const int PIO_WINDOW_PAGES = 16; /* 64 kB */
49 static const int PIO_BUFFER_SIZE = 0x1000; /* 4 kB */
50 
51 //static const int DMA_BUFFER_SIZE = 0x10000; /* 64 kB */
52 static const int DMA_BUFFER_SIZE = 0x100000; /* 1 MB */
53 
54 
55 
56 #endif