summaryrefslogblamecommitdiffstats
path: root/private/mvdm/softpc.new/host/inc/mips/prod/sas4gen.h
blob: 4f3803b41f8553abb6868e95aa5dfe2a53eec6d3 (plain) (tree)
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838





































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                   
/*[
 * Generated File: sas4gen.h
 *
]*/

#ifndef _SAS4GEN_H_
#define _SAS4GEN_H_
typedef	IU32	TYPE_sas_memory_size	IPT0();
typedef	void	TYPE_sas_connect_memory	IPT3(IU32,	lo_addr, IU32,	Int_addr, SAS_MEM_TYPE,	type);
typedef	void	TYPE_sas_enable_20_bit_wrapping	IPT0();
typedef	void	TYPE_sas_disable_20_bit_wrapping	IPT0();
typedef	IBOOL	TYPE_sas_twenty_bit_wrapping_enabled	IPT0();
typedef	SAS_MEM_TYPE	TYPE_sas_memory_type	IPT1(IU32,	addr);
typedef	IU8	TYPE_sas_hw_at	IPT1(IU32,	addr);
typedef	IU16	TYPE_sas_w_at	IPT1(IU32,	addr);
typedef	IU32	TYPE_sas_dw_at	IPT1(IU32,	addr);
typedef	IU8	TYPE_sas_hw_at_no_check	IPT1(IU32,	addr);
typedef	IU16	TYPE_sas_w_at_no_check	IPT1(IU32,	addr);
typedef	IU32	TYPE_sas_dw_at_no_check	IPT1(IU32,	addr);
typedef	void	TYPE_sas_store	IPT2(IU32,	addr, IU8,	val);
typedef	void	TYPE_sas_storew	IPT2(IU32,	addr, IU16,	val);
typedef	void	TYPE_sas_storedw	IPT2(IU32,	addr, IU32,	val);
typedef	void	TYPE_sas_store_no_check	IPT2(IU32,	addr, IU8,	val);
typedef	void	TYPE_sas_storew_no_check	IPT2(IU32,	addr, IU16,	val);
typedef	void	TYPE_sas_storedw_no_check	IPT2(IU32,	addr, IU32,	val);
typedef	void	TYPE_sas_loads	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
typedef	void	TYPE_sas_stores	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
typedef	void	TYPE_sas_loads_no_check	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
typedef	void	TYPE_sas_stores_no_check	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
typedef	void	TYPE_sas_move_bytes_forward	IPT3(IU32,	src, IU32,	dest, IU32,	len);
typedef	void	TYPE_sas_move_words_forward	IPT3(IU32,	src, IU32,	dest, IU32,	len);
typedef	void	TYPE_sas_move_doubles_forward	IPT3(IU32,	src, IU32,	dest, IU32,	len);
typedef	void	TYPE_sas_fills	IPT3(IU32,	dest, IU8,	val, IU32,	len);
typedef	void	TYPE_sas_fillsw	IPT3(IU32,	dest, IU16,	val, IU32,	len);
typedef	void	TYPE_sas_fillsdw	IPT3(IU32,	dest, IU32,	val, IU32,	len);
typedef	IU8 *	TYPE_sas_scratch_address	IPT1(IU32,	length);
typedef	IU8 *	TYPE_sas_transbuf_address	IPT2(IU32,	dest_addr, IU32,	length);
typedef	void	TYPE_sas_loads_to_transbuf	IPT3(IU32,	src_addr, IU8 *,	dest_addr, IU32,	length);
typedef	void	TYPE_sas_stores_from_transbuf	IPT3(IU32,	dest_addr, IU8 *,	src_addr, IU32,	length);
typedef	IU8	TYPE_sas_PR8	IPT1(IU32,	addr);
typedef	IU16	TYPE_sas_PR16	IPT1(IU32,	addr);
typedef	IU32	TYPE_sas_PR32	IPT1(IU32,	addr);
typedef	void	TYPE_sas_PW8	IPT2(IU32,	addr, IU8,	val);
typedef	void	TYPE_sas_PW16	IPT2(IU32,	addr, IU16,	val);
typedef	void	TYPE_sas_PW32	IPT2(IU32,	addr, IU32,	val);
typedef	void	TYPE_sas_PW8_no_check	IPT2(IU32,	addr, IU8,	val);
typedef	void	TYPE_sas_PW16_no_check	IPT2(IU32,	addr, IU16,	val);
typedef	void	TYPE_sas_PW32_no_check	IPT2(IU32,	addr, IU32,	val);
typedef	IU8 *	TYPE_getPtrToPhysAddrByte	IPT1(IU32,	phys_addr);
typedef	IU8 *	TYPE_get_byte_addr	IPT1(IU32,	phys_addr);
typedef	IU8 *	TYPE_getPtrToLinAddrByte	IPT1(IU32,	lin_addr);
typedef	IBOOL	TYPE_sas_init_pm_selectors	IPT2(IU16,	sel1, IU16,	sel2);
typedef	void	TYPE_sas_overwrite_memory	IPT2(IU32,	addr, IU32,	length);
typedef	void	TYPE_sas_PWS	IPT3(IU32,	dest, IU8 *,	src, IU32,	len);
typedef	void	TYPE_sas_PWS_no_check	IPT3(IU32,	dest, IU8 *,	src, IU32,	len);
typedef	void	TYPE_sas_PRS	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
typedef	void	TYPE_sas_PRS_no_check	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
typedef	IBOOL	TYPE_sas_PigCmpPage	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
typedef	IU8 *	TYPE_sas_touch	IPT2(IU32,	addr, IU32,	length);
typedef	IBOOL	TYPE_IOVirtualised	IPT4(IU16,	port, IU32 *,	value, IU32,	offset, IU8,	width);
typedef	IU32	TYPE_VirtualiseInstruction	IPT4(IU32,	eipInRom, IUH,	size, IU32,	linearAddrOrPort, IU32,	dataIn);
typedef	IBOOL	TYPE_IsPageInstanceData	IPT1(IU32,	physAddr);

struct	SasVector	{
	IU32	(*Sas_memory_size)	IPT0();
	void	(*Sas_connect_memory)	IPT3(IU32,	lo_addr, IU32,	Int_addr, SAS_MEM_TYPE,	type);
	void	(*Sas_enable_20_bit_wrapping)	IPT0();
	void	(*Sas_disable_20_bit_wrapping)	IPT0();
	IBOOL	(*Sas_twenty_bit_wrapping_enabled)	IPT0();
	SAS_MEM_TYPE	(*Sas_memory_type)	IPT1(IU32,	addr);
	IU8	(*Sas_hw_at)	IPT1(IU32,	addr);
	IU16	(*Sas_w_at)	IPT1(IU32,	addr);
	IU32	(*Sas_dw_at)	IPT1(IU32,	addr);
	IU8	(*Sas_hw_at_no_check)	IPT1(IU32,	addr);
	IU16	(*Sas_w_at_no_check)	IPT1(IU32,	addr);
	IU32	(*Sas_dw_at_no_check)	IPT1(IU32,	addr);
	void	(*Sas_store)	IPT2(IU32,	addr, IU8,	val);
	void	(*Sas_storew)	IPT2(IU32,	addr, IU16,	val);
	void	(*Sas_storedw)	IPT2(IU32,	addr, IU32,	val);
	void	(*Sas_store_no_check)	IPT2(IU32,	addr, IU8,	val);
	void	(*Sas_storew_no_check)	IPT2(IU32,	addr, IU16,	val);
	void	(*Sas_storedw_no_check)	IPT2(IU32,	addr, IU32,	val);
	void	(*Sas_loads)	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
	void	(*Sas_stores)	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
	void	(*Sas_loads_no_check)	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
	void	(*Sas_stores_no_check)	IPT3(IU32,	addr, IU8 *,	stringptr, IU32,	len);
	void	(*Sas_move_bytes_forward)	IPT3(IU32,	src, IU32,	dest, IU32,	len);
	void	(*Sas_move_words_forward)	IPT3(IU32,	src, IU32,	dest, IU32,	len);
	void	(*Sas_move_doubles_forward)	IPT3(IU32,	src, IU32,	dest, IU32,	len);
	void	(*Sas_fills)	IPT3(IU32,	dest, IU8,	val, IU32,	len);
	void	(*Sas_fillsw)	IPT3(IU32,	dest, IU16,	val, IU32,	len);
	void	(*Sas_fillsdw)	IPT3(IU32,	dest, IU32,	val, IU32,	len);
	IU8 *	(*Sas_scratch_address)	IPT1(IU32,	length);
	IU8 *	(*Sas_transbuf_address)	IPT2(IU32,	dest_addr, IU32,	length);
	void	(*Sas_loads_to_transbuf)	IPT3(IU32,	src_addr, IU8 *,	dest_addr, IU32,	length);
	void	(*Sas_stores_from_transbuf)	IPT3(IU32,	dest_addr, IU8 *,	src_addr, IU32,	length);
	IU8	(*Sas_PR8)	IPT1(IU32,	addr);
	IU16	(*Sas_PR16)	IPT1(IU32,	addr);
	IU32	(*Sas_PR32)	IPT1(IU32,	addr);
	void	(*Sas_PW8)	IPT2(IU32,	addr, IU8,	val);
	void	(*Sas_PW16)	IPT2(IU32,	addr, IU16,	val);
	void	(*Sas_PW32)	IPT2(IU32,	addr, IU32,	val);
	void	(*Sas_PW8_no_check)	IPT2(IU32,	addr, IU8,	val);
	void	(*Sas_PW16_no_check)	IPT2(IU32,	addr, IU16,	val);
	void	(*Sas_PW32_no_check)	IPT2(IU32,	addr, IU32,	val);
	IU8 *	(*SasPtrToPhysAddrByte)	IPT1(IU32,	phys_addr);
	IU8 *	(*Sas_get_byte_addr)	IPT1(IU32,	phys_addr);
	IU8 *	(*SasPtrToLinAddrByte)	IPT1(IU32,	lin_addr);
	IBOOL	(*SasRegisterVirtualSelectors)	IPT2(IU16,	sel1, IU16,	sel2);
	void	(*Sas_overwrite_memory)	IPT2(IU32,	addr, IU32,	length);
	void	(*Sas_PWS)	IPT3(IU32,	dest, IU8 *,	src, IU32,	len);
	void	(*Sas_PWS_no_check)	IPT3(IU32,	dest, IU8 *,	src, IU32,	len);
	void	(*Sas_PRS)	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
	void	(*Sas_PRS_no_check)	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
	IBOOL	(*Sas_PigCmpPage)	IPT3(IU32,	src, IU8 *,	dest, IU32,	len);
	IU8 *	(*Sas_touch)	IPT2(IU32,	addr, IU32,	length);
	IBOOL	(*IOVirtualised)	IPT4(IU16,	port, IU32 *,	value, IU32,	offset, IU8,	width);
	IU32	(*SasVirtualiseInstruction)	IPT4(IU32,	eipInRom, IUH,	size, IU32,	linearAddrOrPort, IU32,	dataIn);
	IBOOL	(*IsPageInstanceData)	IPT1(IU32,	physAddr);
};

extern	struct	SasVector	Sas;

#ifdef	CCPU
IMPORT	IU32	c_sas_memory_size	IPT0();
#define	sas_memory_size()	c_sas_memory_size()
#else	/* CCPU */

#ifdef PROD
#define	sas_memory_size()	(*(Sas.Sas_memory_size))()
#else /* PROD */
IMPORT	IU32	sas_memory_size	IPT0();
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_connect_memory	IPT3(IU32, lo_addr, IU32, Int_addr, SAS_MEM_TYPE, type);
#define	sas_connect_memory(lo_addr, Int_addr, type)	c_sas_connect_memory(lo_addr, Int_addr, type)
#else	/* CCPU */

#ifdef PROD
#define	sas_connect_memory(lo_addr, Int_addr, type)	(*(Sas.Sas_connect_memory))(lo_addr, Int_addr, type)
#else /* PROD */
IMPORT	void	sas_connect_memory	IPT3(IU32, lo_addr, IU32, Int_addr, SAS_MEM_TYPE, type);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_enable_20_bit_wrapping	IPT0();
#define	sas_enable_20_bit_wrapping()	c_sas_enable_20_bit_wrapping()
#else	/* CCPU */

#ifdef PROD
#define	sas_enable_20_bit_wrapping()	(*(Sas.Sas_enable_20_bit_wrapping))()
#else /* PROD */
IMPORT	void	sas_enable_20_bit_wrapping	IPT0();
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_disable_20_bit_wrapping	IPT0();
#define	sas_disable_20_bit_wrapping()	c_sas_disable_20_bit_wrapping()
#else	/* CCPU */

#ifdef PROD
#define	sas_disable_20_bit_wrapping()	(*(Sas.Sas_disable_20_bit_wrapping))()
#else /* PROD */
IMPORT	void	sas_disable_20_bit_wrapping	IPT0();
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IBOOL	c_sas_twenty_bit_wrapping_enabled	IPT0();
#define	sas_twenty_bit_wrapping_enabled()	c_sas_twenty_bit_wrapping_enabled()
#else	/* CCPU */

#ifdef PROD
#define	sas_twenty_bit_wrapping_enabled()	(*(Sas.Sas_twenty_bit_wrapping_enabled))()
#else /* PROD */
IMPORT	IBOOL	sas_twenty_bit_wrapping_enabled	IPT0();
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	SAS_MEM_TYPE	c_sas_memory_type	IPT1(IU32, addr);
#define	sas_memory_type(addr)	c_sas_memory_type(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_memory_type(addr)	(*(Sas.Sas_memory_type))(addr)
#else /* PROD */
IMPORT	SAS_MEM_TYPE	sas_memory_type	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8	c_sas_hw_at	IPT1(IU32, addr);
#define	sas_hw_at(addr)	c_sas_hw_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_hw_at(addr)	(*(Sas.Sas_hw_at))(addr)
#else /* PROD */
IMPORT	IU8	sas_hw_at	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU16	c_sas_w_at	IPT1(IU32, addr);
#define	sas_w_at(addr)	c_sas_w_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_w_at(addr)	(*(Sas.Sas_w_at))(addr)
#else /* PROD */
IMPORT	IU16	sas_w_at	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU32	c_sas_dw_at	IPT1(IU32, addr);
#define	sas_dw_at(addr)	c_sas_dw_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_dw_at(addr)	(*(Sas.Sas_dw_at))(addr)
#else /* PROD */
IMPORT	IU32	sas_dw_at	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8	c_sas_hw_at	IPT1(IU32, addr);
#define	sas_hw_at_no_check(addr)	c_sas_hw_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_hw_at_no_check(addr)	(*(Sas.Sas_hw_at_no_check))(addr)
#else /* PROD */
IMPORT	IU8	sas_hw_at_no_check	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU16	c_sas_w_at	IPT1(IU32, addr);
#define	sas_w_at_no_check(addr)	c_sas_w_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_w_at_no_check(addr)	(*(Sas.Sas_w_at_no_check))(addr)
#else /* PROD */
IMPORT	IU16	sas_w_at_no_check	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU32	c_sas_dw_at	IPT1(IU32, addr);
#define	sas_dw_at_no_check(addr)	c_sas_dw_at(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_dw_at_no_check(addr)	(*(Sas.Sas_dw_at_no_check))(addr)
#else /* PROD */
IMPORT	IU32	sas_dw_at_no_check	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_store	IPT2(IU32, addr, IU8, val);
#define	sas_store(addr, val)	c_sas_store(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_store(addr, val)	(*(Sas.Sas_store))(addr, val)
#else /* PROD */
IMPORT	void	sas_store	IPT2(IU32, addr, IU8, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_storew	IPT2(IU32, addr, IU16, val);
#define	sas_storew(addr, val)	c_sas_storew(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_storew(addr, val)	(*(Sas.Sas_storew))(addr, val)
#else /* PROD */
IMPORT	void	sas_storew	IPT2(IU32, addr, IU16, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_storedw	IPT2(IU32, addr, IU32, val);
#define	sas_storedw(addr, val)	c_sas_storedw(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_storedw(addr, val)	(*(Sas.Sas_storedw))(addr, val)
#else /* PROD */
IMPORT	void	sas_storedw	IPT2(IU32, addr, IU32, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_store	IPT2(IU32, addr, IU8, val);
#define	sas_store_no_check(addr, val)	c_sas_store(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_store_no_check(addr, val)	(*(Sas.Sas_store_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_store_no_check	IPT2(IU32, addr, IU8, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_storew	IPT2(IU32, addr, IU16, val);
#define	sas_storew_no_check(addr, val)	c_sas_storew(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_storew_no_check(addr, val)	(*(Sas.Sas_storew_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_storew_no_check	IPT2(IU32, addr, IU16, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_storedw	IPT2(IU32, addr, IU32, val);
#define	sas_storedw_no_check(addr, val)	c_sas_storedw(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_storedw_no_check(addr, val)	(*(Sas.Sas_storedw_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_storedw_no_check	IPT2(IU32, addr, IU32, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_loads	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#define	sas_loads(addr, stringptr, len)	c_sas_loads(addr, stringptr, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_loads(addr, stringptr, len)	(*(Sas.Sas_loads))(addr, stringptr, len)
#else /* PROD */
IMPORT	void	sas_loads	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_stores	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#define	sas_stores(addr, stringptr, len)	c_sas_stores(addr, stringptr, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_stores(addr, stringptr, len)	(*(Sas.Sas_stores))(addr, stringptr, len)
#else /* PROD */
IMPORT	void	sas_stores	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_loads_no_check	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#define	sas_loads_no_check(addr, stringptr, len)	c_sas_loads_no_check(addr, stringptr, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_loads_no_check(addr, stringptr, len)	(*(Sas.Sas_loads_no_check))(addr, stringptr, len)
#else /* PROD */
IMPORT	void	sas_loads_no_check	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_stores_no_check	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#define	sas_stores_no_check(addr, stringptr, len)	c_sas_stores_no_check(addr, stringptr, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_stores_no_check(addr, stringptr, len)	(*(Sas.Sas_stores_no_check))(addr, stringptr, len)
#else /* PROD */
IMPORT	void	sas_stores_no_check	IPT3(IU32, addr, IU8 *, stringptr, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_move_bytes_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#define	sas_move_bytes_forward(src, dest, len)	c_sas_move_bytes_forward(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_move_bytes_forward(src, dest, len)	(*(Sas.Sas_move_bytes_forward))(src, dest, len)
#else /* PROD */
IMPORT	void	sas_move_bytes_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_move_words_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#define	sas_move_words_forward(src, dest, len)	c_sas_move_words_forward(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_move_words_forward(src, dest, len)	(*(Sas.Sas_move_words_forward))(src, dest, len)
#else /* PROD */
IMPORT	void	sas_move_words_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_move_doubles_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#define	sas_move_doubles_forward(src, dest, len)	c_sas_move_doubles_forward(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_move_doubles_forward(src, dest, len)	(*(Sas.Sas_move_doubles_forward))(src, dest, len)
#else /* PROD */
IMPORT	void	sas_move_doubles_forward	IPT3(IU32, src, IU32, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_fills	IPT3(IU32, dest, IU8, val, IU32, len);
#define	sas_fills(dest, val, len)	c_sas_fills(dest, val, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_fills(dest, val, len)	(*(Sas.Sas_fills))(dest, val, len)
#else /* PROD */
IMPORT	void	sas_fills	IPT3(IU32, dest, IU8, val, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_fillsw	IPT3(IU32, dest, IU16, val, IU32, len);
#define	sas_fillsw(dest, val, len)	c_sas_fillsw(dest, val, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_fillsw(dest, val, len)	(*(Sas.Sas_fillsw))(dest, val, len)
#else /* PROD */
IMPORT	void	sas_fillsw	IPT3(IU32, dest, IU16, val, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_fillsdw	IPT3(IU32, dest, IU32, val, IU32, len);
#define	sas_fillsdw(dest, val, len)	c_sas_fillsdw(dest, val, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_fillsdw(dest, val, len)	(*(Sas.Sas_fillsdw))(dest, val, len)
#else /* PROD */
IMPORT	void	sas_fillsdw	IPT3(IU32, dest, IU32, val, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_sas_scratch_address	IPT1(IU32, length);
#define	sas_scratch_address(length)	c_sas_scratch_address(length)
#else	/* CCPU */

#ifdef PROD
#define	sas_scratch_address(length)	(*(Sas.Sas_scratch_address))(length)
#else /* PROD */
IMPORT	IU8 *	sas_scratch_address	IPT1(IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_sas_transbuf_address	IPT2(IU32, dest_addr, IU32, length);
#define	sas_transbuf_address(dest_addr, length)	c_sas_transbuf_address(dest_addr, length)
#else	/* CCPU */

#ifdef PROD
#define	sas_transbuf_address(dest_addr, length)	(*(Sas.Sas_transbuf_address))(dest_addr, length)
#else /* PROD */
IMPORT	IU8 *	sas_transbuf_address	IPT2(IU32, dest_addr, IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_loads	IPT3(IU32, src_addr, IU8 *, dest_addr, IU32, length);
#define	sas_loads_to_transbuf(src_addr, dest_addr, length)	c_sas_loads(src_addr, dest_addr, length)
#else	/* CCPU */

#ifdef PROD
#define	sas_loads_to_transbuf(src_addr, dest_addr, length)	(*(Sas.Sas_loads_to_transbuf))(src_addr, dest_addr, length)
#else /* PROD */
IMPORT	void	sas_loads_to_transbuf	IPT3(IU32, src_addr, IU8 *, dest_addr, IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_stores	IPT3(IU32, dest_addr, IU8 *, src_addr, IU32, length);
#define	sas_stores_from_transbuf(dest_addr, src_addr, length)	c_sas_stores(dest_addr, src_addr, length)
#else	/* CCPU */

#ifdef PROD
#define	sas_stores_from_transbuf(dest_addr, src_addr, length)	(*(Sas.Sas_stores_from_transbuf))(dest_addr, src_addr, length)
#else /* PROD */
IMPORT	void	sas_stores_from_transbuf	IPT3(IU32, dest_addr, IU8 *, src_addr, IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8	phy_r8	IPT1(IU32, addr);
#define	sas_PR8(addr)	phy_r8(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_PR8(addr)	(*(Sas.Sas_PR8))(addr)
#else /* PROD */
IMPORT	IU8	sas_PR8	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU16	phy_r16	IPT1(IU32, addr);
#define	sas_PR16(addr)	phy_r16(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_PR16(addr)	(*(Sas.Sas_PR16))(addr)
#else /* PROD */
IMPORT	IU16	sas_PR16	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU32	phy_r32	IPT1(IU32, addr);
#define	sas_PR32(addr)	phy_r32(addr)
#else	/* CCPU */

#ifdef PROD
#define	sas_PR32(addr)	(*(Sas.Sas_PR32))(addr)
#else /* PROD */
IMPORT	IU32	sas_PR32	IPT1(IU32, addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w8	IPT2(IU32, addr, IU8, val);
#define	sas_PW8(addr, val)	phy_w8(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW8(addr, val)	(*(Sas.Sas_PW8))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW8	IPT2(IU32, addr, IU8, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w16	IPT2(IU32, addr, IU16, val);
#define	sas_PW16(addr, val)	phy_w16(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW16(addr, val)	(*(Sas.Sas_PW16))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW16	IPT2(IU32, addr, IU16, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w32	IPT2(IU32, addr, IU32, val);
#define	sas_PW32(addr, val)	phy_w32(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW32(addr, val)	(*(Sas.Sas_PW32))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW32	IPT2(IU32, addr, IU32, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w8_no_check	IPT2(IU32, addr, IU8, val);
#define	sas_PW8_no_check(addr, val)	phy_w8_no_check(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW8_no_check(addr, val)	(*(Sas.Sas_PW8_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW8_no_check	IPT2(IU32, addr, IU8, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w16_no_check	IPT2(IU32, addr, IU16, val);
#define	sas_PW16_no_check(addr, val)	phy_w16_no_check(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW16_no_check(addr, val)	(*(Sas.Sas_PW16_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW16_no_check	IPT2(IU32, addr, IU16, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	phy_w32_no_check	IPT2(IU32, addr, IU32, val);
#define	sas_PW32_no_check(addr, val)	phy_w32_no_check(addr, val)
#else	/* CCPU */

#ifdef PROD
#define	sas_PW32_no_check(addr, val)	(*(Sas.Sas_PW32_no_check))(addr, val)
#else /* PROD */
IMPORT	void	sas_PW32_no_check	IPT2(IU32, addr, IU32, val);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_GetPhyAdd	IPT1(IU32, phys_addr);
#define	getPtrToPhysAddrByte(phys_addr)	c_GetPhyAdd(phys_addr)
#else	/* CCPU */

#ifdef PROD
#define	getPtrToPhysAddrByte(phys_addr)	(*(Sas.SasPtrToPhysAddrByte))(phys_addr)
#else /* PROD */
IMPORT	IU8 *	getPtrToPhysAddrByte	IPT1(IU32, phys_addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_get_byte_addr	IPT1(IU32, phys_addr);
#define	get_byte_addr(phys_addr)	c_get_byte_addr(phys_addr)
#else	/* CCPU */

#ifdef PROD
#define	get_byte_addr(phys_addr)	(*(Sas.Sas_get_byte_addr))(phys_addr)
#else /* PROD */
IMPORT	IU8 *	get_byte_addr	IPT1(IU32, phys_addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_GetLinAdd	IPT1(IU32, lin_addr);
#define	getPtrToLinAddrByte(lin_addr)	c_GetLinAdd(lin_addr)
#else	/* CCPU */

#ifdef PROD
#define	getPtrToLinAddrByte(lin_addr)	(*(Sas.SasPtrToLinAddrByte))(lin_addr)
#else /* PROD */
IMPORT	IU8 *	getPtrToLinAddrByte	IPT1(IU32, lin_addr);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IBOOL	c_SasRegisterVirtualSelectors	IPT2(IU16, sel1, IU16, sel2);
#define	sas_init_pm_selectors(sel1, sel2)	c_SasRegisterVirtualSelectors(sel1, sel2)
#else	/* CCPU */

#ifdef PROD
#define	sas_init_pm_selectors(sel1, sel2)	(*(Sas.SasRegisterVirtualSelectors))(sel1, sel2)
#else /* PROD */
IMPORT	IBOOL	sas_init_pm_selectors	IPT2(IU16, sel1, IU16, sel2);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU

#else	/* CCPU */

#ifdef PROD
#define	sas_overwrite_memory(addr, length)	(*(Sas.Sas_overwrite_memory))(addr, length)
#else /* PROD */
IMPORT	void	sas_overwrite_memory	IPT2(IU32, addr, IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_PWS	IPT3(IU32, dest, IU8 *, src, IU32, len);
#define	sas_PWS(dest, src, len)	c_sas_PWS(dest, src, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_PWS(dest, src, len)	(*(Sas.Sas_PWS))(dest, src, len)
#else /* PROD */
IMPORT	void	sas_PWS	IPT3(IU32, dest, IU8 *, src, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_PWS_no_check	IPT3(IU32, dest, IU8 *, src, IU32, len);
#define	sas_PWS_no_check(dest, src, len)	c_sas_PWS_no_check(dest, src, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_PWS_no_check(dest, src, len)	(*(Sas.Sas_PWS_no_check))(dest, src, len)
#else /* PROD */
IMPORT	void	sas_PWS_no_check	IPT3(IU32, dest, IU8 *, src, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_PRS	IPT3(IU32, src, IU8 *, dest, IU32, len);
#define	sas_PRS(src, dest, len)	c_sas_PRS(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_PRS(src, dest, len)	(*(Sas.Sas_PRS))(src, dest, len)
#else /* PROD */
IMPORT	void	sas_PRS	IPT3(IU32, src, IU8 *, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	void	c_sas_PRS_no_check	IPT3(IU32, src, IU8 *, dest, IU32, len);
#define	sas_PRS_no_check(src, dest, len)	c_sas_PRS_no_check(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_PRS_no_check(src, dest, len)	(*(Sas.Sas_PRS_no_check))(src, dest, len)
#else /* PROD */
IMPORT	void	sas_PRS_no_check	IPT3(IU32, src, IU8 *, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IBOOL	c_sas_PigCmpPage	IPT3(IU32, src, IU8 *, dest, IU32, len);
#define	sas_PigCmpPage(src, dest, len)	c_sas_PigCmpPage(src, dest, len)
#else	/* CCPU */

#ifdef PROD
#define	sas_PigCmpPage(src, dest, len)	(*(Sas.Sas_PigCmpPage))(src, dest, len)
#else /* PROD */
IMPORT	IBOOL	sas_PigCmpPage	IPT3(IU32, src, IU8 *, dest, IU32, len);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU8 *	c_sas_touch	IPT2(IU32, addr, IU32, length);
#define	sas_touch(addr, length)	c_sas_touch(addr, length)
#else	/* CCPU */

#ifdef PROD
#define	sas_touch(addr, length)	(*(Sas.Sas_touch))(addr, length)
#else /* PROD */
IMPORT	IU8 *	sas_touch	IPT2(IU32, addr, IU32, length);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IBOOL	c_IOVirtualised	IPT4(IU16, port, IU32 *, value, IU32, offset, IU8, width);
#define	IOVirtualised(port, value, offset, width)	c_IOVirtualised(port, value, offset, width)
#else	/* CCPU */

#ifdef PROD
#define	IOVirtualised(port, value, offset, width)	(*(Sas.IOVirtualised))(port, value, offset, width)
#else /* PROD */
IMPORT	IBOOL	IOVirtualised	IPT4(IU16, port, IU32 *, value, IU32, offset, IU8, width);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU
IMPORT	IU32	c_VirtualiseInstruction	IPT4(IU32, eipInRom, IUH, size, IU32, linearAddrOrPort, IU32, dataIn);
#define	VirtualiseInstruction(eipInRom, size, linearAddrOrPort, dataIn)	c_VirtualiseInstruction(eipInRom, size, linearAddrOrPort, dataIn)
#else	/* CCPU */

#ifdef PROD
#define	VirtualiseInstruction(eipInRom, size, linearAddrOrPort, dataIn)	(*(Sas.SasVirtualiseInstruction))(eipInRom, size, linearAddrOrPort, dataIn)
#else /* PROD */
IMPORT	IU32	VirtualiseInstruction	IPT4(IU32, eipInRom, IUH, size, IU32, linearAddrOrPort, IU32, dataIn);
#endif /*PROD*/

#endif	/* CCPU */

#ifdef	CCPU

#else	/* CCPU */

#ifdef PROD
#define	IsPageInstanceData(physAddr)	(*(Sas.IsPageInstanceData))(physAddr)
#else /* PROD */
IMPORT	IBOOL	IsPageInstanceData	IPT1(IU32, physAddr);
#endif /*PROD*/

#endif	/* CCPU */

#endif	/* _SAS4GEN_H_ */
/*======================================== END ========================================*/