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 |
|
---|
38 | int vmesysreset(int p) ;
|
---|
39 |
|
---|
40 | /********************************/
|
---|
41 | /* */
|
---|
42 | /* VME Read IRQ Ackn. Cycle */
|
---|
43 | /* */
|
---|
44 | /********************************/
|
---|
45 |
|
---|
46 | int 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 |
|
---|
57 | int vme_A16D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
|
---|
58 | int vme_A16D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
|
---|
59 | int vme_A16D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
|
---|
60 |
|
---|
61 | int vme_A16D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
|
---|
62 | int vme_A16D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
|
---|
63 | int 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 |
|
---|
76 | int vme_A24D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
|
---|
77 | int vme_A24D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
|
---|
78 | int vme_A24D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
|
---|
79 |
|
---|
80 | int 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 |
|
---|
83 | int 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 |
|
---|
86 | int 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 |
|
---|
90 | int 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 |
|
---|
93 | int 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 |
|
---|
99 | int vme_A24D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
|
---|
100 | int vme_A24D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
|
---|
101 | int vme_A24D32_write(int p, u_int32_t vme_adr, u_int32_t vme_data ) ;
|
---|
102 |
|
---|
103 |
|
---|
104 | int 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 |
|
---|
108 | int 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 |
|
---|
112 | int 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 |
|
---|
128 | int vme_A32D8_read(int p, u_int32_t vme_adr, u_int8_t* vme_data ) ;
|
---|
129 | int vme_A32D16_read(int p, u_int32_t vme_adr, u_int16_t* vme_data ) ;
|
---|
130 | int vme_A32D32_read(int p, u_int32_t vme_adr, u_int32_t* vme_data ) ;
|
---|
131 |
|
---|
132 |
|
---|
133 | int 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 |
|
---|
136 | int 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 |
|
---|
139 | int 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 |
|
---|
143 | int 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 |
|
---|
148 | int 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 |
|
---|
151 | int 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 |
|
---|
154 | int 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 |
|
---|
158 | int 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 |
|
---|
163 | int vme_A32D8_write(int p, u_int32_t vme_adr, u_int8_t vme_data ) ;
|
---|
164 | int vme_A32D16_write(int p, u_int32_t vme_adr, u_int16_t vme_data ) ;
|
---|
165 | int vme_A32D32_write(int p, u_int32_t vme_adr, u_int32_t vme_data ) ;
|
---|
166 |
|
---|
167 |
|
---|
168 | int 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 |
|
---|
171 | int 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 |
|
---|
175 | int 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 |
|
---|
189 | int s3100_control_read(int p, int offset, u_int32_t* data) ;
|
---|
190 | int s3100_control_write(int p, int offset, u_int32_t data) ;
|
---|
191 |
|
---|
192 |
|
---|
193 |
|
---|
194 | /***********************/
|
---|
195 | /* */
|
---|
196 | /* s3100_sharc */
|
---|
197 | /* */
|
---|
198 | /***********************/
|
---|
199 |
|
---|
200 | int s3100_sharc_write(int p_sharc_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords) ;
|
---|
201 | int 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 |
|
---|
211 | int s3100_sdram_write(int p_sdram_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords ) ;
|
---|
212 | int s3100_sdram_read(int p_sdram_desc, u_int32_t byte_adr, u_int32_t* ptr_data, u_int32_t num_of_lwords ) ;
|
---|