forked from PeterLemon/RaspberryPi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel8.asm
1338 lines (1150 loc) · 46.2 KB
/
kernel8.asm
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
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; Raspberry Pi 3 'Bare Metal' Multiple Tags Demo by krom (Peter Lemon):
; 1. Run Tags & Populate Values
; 2. Setup Frame Buffer
; 3. Copy Tags Value HEX Characters To Frame Buffer Using CPU
macro PrintText Text, TextLength {
local .DrawChars,.DrawChar
adr x1,Font ; X1 = Characters
adr x2,Text ; X2 = Text Offset
mov w3,TextLength ; W3 = Number Of Text Characters To Print
.DrawChars:
mov w4,CHAR_Y ; W4 = Character Row Counter
ldrb x5,[x2],1 ; X5 = Next Text Character
add x5,x1,x5,lsl 6 ; Add Shift To Correct Position In Font (* 64)
.DrawChar:
ldr x6,[x5],8 ; Load Font Text Character Row
str x6,[x0],8 ; Store Font Text Character Row To Frame Buffer
add x0,x0,SCREEN_X - CHAR_X ; Jump Down 1 Scanline, Jump Back 1 Char
subs w4,w4,1 ; Decrement Character Row Counter
b.ne .DrawChar ; IF (Character Row Counter != 0) DrawChar
subs w3,w3,1 ; Subtract Number Of Text Characters To Print
mov x4,(SCREEN_X * CHAR_Y) - CHAR_X
sub x0,x0,x4 ; Jump To Top Of Char, Jump Forward 1 Char
b.ne .DrawChars ; IF (Number Of Text Characters != 0) Continue To Print Characters
}
macro PrintValueLE Value, ValueLength {
local .DrawHEXChars,.DrawHexNum,.DrawHexNumB,.DrawHEXChar,.DrawHEXCharB
adr x1,Font ; X1 = Characters
adr x2,Value ; X2 = Text Offset
add x2,x2,ValueLength - 1
mov w3,ValueLength ; W3 = Number Of HEX Characters To Print
.DrawHEXChars:
ldrb w4,[x2],-1 ; W4 = Next 2 HEX Characters
lsr w5,w4,4 ; Get 2nd Nibble
cmp w5,$9
add w5,w5,$30
b.le .DrawHexNum
add w5,w5,$7
.DrawHexNum:
add x5,x1,x5,lsl 6 ; Add Shift To Correct Position In Font (* 64)
mov w6,CHAR_Y ; W6 = Character Row Counter
.DrawHEXChar:
ldr x7,[x5],8 ; Load Font Text Character Row
str x7,[x0],8 ; Store Font Text Character Row To Frame Buffer
add x0,x0,SCREEN_X - CHAR_X ; Jump Down 1 Scanline, Jump Back 1 Char
subs w6,w6,1 ; Decrement Character Row Counter
b.ne .DrawHEXChar ; IF (Character Row Counter != 0) DrawChar
mov x5,(SCREEN_X * CHAR_Y) - CHAR_X
sub x0,x0,x5 ; Jump To Top Of Char, Jump Forward 1 Char
and w5,w4,$F ; Get 1st Nibble
cmp w5,$9
add w5,w5,$30
b.le .DrawHexNumB
add w5,w5,$7
.DrawHexNumB:
add x5,x1,x5,lsl 6 ; Add Shift To Correct Position In Font (* 64)
mov w6,CHAR_Y ; W6 = Character Row Counter
.DrawHEXCharB:
ldr x7,[x5],8 ; Load Font Text Character Row
str x7,[x0],8 ; Store Font Text Character Row To Frame Buffer
add x0,x0,SCREEN_X - CHAR_X ; Jump Down 1 Scanline, Jump Back 1 Char
subs w6,w6,1 ; Decrement Character Row Counter
b.ne .DrawHEXCharB ; IF (Character Row Counter != 0) DrawChar
subs w3,w3,1 ; Subtract Number Of HEX Characters To Print
mov x4,(SCREEN_X * CHAR_Y) - CHAR_X
sub x0,x0,x4 ; Jump To Top Of Char, Jump Forward 1 Char
b.ne .DrawHEXChars ; IF (Number Of Hex Characters != 0) Continue To Print Characters
}
macro PrintValueBE Value, ValueLength {
local .DrawHEXChars,.DrawHexNum,.DrawHexNumB,.DrawHEXChar,.DrawHEXCharB
adr x1,Font ; X1 = Characters
adr x2,Value ; X2 = Text Offset
mov w3,ValueLength ; W3 = Number Of HEX Characters To Print
.DrawHEXChars:
ldrb w4,[x2],1 ; W4 = Next 2 HEX Characters
lsr w5,w4,4 ; Get 2nd Nibble
cmp w5,$9
add w5,w5,$30
b.le .DrawHexNum
add w5,w5,$7
.DrawHexNum:
add x5,x1,x5,lsl 6 ; Add Shift To Correct Position In Font (* 64)
mov w6,CHAR_Y ; W6 = Character Row Counter
.DrawHEXChar:
ldr x7,[x5],8 ; Load Font Text Character Row
str x7,[x0],8 ; Store Font Text Character Row To Frame Buffer
add x0,x0,SCREEN_X - CHAR_X ; Jump Down 1 Scanline, Jump Back 1 Char
subs w6,w6,1 ; Decrement Character Row Counter
b.ne .DrawHEXChar ; IF (Character Row Counter != 0) DrawChar
mov x5,(SCREEN_X * CHAR_Y) - CHAR_X
sub x0,x0,x5 ; Jump To Top Of Char, Jump Forward 1 Char
and w5,w4,$F ; Get 1st Nibble
cmp w5,$9
add w5,w5,$30
b.le .DrawHexNumB
add w5,w5,$7
.DrawHexNumB:
add x5,x1,x5,lsl 6 ; Add Shift To Correct Position In Font (* 64)
mov w6,CHAR_Y ; W6 = Character Row Counter
.DrawHEXCharB:
ldr x7,[x5],8 ; Load Font Text Character Row
str x7,[x0],8 ; Store Font Text Character Row To Frame Buffer
add x0,x0,SCREEN_X - CHAR_X ; Jump Down 1 Scanline, Jump Back 1 Char
subs w6,w6,1 ; Decrement Character Row Counter
b.ne .DrawHEXCharB ; IF (Character Row Counter != 0) DrawChar
subs w3,w3,1 ; Subtract Number Of HEX Characters To Print
mov x4,(SCREEN_X * CHAR_Y) - CHAR_X
sub x0,x0,x4 ; Jump To Top Of Char, Jump Forward 1 Char
b.ne .DrawHEXChars ; IF (Number Of Hex Characters != 0) Continue To Print Characters
}
macro PrintTAGValueLE Text, TextLength, Value, ValueLength {
PrintText Text, TextLength
PrintValueLE Value, ValueLength
}
macro PrintTAGValueBE Text, TextLength, Value, ValueLength {
PrintText Text, TextLength
PrintValueBE Value, ValueLength
}
code64
processor cpu64_v8
format binary as 'img'
include 'LIB\R_PI2.INC'
; Setup Frame Buffer
SCREEN_X = 640
SCREEN_Y = 480
BITS_PER_PIXEL = 8
; Setup Characters
CHAR_X = 8
CHAR_Y = 8
org $0000
; Return CPU ID (0..3) Of The CPU Executed On
mrs x0,MPIDR_EL1 ; X0 = Multiprocessor Affinity Register (MPIDR)
ands x0,x0,3 ; X0 = CPU ID (Bits 0..1)
b.ne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)
; Run Tags
mov w0,MAIL_BASE
orr w0,w0,PERIPHERAL_BASE
mov w1,TAGS_STRUCT + MAIL_TAGS
str w1,[x0,MAIL_WRITE] ; Mail Box Write
FB_Init:
mov w0,FB_STRUCT + MAIL_TAGS
mov x1,MAIL_BASE
orr x1,x1,PERIPHERAL_BASE
str w0,[x1,MAIL_WRITE + MAIL_TAGS] ; Mail Box Write
ldr w10,[FB_POINTER] ; W10 = Frame Buffer Pointer
cbz w10,FB_Init ; IF (Frame Buffer Pointer == Zero) Re-Initialize Frame Buffer
and w10,w10,$3FFFFFFF ; Convert Mail Box Frame Buffer Pointer From BUS Address To Physical Address ($CXXXXXXX -> $3XXXXXXX)
adr x0,FB_POINTER
str w10,[x0] ; Store Frame Buffer Pointer Physical Address
mov w1,8 + (SCREEN_X * 8)
add w0,w10,w1 ; Place Text At XY Position 8,8
PrintText VCText, 10
mov w1,16 + (SCREEN_X * 16)
add w0,w10,w1 ; Place Text At XY Position 16,16
PrintTAGValueLE VCFirmwareRevisionText, 19, VCFirmwareRevisionValue, 4
mov w1,8 + (SCREEN_X * 32)
add w0,w10,w1 ; Place Text At XY Position 8,32
PrintText HWText, 9
mov w1,16 + (SCREEN_X * 40)
add w0,w10,w1 ; Place Text At XY Position 16,40
PrintTAGValueLE HWBoardModelText, 19, HWBoardModelValue, 4
mov w1,16 + (SCREEN_X * 48)
add w0,w10,w1 ; Place Text At XY Position 16,48
PrintTAGValueLE HWBoardRevisionText, 19, HWBoardRevisionValue, 4
mov w1,16 + (SCREEN_X * 56)
add w0,w10,w1 ; Place Text At XY Position 16,56
PrintTAGValueBE HWBoardMACAddressText, 19, HWBoardMACAddressValue, 6
mov w1,16 + (SCREEN_X * 64)
add w0,w10,w1 ; Place Text At XY Position 16,64
PrintTAGValueLE HWBoardSerialText, 19, HWBoardSerialValue, 8
mov w1,16 + (SCREEN_X * 72)
add w0,w10,w1 ; Place Text At XY Position 16,72
PrintTAGValueLE HWARMMemoryBaseAddressText, 25, HWARMMemoryBaseAddressValue, 4
PrintTAGValueLE SizeText, 7, HWARMMemorySizeValue, 4
mov w1,16 + (SCREEN_X * 80)
add w0,w10,w1 ; Place Text At XY Position 16,80
PrintTAGValueLE HWVCMemoryBaseAddressText, 25, HWVCMemoryBaseAddressValue, 4
PrintTAGValueLE SizeText, 7, HWVCMemorySizeValue, 4
mov w1,8 + (SCREEN_X * 96)
add w0,w10,w1 ; Place Text At XY Position 8,96
PrintText SRMText, 27
mov w1,104 ; 16 + (SCREEN_X * 104)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,104
PrintTAGValueLE SRMDMAChannelsText, 14, SRMDMAChannelsValue, 4
mov w1,120 ; 8 + (SCREEN_X * 120)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,8
add w0,w10,w1 ; Place Text At XY Position 8,120
PrintText PWRText, 6
mov w1,128 ; 16 + (SCREEN_X * 128)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,128
PrintTAGValueLE PWRSDCardIDText, 12, PWRSDCardIDValue, 4
PrintTAGValueLE StateText, 8, PWRSDCardStateValue, 4
PrintTAGValueLE TimingText, 9, PWRSDCardTimingValue, 4
mov w1,136 ; 16 + (SCREEN_X * 136)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,136
PrintTAGValueLE PWRUART0IDText, 12, PWRUART0IDValue, 4
PrintTAGValueLE StateText, 8, PWRUART0StateValue, 4
PrintTAGValueLE TimingText, 9, PWRUART0TimingValue, 4
mov w1,144 ; 16 + (SCREEN_X * 144)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place text at XY Position 16,144
PrintTAGValueLE PWRUART1IDText, 12, PWRUART1IDValue, 4
PrintTAGValueLE StateText, 8, PWRUART1StateValue, 4
PrintTAGValueLE TimingText, 9, PWRUART1TimingValue, 4
mov w1,152 ; 16 + (SCREEN_X * 152)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,152
PrintTAGValueLE PWRUSBHCDIDText, 12, PWRUSBHCDIDValue, 4
PrintTAGValueLE StateText, 8, PWRUSBHCDStateValue, 4
PrintTAGValueLE TimingText, 9, PWRUSBHCDTimingValue, 4
mov w1,160 ; 16 + (SCREEN_X * 160)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,160
PrintTAGValueLE PWRI2C0IDText, 12, PWRI2C0IDValue, 4
PrintTAGValueLE StateText, 8, PWRI2C0StateValue, 4
PrintTAGValueLE TimingText, 9, PWRI2C0TimingValue, 4
mov w1,168 ; 16 + (SCREEN_X * 168)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,168
PrintTAGValueLE PWRI2C1IDText, 12, PWRI2C1IDValue, 4
PrintTAGValueLE StateText, 8, PWRI2C1StateValue, 4
PrintTAGValueLE TimingText, 9, PWRI2C1TimingValue, 4
mov w1,176 ; 16 + (SCREEN_X * 176)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,176
PrintTAGValueLE PWRI2C2IDText, 12, PWRI2C2IDValue, 4
PrintTAGValueLE StateText, 8, PWRI2C2StateValue, 4
PrintTAGValueLE TimingText, 9, PWRI2C2TimingValue, 4
mov w1,184 ; 16 + (SCREEN_X * 184)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,184
PrintTAGValueLE PWRSPIIDText, 12, PWRSPIIDValue, 4
PrintTAGValueLE StateText, 8, PWRSPIStateValue, 4
PrintTAGValueLE TimingText, 9, PWRSPITimingValue, 4
mov w1,192 ; 16 + (SCREEN_X * 192)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,192
PrintTAGValueLE PWRCCP2TXIDText, 12, PWRCCP2TXIDValue, 4
PrintTAGValueLE StateText, 8, PWRCCP2TXStateValue, 4
PrintTAGValueLE TimingText, 9, PWRCCP2TXTimingValue, 4
mov w1,208 ; 8 + (SCREEN_X * 208)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,8
add w0,w10,w1 ; Place Text At XY Position 8,208
PrintText CLKText, 7
mov w1,216 ; 16 + (SCREEN_X * 216)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,216
PrintTAGValueLE CLKEMMCIDText, 10, CLKEMMCIDValue, 4
PrintTAGValueLE StateText, 8, CLKEMMCStateValue, 4
PrintTAGValueLE RateText, 7, CLKEMMCRateValue, 4
PrintTAGValueLE MaxText, 6, CLKEMMCMaxValue, 4
PrintTAGValueLE MinText, 6, CLKEMMCMinValue, 4
mov w1,224 ; 16 + (SCREEN_X * 224)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,224
PrintTAGValueLE CLKUARTIDText, 10, CLKUARTIDValue, 4
PrintTAGValueLE StateText, 8, CLKUARTStateValue, 4
PrintTAGValueLE RateText, 7, CLKUARTRateValue, 4
PrintTAGValueLE MaxText, 6, CLKUARTMaxValue, 4
PrintTAGValueLE MinText, 6, CLKUARTMinValue, 4
mov w1,232 ; 16 + (SCREEN_X * 232)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,232
PrintTAGValueLE CLKARMIDText, 10, CLKARMIDValue, 4
PrintTAGValueLE StateText, 8, CLKARMStateValue, 4
PrintTAGValueLE RateText, 7,CLKARMRateValue, 4
PrintTAGValueLE MaxText, 6,CLKARMMaxValue, 4
PrintTAGValueLE MinText, 6,CLKARMMinValue, 4
mov w1,240 ; 16 + (SCREEN_X * 240)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,240
PrintTAGValueLE CLKCOREIDText, 10, CLKCOREIDValue, 4
PrintTAGValueLE StateText, 8, CLKCOREStateValue, 4
PrintTAGValueLE RateText, 7, CLKCORERateValue, 4
PrintTAGValueLE MaxText, 6, CLKCOREMaxValue, 4
PrintTAGValueLE MinText, 6, CLKCOREMinValue, 4
mov w1,248 ; 16 + (SCREEN_X * 248)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,248
PrintTAGValueLE CLKV3DIDText, 10, CLKV3DIDValue, 4
PrintTAGValueLE StateText, 8, CLKV3DStateValue, 4
PrintTAGValueLE RateText, 7, CLKV3DRateValue, 4
PrintTAGValueLE MaxText, 6, CLKV3DMaxValue, 4
PrintTAGValueLE MinText, 6, CLKV3DMinValue, 4
mov w1,256 ; 16 + (SCREEN_X * 256)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,256
PrintTAGValueLE CLKH264IDText, 10, CLKH264IDValue, 4
PrintTAGValueLE StateText, 8, CLKH264StateValue, 4
PrintTAGValueLE RateText, 7, CLKH264RateValue, 4
PrintTAGValueLE MaxText, 6, CLKH264MaxValue, 4
PrintTAGValueLE MinText, 6, CLKH264MinValue, 4
mov w1,264 ; 16 + (SCREEN_X * 264)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,264
PrintTAGValueLE CLKISPIDText, 10, CLKISPIDValue, 4
PrintTAGValueLE StateText, 8, CLKISPStateValue, 4
PrintTAGValueLE RateText, 7, CLKISPRateValue, 4
PrintTAGValueLE MaxText, 6, CLKISPMaxValue, 4
PrintTAGValueLE MinText, 6, CLKISPMinValue, 4
mov w1,272 ; 16 + (SCREEN_X * 272)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,272
PrintTAGValueLE CLKSDRAMIDText, 10, CLKSDRAMIDValue, 4
PrintTAGValueLE StateText, 8, CLKSDRAMStateValue, 4
PrintTAGValueLE RateText, 7, CLKSDRAMRateValue, 4
PrintTAGValueLE MaxText, 6, CLKSDRAMMaxValue, 4
PrintTAGValueLE MinText, 6, CLKSDRAMMinValue, 4
mov w1,280 ; 16 + (SCREEN_X * 280)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,280
PrintTAGValueLE CLKPIXELIDText, 10, CLKPIXELIDValue, 4
PrintTAGValueLE StateText, 8, CLKPIXELStateValue, 4
PrintTAGValueLE RateText, 7, CLKPIXELRateValue, 4
PrintTAGValueLE MaxText, 6, CLKPIXELMaxValue, 4
PrintTAGValueLE MinText, 6, CLKPIXELMinValue, 4
mov w1,288 ; 16 + (SCREEN_X * 288)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,288
PrintTAGValueLE CLKPWMIDText, 10, CLKPWMIDValue, 4
PrintTAGValueLE StateText, 8, CLKPWMStateValue, 4
PrintTAGValueLE RateText, 7, CLKPWMRateValue, 4
PrintTAGValueLE MaxText, 6, CLKPWMMaxValue, 4
PrintTAGValueLE MinText, 6, CLKPWMMinValue, 4
mov w1,296 ; 16 + (SCREEN_X * 296)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,296
PrintTAGValueLE CLKTurboText, 7, CLKTurboValue, 4
mov w1,312 ; 8 + (SCREEN_X * 312)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,8
add w0,w10,w1 ; Place Text At XY Position 8,312
PrintText VLTText, 8
mov w1,320 ; 16 + (SCREEN_X * 320)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,320
PrintTAGValueLE VLTCoreIDText, 12, VLTCoreIDValue, 4
PrintTAGValueLE VoltageText, 10, VLTCoreValue, 4
PrintTAGValueLE MaxText, 6, VLTCoreMaxValue, 4
PrintTAGValueLE MinText, 6, VLTCoreMinValue, 4
mov w1,328 ; 16 + (SCREEN_X * 328)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,328
PrintTAGValueLE VLTSDRAM_CIDText, 12, VLTSDRAM_CIDValue, 4
PrintTAGValueLE VoltageText, 10, VLTSDRAM_CValue, 4
PrintTAGValueLE MaxText, 6, VLTSDRAM_CMaxValue, 4
PrintTAGValueLE MinText, 6, VLTSDRAM_CMinValue, 4
mov w1,336 ; 16 + (SCREEN_X * 336)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,336
PrintTAGValueLE VLTSDRAM_PIDText, 12, VLTSDRAM_PIDValue, 4
PrintTAGValueLE VoltageText, 10, VLTSDRAM_PValue, 4
PrintTAGValueLE MaxText, 6, VLTSDRAM_PMaxValue, 4
PrintTAGValueLE MinText, 6, VLTSDRAM_PMinValue, 4
mov w1,344 ; 16 + (SCREEN_X * 344)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,344
PrintTAGValueLE VLTSDRAM_IIDText, 12, VLTSDRAM_IIDValue, 4
PrintTAGValueLE VoltageText, 10, VLTSDRAM_IValue, 4
PrintTAGValueLE MaxText, 6, VLTSDRAM_IMaxValue, 4
PrintTAGValueLE MinText, 6, VLTSDRAM_IMinValue, 4
mov w1,352 ; 16 + (SCREEN_X * 352)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,352
PrintTAGValueLE VLTTemperatureText, 13, VLTTemperatureValue, 4
PrintTAGValueLE MaxText, 6, VLTTemperatureMaxValue, 4
mov w1,368 ; 8 + (SCREEN_X * 368)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,8
add w0,w10,w1 ; Place Text At XY Position 8,368
PrintText FBText, 13
mov w1,376 ; 16 + (SCREEN_X * 376)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,376
PrintText FBPhysicalDisplayText, 16
PrintTAGValueLE WidthText, 8, FBPhysicalDisplayWidthValue, 4
PrintTAGValueLE HeightText, 9, FBPhysicalDisplayHeightValue, 4
mov w1,384 ; 16 + (SCREEN_X * 384)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,384
PrintText FBVirtualBufferText, 16
PrintTAGValueLE WidthText, 8, FBVirtualBufferWidthValue, 4
PrintTAGValueLE HeightText, 9, FBVirtualBufferHeightValue, 4
mov w1,392 ; 16 + (SCREEN_X * 392)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,392
PrintTAGValueLE FBDepthText, 7, FBDepthValue, 4
PrintTAGValueLE FBPixelOrderText, 14, FBPixelOrderValue, 4
PrintTAGValueLE FBAlphaModeText, 13, FBAlphaModeValue, 4
PrintTAGValueLE FBPitchText, 8, FBPitchValue, 4
mov w1,400 ; 16 + (SCREEN_X * 400)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,400
PrintText FBVirtualOffsetText, 14
PrintTAGValueLE XText, 4, FBVirtualOffsetXValue, 4
PrintTAGValueLE YText, 4, FBVirtualOffsetYValue, 4
mov w1,408 ; 16 + (SCREEN_X * 408)
mov w2,SCREEN_X
mul w1,w1,w2
add w1,w1,16
add w0,w10,w1 ; Place Text At XY Position 16,408
PrintText FBOverscanText, 8
PrintTAGValueLE TopText, 6, FBOverscanTopValue, 4
PrintTAGValueLE BottomText, 9, FBOverscanBottomValue, 4
PrintTAGValueLE LeftText, 7, FBOverscanLeftValue, 4
PrintTAGValueLE RightText, 8, FBOverscanRightValue, 4
Loop:
b Loop
CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop
align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
dw $00000000 ; Buffer Request/Response Code
; Request Codes: $00000000 Process Request Response Codes: $80000000 Request Successful, $80000001 Partial Response
; Sequence Of Concatenated Tags
dw Set_Physical_Display ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw SCREEN_X ; Value Buffer
dw SCREEN_Y ; Value Buffer
dw Set_Virtual_Buffer ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw SCREEN_X ; Value Buffer
dw SCREEN_Y ; Value Buffer
dw Set_Depth ; Tag Identifier
dw $00000004 ; Value Buffer Size In Bytes
dw $00000004 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw BITS_PER_PIXEL ; Value Buffer
dw Set_Virtual_Offset ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
FB_OFFSET_X:
dw 0 ; Value Buffer
FB_OFFSET_Y:
dw 0 ; Value Buffer
dw Set_Palette ; Tag Identifier
dw $00000010 ; Value Buffer Size In Bytes
dw $00000010 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw 0 ; Value Buffer (Offset: First Palette Index To Set (0-255))
dw 2 ; Value Buffer (Length: Number Of Palette Entries To Set (1-256))
FB_PAL:
dw $00000000,$FFFFFFFF ; RGBA Palette Values (Offset To Offset+Length-1)
dw Allocate_Buffer ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
FB_POINTER:
dw 0 ; Value Buffer
dw 0 ; Value Buffer
dw $00000000 ; $0 (End Tag)
FB_STRUCT_END:
align 16
TAGS_STRUCT: ; Mailbox Property Interface Buffer Structure
dw TAGS_END - TAGS_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
dw $00000000 ; Buffer Request/Response Code
; Request Codes: $00000000 Process Request Response Codes: $80000000 Request Successful, $80000001 Partial Response
; Sequence Of Concatenated Tags
dw Get_Firmware_Revision ; Tag Identifier
dw $00000004 ; Value Buffer Size In Bytes
dw $00000004 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
VCFirmwareRevisionValue:
dw 0 ; Value Buffer
dw Get_Board_Model ; Tag Identifier
dw $00000004 ; Value Buffer Size In Bytes
dw $00000004 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWBoardModelValue:
dw 0 ; Value Buffer
dw Get_Board_Revision ; Tag Identifier
dw $00000004 ; Value Buffer Size In Bytes
dw $00000004 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWBoardRevisionValue:
dw 0 ; Value Buffer
dw Get_Board_MAC_Address ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000006 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWBoardMACAddressValue:
dd 0 ; Value Buffer
dw Get_Board_Serial ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWBoardSerialValue:
dd 0 ; Value Buffer
dw Get_ARM_Memory ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWARMMemoryBaseAddressValue:
dw 0 ; Value Buffer
HWARMMemorySizeValue:
dw 0 ; Value Buffer
dw Get_VC_Memory ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
HWVCMemoryBaseAddressValue:
dw 0 ; Value Buffer
HWVCMemorySizeValue:
dw 0 ; Value Buffer
dw Get_DMA_Channels ; Tag Identifier
dw $00000004 ; Value Buffer Size In Bytes
dw $00000004 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
SRMDMAChannelsValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRSDCardIDValue:
dw PWR_SD_Card_ID ; Value Buffer
PWRSDCardStateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRUART0IDValue:
dw PWR_UART0_ID ; Value Buffer
PWRUART0StateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRUART1IDValue:
dw PWR_UART1_ID ; Value Buffer
PWRUART1StateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRUSBHCDIDValue:
dw PWR_USB_HCD_ID ; Value Buffer
PWRUSBHCDStateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRI2C0IDValue:
dw PWR_I2C0_ID ; Value Buffer
PWRI2C0StateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRI2C1IDValue:
dw PWR_I2C1_ID ; Value Buffer
PWRI2C1StateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRI2C2IDValue:
dw PWR_I2C2_ID ; Value Buffer
PWRI2C2StateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRSPIIDValue:
dw PWR_SPI_ID ; Value Buffer
PWRSPIStateValue:
dw 0 ; Value Buffer
dw Get_Power_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
PWRCCP2TXIDValue:
dw PWR_CCP2TX_ID ; Value Buffer
PWRCCP2TXStateValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_SD_Card_ID ; Value Buffer
PWRSDCardTimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_UART0_ID ; Value Buffer
PWRUART0TimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_UART1_ID ; Value Buffer
PWRUART1TimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_USB_HCD_ID ; Value Buffer
PWRUSBHCDTimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_I2C0_ID ; Value Buffer
PWRI2C0TimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_I2C1_ID ; Value Buffer
PWRI2C1TimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_I2C2_ID ; Value Buffer
PWRI2C2TimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_SPI_ID ; Value Buffer
PWRSPITimingValue:
dw 0 ; Value Buffer
dw Get_Timing ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw PWR_CCP2TX_ID ; Value Buffer
PWRCCP2TXTimingValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKEMMCIDValue:
dw CLK_EMMC_ID ; Value Buffer
CLKEMMCStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKUARTIDValue:
dw CLK_UART_ID ; Value Buffer
CLKUARTStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKARMIDValue:
dw CLK_ARM_ID ; Value Buffer
CLKARMStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKCOREIDValue:
dw CLK_CORE_ID ; Value Buffer
CLKCOREStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKV3DIDValue:
dw CLK_V3D_ID ; Value Buffer
CLKV3DStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKH264IDValue:
dw CLK_H264_ID ; Value Buffer
CLKH264StateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKISPIDValue:
dw CLK_ISP_ID ; Value Buffer
CLKISPStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKSDRAMIDValue:
dw CLK_SDRAM_ID ; Value Buffer
CLKSDRAMStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKPIXELIDValue:
dw CLK_PIXEL_ID ; Value Buffer
CLKPIXELStateValue:
dw 0 ; Value Buffer
dw Get_Clock_State ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
CLKPWMIDValue:
dw CLK_PWM_ID ; Value Buffer
CLKPWMStateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_EMMC_ID ; Value Buffer
CLKEMMCRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_UART_ID ; Value Buffer
CLKUARTRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_ARM_ID ; Value Buffer
CLKARMRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_CORE_ID ; Value Buffer
CLKCORERateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_V3D_ID ; Value Buffer
CLKV3DRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_H264_ID ; Value Buffer
CLKH264RateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_ISP_ID ; Value Buffer
CLKISPRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_SDRAM_ID ; Value Buffer
CLKSDRAMRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_PIXEL_ID ; Value Buffer
CLKPIXELRateValue:
dw 0 ; Value Buffer
dw Get_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_PWM_ID ; Value Buffer
CLKPWMRateValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_EMMC_ID ; Value Buffer
CLKEMMCMaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_UART_ID ; Value Buffer
CLKUARTMaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_ARM_ID ; Value Buffer
CLKARMMaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_CORE_ID ; Value Buffer
CLKCOREMaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_V3D_ID ; Value Buffer
CLKV3DMaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_H264_ID ; Value Buffer
CLKH264MaxValue:
dw 0 ; Value Buffer
dw Get_Max_Clock_Rate ; Tag Identifier
dw $00000008 ; Value Buffer Size In Bytes
dw $00000008 ; 1 bit (MSB) Request/Response Indicator (0=Request, 1=Response), 31 bits (LSB) Value Length In Bytes
dw CLK_ISP_ID ; Value Buffer
CLKISPMaxValue: