summaryrefslogtreecommitdiffstats
path: root/private/mvdm/softpc.new/base/cpu/src/evid/vglob.c
blob: d1f01ac2f641d16ed3931df25d841ca41c2f222f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
/*[
*************************************************************************

	Name:		Vglob.c
	Author:		Simon Frost
	Created:	October 1994
	Derived from:	Vglob.edl
	Sccs ID:	@(#)Vglob.c	1.1 10/24/94
	Purpose:	EXTERNAL interface to VGLOB record.
			Rewritten in C to save overhead of EDL/C context change
			for one memory read/write.

	(c)Copyright Insignia Solutions Ltd., 1993. All rights reserved.

*************************************************************************
]*/

#include "insignia.h"
#include "host_def.h"
#include "Evid_c.h"
#include "gdpvar.h"

/*
 * Note: no interfaces produced for the following 3.0 VGlob entries as
 * unused in Evid.
 *      copy_func_pbp	( now video_base_lin_addr )
 *      route_reg1
 *      route_reg2
 */

/* {get,set}Videolatches still in EvPtrs.edl as required for pigging */

GLOBAL void
setVideorplane IFN1(IU8 *, value)
{
	GLOBAL_VGAGlobals.VGA_rplane = value;
}
GLOBAL IU8 *
getVideorplane IFN0()
{
	return(GLOBAL_VGAGlobals.VGA_rplane);
}

GLOBAL void
setVideowplane IFN1(IU8 *, value)
{
	GLOBAL_VGAGlobals.VGA_wplane = value;
}
GLOBAL IU8 *
getVideowplane IFN0()
{
	return(GLOBAL_VGAGlobals.VGA_wplane);
}

GLOBAL void
setVideoscratch IFN1(IU8 *, value)
{
	GLOBAL_VGAGlobals.scratch = value;
}
GLOBAL IU8 *
getVideoscratch IFN0()
{
	return(GLOBAL_VGAGlobals.scratch);
}

GLOBAL void
setVideosr_masked_val IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.sr_masked_val = value;
}
GLOBAL IU32
getVideosr_masked_val IFN0()
{
	return(GLOBAL_VGAGlobals.sr_masked_val);
}

GLOBAL void
setVideosr_nmask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.sr_nmask = value;
}

GLOBAL IU32
getVideosr_nmask IFN0()
{
	return(GLOBAL_VGAGlobals.sr_nmask);
}

GLOBAL void
setVideodata_and_mask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.data_and_mask = value;
}

GLOBAL IU32
getVideodata_and_mask IFN0()
{
	return(GLOBAL_VGAGlobals.data_and_mask);
}

GLOBAL void
setVideodata_xor_mask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.data_xor_mask = value;
}
GLOBAL IU32
getVideodata_xor_mask IFN0()
{
	return(GLOBAL_VGAGlobals.data_xor_mask);
}

GLOBAL void
setVideolatch_xor_mask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.latch_xor_mask = value;
}
GLOBAL IU32
getVideolatch_xor_mask IFN0()
{
	return(GLOBAL_VGAGlobals.latch_xor_mask);
}

GLOBAL void
setVideobit_prot_mask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.bit_prot_mask = value;
}
GLOBAL IU32
getVideobit_prot_mask IFN0()
{
	return(GLOBAL_VGAGlobals.bit_prot_mask);
}

GLOBAL void
setVideoplane_enable IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.plane_enable = value;
}
GLOBAL IU32
getVideoplane_enable IFN0()
{
	return(GLOBAL_VGAGlobals.plane_enable);
}

GLOBAL void
setVideoplane_enable_mask IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.plane_enable_mask = value;
}
GLOBAL IU32
getVideoplane_enable_mask IFN0()
{
	return(GLOBAL_VGAGlobals.plane_enable_mask);
}

GLOBAL void
setVideosr_lookup IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.sr_lookup = value;
}
GLOBAL IUH *
getVideosr_lookup IFN0()
{
	return(GLOBAL_VGAGlobals.sr_lookup);
}

GLOBAL void
setVideofwd_str_read_addr IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.fwd_str_read_addr = value;
}
GLOBAL IUH *
getVideofwd_str_read_addr IFN0()
{
	return(GLOBAL_VGAGlobals.fwd_str_read_addr);
}

GLOBAL void
setVideobwd_str_read_addr IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.bwd_str_read_addr = value;
}
GLOBAL IUH *
getVideobwd_str_read_addr IFN0()
{
	return(GLOBAL_VGAGlobals.bwd_str_read_addr);
}

GLOBAL void
setVideodirty_total IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.dirty_total = value;
}
GLOBAL IU32
getVideodirty_total IFN0()
{
	return(GLOBAL_VGAGlobals.dirty_total);
}

GLOBAL void
setVideodirty_low IFN1(IS32, value)
{
	GLOBAL_VGAGlobals.dirty_low = value;
}
GLOBAL IS32
getVideodirty_low IFN0()
{
	return(GLOBAL_VGAGlobals.dirty_low);
}

GLOBAL void
setVideodirty_high IFN1(IS32, value)
{
	GLOBAL_VGAGlobals.dirty_high = value;
}
GLOBAL IS32
getVideodirty_high IFN0()
{
	return(GLOBAL_VGAGlobals.dirty_high);
}

GLOBAL void
setVideovideo_copy IFN1(IU8 *, value)
{
	GLOBAL_VGAGlobals.video_copy = value;
}
GLOBAL IU8 *
getVideovideo_copy IFN0()
{
	return(GLOBAL_VGAGlobals.video_copy);
}

GLOBAL void
setVideomark_byte IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.mark_byte = value;
}
GLOBAL IUH *
getVideomark_byte IFN0()
{
	return(GLOBAL_VGAGlobals.mark_byte);
}

GLOBAL void
setVideomark_word IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.mark_word = value;
}
GLOBAL IUH *
getVideomark_word IFN0()
{
	return(GLOBAL_VGAGlobals.mark_word);
}

GLOBAL void
setVideomark_string IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.mark_string = value;
}
GLOBAL IUH *
getVideomark_string IFN0()
{
	return(GLOBAL_VGAGlobals.mark_string);
}

GLOBAL void
setVideoread_shift_count IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.read_shift_count = value;
}
GLOBAL IU32
getVideoread_shift_count IFN0()
{
	return(GLOBAL_VGAGlobals.read_shift_count);
}

GLOBAL void
setVideoread_mapped_plane IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.read_mapped_plane = value;
}
GLOBAL IU32
getVideoread_mapped_plane IFN0()
{
	return(GLOBAL_VGAGlobals.read_mapped_plane);
}

GLOBAL void
setVideocolour_comp IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.colour_comp = value;
}
GLOBAL IU32
getVideocolour_comp IFN0()
{
	return(GLOBAL_VGAGlobals.colour_comp);
}

GLOBAL void
setVideodont_care IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.dont_care = value;
}
GLOBAL IU32
getVideodont_care IFN0()
{
	return(GLOBAL_VGAGlobals.dont_care);
}

GLOBAL void
setVideov7_bank_vid_copy_off IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.v7_bank_vid_copy_off = value;
}
GLOBAL IU32
getVideov7_bank_vid_copy_off IFN0()
{
	return(GLOBAL_VGAGlobals.v7_bank_vid_copy_off);
}

GLOBAL void
setVideoscreen_ptr IFN1(IU8 *, value)
{
	GLOBAL_VGAGlobals.screen_ptr = value;
}
GLOBAL IU8 *
getVideoscreen_ptr IFN0()
{
	return(GLOBAL_VGAGlobals.screen_ptr);
}

GLOBAL void
setVideorotate IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.rotate = value;
}
GLOBAL IU32
getVideorotate IFN0()
{
	return(GLOBAL_VGAGlobals.rotate);
}

GLOBAL void
setVideocalc_data_xor IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.calc_data_xor = value;
}
GLOBAL IU32
getVideocalc_data_xor IFN0()
{
	return(GLOBAL_VGAGlobals.calc_data_xor);
}

GLOBAL void
setVideocalc_latch_xor IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.calc_latch_xor = value;
}
GLOBAL IU32
getVideocalc_latch_xor IFN0()
{
	return(GLOBAL_VGAGlobals.calc_latch_xor);
}

GLOBAL void
setVideoread_byte_addr IFN1(IUH *, value)
{
	GLOBAL_VGAGlobals.read_byte_addr = value;
}
GLOBAL IUH *
getVideoread_byte_addr IFN0()
{
	return(GLOBAL_VGAGlobals.read_byte_addr);
}

GLOBAL void
setVideov7_fg_latches IFN1(IU32, value)
{
	GLOBAL_VGAGlobals.v7_fg_latches = value;
}
GLOBAL IU32
getVideov7_fg_latches IFN0()
{
	return(GLOBAL_VGAGlobals.v7_fg_latches);
}

GLOBAL void
setVideoGC_regs IFN1(IUH **, value)
{
	GLOBAL_VGAGlobals.GCRegs = value;
}
GLOBAL IUH **
getVideoGC_regs IFN0()
{
	return(GLOBAL_VGAGlobals.GCRegs);
}

GLOBAL void
setVideolast_GC_index IFN1(IU8, value)
{
	GLOBAL_VGAGlobals.lastGCindex = value;
}
GLOBAL IU8
getVideolast_GC_index IFN0()
{
	return(GLOBAL_VGAGlobals.lastGCindex);
}

GLOBAL void
setVideodither IFN1(IU8, value)
{
	GLOBAL_VGAGlobals.dither = value;
}
GLOBAL IU8
getVideodither IFN0()
{
	return(GLOBAL_VGAGlobals.dither);
}

GLOBAL void
setVideowrmode IFN1(IU8, value)
{
	GLOBAL_VGAGlobals.wrmode = value;
}
GLOBAL IU8
getVideowrmode IFN0()
{
	return(GLOBAL_VGAGlobals.wrmode);
}

GLOBAL void
setVideochain IFN1(IU8, value)
{
	GLOBAL_VGAGlobals.chain = value;
}
GLOBAL IU8
getVideochain IFN0()
{
	return(GLOBAL_VGAGlobals.chain);
}

GLOBAL void
setVideowrstate IFN1(IU8, value)
{
	GLOBAL_VGAGlobals.wrstate = value;
}
GLOBAL IU8
getVideowrstate IFN0()
{
	return(GLOBAL_VGAGlobals.wrstate);
}