source: drsdaq/VME/struck/sis1100/V2.02/sis3100_calls/sis3100_vme_calls.h@ 23

Last change on this file since 23 was 22, checked in by ogrimm, 16 years ago
First commit of drsdaq program
File size: 7.8 KB
Line 
1/*===========================================================================*/
2/* */
3/* File: sis3100_vme_calls.h */
4/* */
5/* OS: LINUX (Kernel >= 2.4.4 */
6/* */
7/* Description: */
8/* */
9/* Version: 1.1 */
10/* */
11/* */
12/* Generated: 18.12.01 */
13/* Modified: 21.06.04 MKI */
14/* */
15/* Author: TH */
16/* */
17/* Last Change: Installation */
18/*---------------------------------------------------------------------------*/
19/* SIS GmbH */
20/* Harksheider Str. 102A */
21/* 22399 Hamburg */
22/* */
23/* http://www.struck.de */
24/* */
25/*===========================================================================*/
26
27
28
29
30
31/**********************/
32/* */
33/* VME SYSReset */
34/* */
35/**********************/
36
37
38int vmesysreset(int p) ;
39
40/********************************/
41/* */
42/* VME Read IRQ Ackn. Cycle */
43/* */
44/********************************/
45
46int vme_IACK_D8_read(int p, u_int32_t vme_irq_level, u_int8_t* vme_data ) ;
47
48
49
50
51/*****************/
52/* */
53/* VME A16 */
54/* */
55/*****************/
56
57int vme_A16D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
58int vme_A16D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
59int vme_A16D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
60
61int vme_A16D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
62int vme_A16D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
63int vme_A16D32_write(int p, u_int32_t vme_adr, u_int32_t vme_data ) ;
64
65
66
67
68
69/*****************/
70/* */
71/* VME A24 */
72/* */
73/*****************/
74
75
76int vme_A24D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
77int vme_A24D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
78int vme_A24D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
79
80int vme_A24DMA_D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
81 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
82
83int vme_A24BLT32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
84 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
85
86int vme_A24MBLT64_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
87 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
88
89
90int vme_A24BLT32FIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
91 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
92
93int vme_A24MBLT64FIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
94 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
95
96
97
98
99int vme_A24D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
100int vme_A24D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
101int vme_A24D32_write(int p, u_int32_t vme_adr, u_int32_t vme_data ) ;
102
103
104int vme_A24DMA_D32_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
105 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
106
107
108int vme_A24BLT32_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
109 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
110
111
112int vme_A24MBLT64_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
113 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
114
115
116
117
118
119
120
121/*****************/
122/* */
123/* VME A32 */
124/* */
125/*****************/
126
127
128int vme_A32D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
129int vme_A32D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
130int vme_A32D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
131
132
133int vme_A32DMA_D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
134 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
135
136int vme_A32BLT32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
137 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
138
139int vme_A32MBLT64_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
140 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
141
142
143int vme_A32_2EVME_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
144 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
145
146
147
148int vme_A32DMA_D32FIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
149 u_int32_t req_num_of_lwords, u_int32_t* got_no_of_lwords) ;
150
151int vme_A32BLT32FIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
152 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
153
154int vme_A32MBLT64FIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
155 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
156
157
158int vme_A32_2EVMEFIFO_read(int p, u_int32_t vme_adr, u_int32_t* vme_data,
159 u_int32_t req_num_of_lwords, u_int32_t* got_num_of_lwords) ;
160
161
162
163int vme_A32D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
164int vme_A32D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
165int vme_A32D32_write(int p, u_int32_t vme_adr, u_int32_t vme_data ) ;
166
167
168int vme_A32DMA_D32_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
169 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
170
171int vme_A32BLT32_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
172 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
173
174
175int vme_A32MBLT64_write(int p, u_int32_t vme_adr, u_int32_t* vme_data,
176 u_int32_t req_num_of_lwords, u_int32_t* put_num_of_lwords) ;
177
178
179
180
181
182/***********************/
183/* */
184/* s3100_control */
185/* */
186/***********************/
187
188
189int s3100_control_read(int p, int offset, u_int32_t* data) ;
190int s3100_control_write(int p, int offset, u_int32_t data) ;
191
192
193
194/***********************/
195/* */
196/* s3100_sharc */
197/* */
198/***********************/
199
200int s3100_sharc_write(int p_sharc_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords) ;
201int s3100_sharc_read(int p_sharc_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords) ;
202
203
204
205/***********************/
206/* */
207/* s3100_sdram */
208/* */
209/***********************/
210
211int s3100_sdram_write(int p_sdram_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords ) ;
212int s3100_sdram_read(int p_sdram_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords ) ;
213
214
215
216
217
218
219
220
221
222
223
224
225
226
Note: See TracBrowser for help on using the repository browser.