summaryrefslogtreecommitdiff
path: root/source/config/a2_commands.xml
blob: 01803a17eb2c6966e0ce757f21aac71b33a37f70 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) ST-Ericsson SA 2011
* License terms: 3-clause BSD license
-->
<?xml-stylesheet type="text/xml" href="a2_command_ids_h.xsl"?>
<?xml-stylesheet type="text/xml" href="a2_command_marshal.xsl"?>
<?xml-stylesheet type="text/xml" href="a2_commands_h.xsl"?>
<?xml-stylesheet type="text/xml" href="a2_commands_impl_h.xsl"?>
<?xml-stylesheet type="text/xml" href="a2_common.xsl"?>

<commandspec>

  <!--
  Predefine generic type of data are: uint32, string and buffer.
  All A2 commands use only one buffer as an input and one buffer as an output parametar.
  !!!!! IMPORTANT !!!!!
  All new types of data (structures or vectors of structures) that need to be defined should first be reviewed and approved by:
  Hans Holmberg (QHANHOL) for loaders, Mikael Sjolen XX for PTK and Daniel Chong for PA.
 -->

  <group number="1" name="A2 System group">
    <documentation>
      A2 System commands group (0x01)
    </documentation>
    <interface type="loader" name="A2_System"/>

    <command number="1" name="Shutdown" source="PC">
      <interface type="loader" name="Shutdown"/>
      <documentation>
        The Loader shuts down in a controlled fashion and proceeds to shut down the ME itself.
      </documentation>
      <input>
      </input>
      <output>
      </output>
    </command>

    <command number="2" name="Loader Version" source="PC">
      <interface type="loader" name="LoaderVersion"/>
      <documentation>
        The Loader Version command is sent by the PC to request version information from the loader. The ME responds with a Loader Version information coded as ASCII characters in the data field.
      </documentation>
      <input>
      </input>
      <output>
        <value type="buffer" name="LoaderVersionOut" length="*">Loader version identifier</value>
      </output>
    </command>
<!--
    <command number="3" name="Protocol Version" source="PC">
      <interface type="loader" name="ProtocolVersion"/>
      <documentation>
        The Protocol Version command is sent by the PC to request the application protocol version information from the loader. The ME responds with two bytes holding the major and the minor version respectively.
      </documentation>
      <input>
      </input>
      <output>
        <value type="buffer" name="ProtocolVersionOut" length="*">Protocol version identifier</value>
      </output>
    </command>

    <command number="5" name="System Supported Command groups" source="PC">
      <interface type="loader" name="SupportedCommandGroups"/>
      <documentation>
        The Loader returns a list of implemented command groups and whether they are permitted to execute in the current Loader state.
      </documentation>
      <input>
      </input>
      <output>
        <value type="buffer" name="CommandGroupsOut" length="*">Each byte of the string represents a supported command group.</value>
      </output>
    </command>

    <command number="6" name="Get Platform Property" source="PC">
      <interface type="loader" name="GetPlatformProperty"/>
      <documentation>
        This command is sent by the PC to request a Platform Property, by sending a PropertyID in the data field. The ME responds with the Property value.
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetPropertyIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetPropertyOutLength">The size of the PropertyValue depends on the PropertyID</value>
        <value type="buffer" name="GetPropertyOut" length="GetPropertyOutLength"/>
      </output>
    </command>

    <command number="8" name="Get Memory Property" source="PC">
      <interface type="loader" name="GetMemoryProperty"/>
      <documentation>
        This command is sent by the PC to request a Memory Property. The ME responds with the Memory Property value.
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetMemPropertyIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetMemPropertyOutLength">The size of the PropertyValue depends on the PropertyID</value>
        <value type="buffer" name="GetMemPropertyOut" length="GetMemPropertyOutLength"/>
      </output>
    </command>

    <command number="9" name="Set Memory Property" source="PC">
      <interface type="loader" name="SetMemoryProperty"/>
      <documentation>
        This command is sent by the PC to set a Memory Property.
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SetMemPropertyIn" length="PayloadSize">The MemoryPropertyPayload buffer holds the Memory Propertiy ID and the Memory Property value. The size of the MemoryPropertyValue depends on the PropertyID</value>
      </input>
      <output>
        <value type="uint32" name="SetMemPropertyOutLength">The size of the PropertyValue depends on the PropertyID</value>
        <value type="buffer" name="SetMemPropertyOut" length="SetMemPropertyOutLength"/>
      </output>
    </command>

    <command number="15" name="Read Security Data" source="PC">
      <interface type="loader" name="ReadSecurityData"/>
      <documentation>
        This command is used in a Flashless bridge configuration. It returns the Static data and all dinamic variables cretaed during the signing process.
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SecurityDataIn" length="PayloadSize"/>  
      </input>
      <output>
        <value type="uint32" name="SecurityDataOutLength"/>
        <value type="buffer" name="SecurityDataOut" length="SecurityDataOutLength"/>  
      </output>
    </command>
-->
    <command number="17" name="Loader on Loader" source="PC">
      <interface type="loader" name="LoaderOnLoader"/>
      <documentation>
        This command is used to transfer a new Loader to the ME. The data should hold either Header or Payload.
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="Payload" length="PayloadSize"/>
      </input>
      <output>
      </output>
    </command>
          
    <command number="19" name="Reset" source="PC">
      <interface type="loader" name="Reset"/>
      <documentation>
        The Reset command is used to instruct the Loader to reset the ME. Upon receiving this command, the Loader shuts down in a controlled fashion and restarts the ME.
      </documentation>
      <input>
        <value type="uint32" name="Timeout">Timeout in ms.</value>
      </input>
      <output>
      </output>
    </command>
<!--
    <command number="20" name="Simlock Authentication Request" source="PC">
      <interface type="loader" name="SimlockAuthenticationRequest"/>
      <documentation>
        This command is sent by the PC to set the SIM Lock Keys. 
      </documentation>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SIMLockAuthReqIn" length="PayloadSize">There are 12 SIM Lock Keys, each represented with a 16 bytes long string.</value>
      </input>
      <output>
        <value type="uint32" name="SIMLockAuthReqOutLength"/>
        <value type="buffer" name="SIMLockAuthReqOut" length="SIMLockAuthReqOutLength"/>
      </output>
    </command>
-->
  </group>

  <group number="2" name="A2 Flash group">
    <documentation>
      A2 Flash Commands group (0x02)
    </documentation>

  <interface type="loader" name="A2_Flash"/> 

    <command number="1" name="Verify Signed Header" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="VerifySignedHeader"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="VerifyHeaderIn" length="PayloadSize"/>
      </input>
      <output>
      </output>
    </command>

    <command number="2" name="Software Block Address" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="SoftwareBlockAddress"/>
      <input>
        <value type="uint32" name="StartAddress">Start address of the block.</value>
        <value type="uint32" name="BlockSize">Size of the block.</value>
      </input>
      <output>
      </output>
    </command>

    <command number="3" name="Program Flash" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ProgramFlash"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="Payload" length="PayloadSize"/>
      </input>
      <output>
      </output>
    </command>

    <command number="4" name="Verify Software Flash" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="VerifySoftwareFlash"/>
      <input>
      </input>
      <output>
      </output>
    </command>
<!--
    <command number="5" name="Dump Flash Image" flag="true1" source="PC">
      <documentation>
        This command is used to readp from the flash. The input parameters buffer holds: Logical Unit number = 4 bits, Start address = 28 bits and End address = 4 bytes.
      </documentation>
      <interface type="loader" name="DumpFlashImage"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DumpFlashImageIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DumpFlashImageOutLength"/>
        <value type="buffer" name="DumpFlashImageOut" length="DumpFlashImageOutLength"/>
      </output>
    </command>

    <command number="6" name="Read PMC Status" flag="true1" source="PC">
      <documentation>
        The Read PMC Status command is used to read the value and status of a Protected Monotonic Counter.
      </documentation>
      <interface type="loader" name="ReadPmcStatus"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ReadPmcStatusIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ReadPmcStatusOutLength"/>
        <value type="buffer" name="ReadPmcStatusOut" length="ReadPmcStatusOutLength"/>
      </output>
    </command>
-->
    <command number="7" name="Erase Flash" flag="true1" source="PC">
      <documentation>
        The Erase flash command is used to erase the complete flash memory.
      </documentation>
      <interface type="loader" name="EraseFlash"/>
      <input>
      </input>
      <output>
      </output>
    </command>
<!--
    <command number="8" name="Program Without Erase Flash" flag="true1" source="PC">
      <documentation>
        The Program without erase flash command is sent by the PC to write a block of data into the flash memory, but, to save time, without checking if the flash is empty and without erasing the flash.
      </documentation>
      <interface type="loader" name="ProgramWithoutEraseFlash"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ProgramWithoutEraseIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="buffer" name="ProgramWithoutEraseFlashOut" length="*"/>
      </output>
    </command>

    <command number="9" name="Dump Physical Flash Image" flag="true1" source="PC">
      <documentation>
        The Dump physical flash image command is used to read data from a physical flash location (physical addresses) and send it to the PC.
      </documentation>
      <interface type="loader" name="DumpPhysicalFlashImage"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DumpPhysicalFlashImageIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DumpPhysicalFlashImageOutLength"/>
        <value type="buffer" name="DumpPhysicalFlashImageOut" length="DumpPhysicalFlashImageOutLength"/>
      </output>
    </command>
-->
    <command number="10" name="Speedflash" flag="true1" source="PC">
      <documentation>
        The Dump physical flash image command is used to read data from a physical flash location (physical addresses) and send it to the PC.
      </documentation>
      <interface type="loader" name="Speedflash"/>
      <input>
        <value type="uint32" name="StartAddress">Start address of the block to be flashed</value>
        <value type="uint32" name="EndAddress">End address of the block to be flashed</value>
        <value type="uint32" name="SubBlockSize">Size of the single block to be transfered</value>
      </input>
      <output>
      </output>
    </command>
<!--
    <command number="11" name="Write Preflash Image Using Speedflash" flag="true1" source="PC">
      <documentation>
        The Write preflash speedflash command is used to write a preflash image to a flash memory.
      </documentation>
      <interface type="loader" name="WritePreflashImageUsingSpeedflash"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WritePreflashImageUsingSpeedflashIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WritePreflashImageUsingSpeedflashOutLength"/>
        <value type="buffer" name="WritePreflashImageUsingSpeedflashOut" length="WritePreflashImageUsingSpeedflashOutLength"/>
      </output>
    </command>

    <command number="19" name="Dump Preflash Image" flag="true1" source="PC">
      <documentation>
        This command reads all data from flash (both flash page data and corresponding redundant data) and dumps the data in a file from which a preflash image can be created.
      </documentation>
      <interface type="loader" name="DumpPreflashImage"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DumpPreflashImageIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DumpPreflashImageOutLength"/>
        <value type="buffer" name="DumpPreflashImageOut" length="DumpPreflashImageOutLength"/>
      </output>
    </command>

    <command number="20" name="Write Preflash Image" flag="true1" source="PC">
      <documentation>
        This command is used to write a preflashed image to a flash memory.
      </documentation>
      <interface type="loader" name="WritePreflashImage"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WritePreflashImageIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WritePreflashImageOutLength"/>
        <value type="buffer" name="WritePreflashImageOut" length="WritePreflashImageOutLength"/>
      </output>
    </command>
-->
  </group>
<!--
  <group number="3" name="A2 GDFS group">
    <documentation>
      A2 GDFS Commands Group (0x03)
    </documentation>
    <interface type="loader" name="A2_GDFS"/>
    
    <command number="1" name="Get GDFS property" flag="true1" source="PC">
      <documentation>
        The Get GDFS property command reads a GDFS setting on the access side.
      </documentation>
      <interface type="loader" name="GetGdfsPropertyAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetGdfsPropertyAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetGdfsPropertyAccOutLength"/>
        <value type="buffer" name="GetGdfsPropertyAccOut" length="GetGdfsPropertyAccOutLength"/>
      </output>
    </command>

    <command number="2" name="Force start GDFS" flag="true1" source="PC">
      <documentation>
        The Force start GDFS command starts GDFS on the access side using the configuration sent in the data field.
      </documentation>
      <interface type="loader" name="ForceStartGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ForceStartGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ForceStartGdfsAccOutLength"/>
        <value type="buffer" name="ForceStartGdfsAccOut" length="ForceStartGdfsAccOutLength"/>
      </output>
    </command>

    <command number="3" name="Auto start GDFS" flag="true1" source="PC">
      <documentation>
        The Auto start GDFS command tries to find the currently used GDFS configuration inside the platform software on the flash.
      </documentation>
      <interface type="loader" name="AutoStartGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="AutoStartGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="AutoStartGdfsAccOutLength"/>
        <value type="buffer" name="AutoStartGdfsAccOut" length="AutoStartGdfsAccOutLength"/>
      </output>
    </command>

    <command number="4" name="Format GDFS" flag="true1" source="PC">
      <documentation>
        The Format GDFS command is sent to the loader to format the GDFS.
      </documentation>
      <interface type="loader" name="FormatGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="FormatGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="FormatGdfsAccOutLength"/>
        <value type="buffer" name="FormatGdfsAccOut" length="FormatGdfsAccOutLength"/>
      </output>
    </command>

    <command number="5" name="Read GDFS unit" flag="true1" source="PC">
      <documentation>
        The Read GDFS unit command retrieves a unit from GDFS on the access side.
      </documentation>
      <interface type="loader" name="ReadGdfsUnitAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ReadGdfsUnitAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ReadGdfsUnitAccOutLength"/>
        <value type="buffer" name="ReadGdfsUnitAccOut" length="ReadGdfsUnitAccOutLength"/>
      </output>
    </command>

    <command number="6" name="Read entire GDFS" flag="true1" source="PC">
      <documentation>
        The Read entire GDFS command is used to read all GDFS units in the ME on the access side.
      </documentation>
      <interface type="loader" name="ReadEntireGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ReadEntireGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ReadEntireGdfsAccOutLength"/>
        <value type="buffer" name="ReadEntireGdfsAccOut" length="ReadEntireGdfsAccOutLength"/>
      </output>
    </command>

    <command number="7" name="Write GDFS unit" flag="true1" source="PC">
      <documentation>
        The Write GDFS unit command is used to write one or more GDFS units on the access side.
      </documentation>
      <interface type="loader" name="WriteGdfsUnitAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteGdfsUnitAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteGdfsUnitAccOutLength"/>
        <value type="buffer" name="WriteGdfsUnitAccOut" length="WriteGdfsUnitAccOutLength"/>
      </output>
    </command>

    <command number="10" name="Write entire GDFS" flag="true1" source="PC">
      <documentation>
        The Write entire GDFS command is used to write all GDFS units on the access side.
      </documentation>
      <interface type="loader" name="WriteEntireGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteEntireGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteEntireGdfsAccOutLength"/>
        <value type="buffer" name="WriteEntireGdfsAccOut" length="WriteEntireGdfsAccOutLength"/>
      </output>
    </command>

    <command number="11" name="Dump entire GDFS" flag="true1" source="PC">
      <documentation>
        The Dump entire GDFS command is used to dump all GDFS units on the access side.
      </documentation>
      <interface type="loader" name="DumpEntireGdfsAcc"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DumpEntireGdfsAccIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DumpEntireGdfsAccOutLength"/>
        <value type="buffer" name="DumpEntireGdfsAccOut" length="DumpEntireGdfsAccOutLength"/>
      </output>
    </command>

    <command number="49" name="Get GDFS property" flag="true1" source="PC">
      <documentation>
        The Get GDFS property command reads a GDFS setting on the application side.
      </documentation>
      <interface type="loader" name="GetGdfsPropertyApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetGdfsPropertyAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetGdfsPropertyAppOutLength"/>
        <value type="buffer" name="GetGdfsPropertyAppOut" length="GetGdfsPropertyAppOutLength"/>
      </output>
    </command>

    <command number="50" name="Force start GDFS" flag="true1" source="PC">
      <documentation>
        The Force start GDFS command starts GDFS on the application side using the configuration sent in the data field.
      </documentation>
      <interface type="loader" name="ForceStartGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ForceStartGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ForceStartGdfsAppOutLength"/>
        <value type="buffer" name="ForceStartGdfsAppOut" length="ForceStartGdfsAppOutLength"/>
      </output>
    </command>

    <command number="51" name="Auto start GDFS" flag="true1" source="PC">
      <documentation>
        The Auto start GDFS command tries to find the currently used GDFS configuration inside the platform software on the flash.
      </documentation>
      <interface type="loader" name="AutoStartGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="AutoStartGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="AutoStartGdfsAppOutLength"/>
        <value type="buffer" name="AutoStartGdfsAppOut" length="AutoStartGdfsAppOutLength"/>
      </output>
    </command>

    <command number="52" name="Format GDFS" flag="true1" source="PC">
      <documentation>
        The Format GDFS command is sent to the loader to format the GDFS on the application side.
      </documentation>
      <interface type="loader" name="FormatGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="FormatGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="FormatGdfsAppOutLength"/>
        <value type="buffer" name="FormatGdfsAppOut" length="FormatGdfsAppOutLength"/>
      </output>
    </command>

    <command number="53" name="Read GDFS unit" flag="true1" source="PC">
      <documentation>
        The Read GDFS unit command retrieves a unit from GDFS on the application side.
      </documentation>
      <interface type="loader" name="ReadGdfsUnitApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ReadGdfsUnitAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ReadGdfsUnitAppOutLength"/>
        <value type="buffer" name="ReadGdfsUnitAppOut" length="ReadGdfsUnitAppOutLength"/>
      </output>
    </command>

    <command number="54" name="Read entire GDFS" flag="true1" source="PC">
      <documentation>
        The Read entire GDFS command is used to read all GDFS units in the ME on the application side.
      </documentation>
      <interface type="loader" name="ReadEntireGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ReadEntireGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ReadEntireGdfsAppOutLength"/>
        <value type="buffer" name="ReadEntireGdfsAppOut" length="ReadEntireGdfsAppOutLength"/>
      </output>
    </command>

    <command number="55" name="Write GDFS unit" flag="true1" source="PC">
      <documentation>
        The Write GDFS unit command is used to write one or more GDFS units on the application side.
      </documentation>
      <interface type="loader" name="WriteGdfsUnitApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteGdfsUnitAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteGdfsUnitAppOutLength"/>
        <value type="buffer" name="WriteGdfsUnitAppOut" length="WriteGdfsUnitAppOutLength"/>
      </output>
    </command>

    <command number="58" name="Write entire GDFS" flag="true1" source="PC">
      <documentation>
        The Write entire GDFS command is used to write all GDFS units on the application side.
      </documentation>
      <interface type="loader" name="WriteEntireGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteEntireGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteEntireGdfsAppOutLength"/>
        <value type="buffer" name="WriteEntireGdfsAppOut" length="WriteEntireGdfsAppOutLength"/>
      </output>
    </command>

    <command number="59" name="Dump entire GDFS" flag="true1" source="PC">
      <documentation>
        The Dump Entire GDFS command is used to dump all GDFS units on the application side.
      </documentation>
      <interface type="loader" name="DumpEntireGdfsApp"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DumpEntireGdfsAppIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DumpEntireGdfsAppOutLength"/>
        <value type="buffer" name="DumpEntireGdfsAppOut" length="DumpEntireGdfsAppOutLength"/>
      </output>
    </command>
    
  </group>

  <group number="4" name="File system group">
    <documentation>
          A2 File system commands Group (0x04)
    </documentation>
    <interface type="loader" name="A2_File_System"/>
    
    <command number="1" name="Get File System Property" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="GetFileSystemProperty"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetFSPropertyIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetFSPropertyOutLength"/>
        <value type="buffer" name="GetFSPropertyOut" length="GetFSPropertyOutLength"/>
      </output>
    </command>

    <command number="2" name="Force Start File System" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ForceStartFileSystem"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ForceStartFSIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ForceStartFSOutLength"/>
        <value type="buffer" name="ForceStartFSOut" length="ForceStartFSOutLength"/>
      </output>
    </command>

    <command number="3" name="Set File System Property" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="SetFileSystemProperty"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SetFSPropertyIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="SetFSPropertyOutLength"/>
        <value type="buffer" name="SetFSPropertyOut" length="SetFSPropertyOutLength"/>
      </output>
    </command>

    <command number="4" name="Copy File" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="CopyFile"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="CopyFileIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="CopyFileOutLength"/>
        <value type="buffer" name="CopyFileOut" length="CopyFileOutLength"/>
      </output>
    </command>

    <command number="5" name="Move File" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="MoveFile"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="MoveFileIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="MoveFileOutLength"/>
        <value type="buffer" name="MoveFileOut" length="MoveFileOutLength"/>
      </output>
    </command>

    <command number="6" name="Rename" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="Rename"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="RenameIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="RenameOutLength"/>
        <value type="buffer" name="RenameOut" length="RenameOutLength"/>
      </output>
    </command>

    <command number="7" name="Delete File" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="DeleteFile"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DeleteFileIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="DeleteFileOutLength"/>
        <value type="buffer" name="DeleteFileOut" length="DeleteFileOutLength"/>
      </output>
    </command>

    <command number="8" name="Make Directory" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="MakeDirectory"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="MakeDirectoryIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="MakeDirectoryOutLength"/>
        <value type="buffer" name="MakeDirectoryOut" length="MakeDirectoryOutLength"/>
      </output>
    </command>

    <command number="9" name="Change Directory" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ChangeDirectory"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ChangeDirectoryIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ChangeDirectoryOutLength"/>
        <value type="buffer" name="ChangeDirectoryOut" length="ChangeDirectoryOutLength"/>
      </output>
    </command>

    <command number="10" name="Get Current Directory" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="GetCurrentDirectory"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetCurrentDirectoryIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetCurrentDirectoryOutLength"/>
        <value type="buffer" name="GetCurrentDirectoryOut" length="GetCurrentDirectoryOutLength"/>
      </output>
    </command>

    <command number="11" name="Remove Directory" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="RemoveDirectory"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="RemoveDirectoryIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="RemoveDirectoryOutLength"/>
        <value type="buffer" name="RemoveDirectoryOut" length="RemoveDirectoryOutLength"/>
      </output>
    </command>

    <command number="12" name="List Subdirectories" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ListSubdirectories"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ListSubdirectoriesIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ListSubdirectoriesOutLength"/>
        <value type="buffer" name="ListSubdirectoriesOut" length="ListSubdirectoriesOutLength"/>
      </output>
    </command>

    <command number="13" name="List Files" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ListFiles"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ListFilesIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ListFilesOutLength"/>
        <value type="buffer" name="ListFilesOut" length="ListFilesOutLength"/>
      </output>
    </command>

    <command number="14" name="Stat" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="Stat"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="StatIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="StatOutLength"/>
        <value type="buffer" name="StatOut" length="StatOutLength"/>
      </output>
    </command>

    <command number="15" name="Chmod" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="Chmod"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ChmodIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ChmodOutLength"/>
        <value type="buffer" name="ChmodOut" length="ChmodOutLength"/>
      </output>
    </command>

    <command number="16" name="Put File" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="PutFile"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="PutFileIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="PutFileOutLength"/>
        <value type="buffer" name="PutFileOut" length="PutFileOutLength"/>
      </output>
    </command>

    <command number="17" name="Get File" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="GetFile"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetFileIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetFileOutLength"/>
        <value type="buffer" name="GetFileOut" length="GetFileOutLength"/>
      </output>
    </command>

    <command number="18" name="List Volumes" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="ListVolumes"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="ListVolumesIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="ListVolumesOutLength"/>
        <value type="buffer" name="ListVolumesOut" length="ListVolumesOutLength"/>
      </output>
    </command>

    <command number="19" name="Format Volume" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="FormatVolume"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="FormatVolumeIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="FormatVolumeOutLength"/>
        <value type="buffer" name="FormatVolumeOut" length="FormatVolumeOutLength"/>
      </output>
    </command>

    <command number="20" name="Get Free Space" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="GetFreeSpace"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="GetFreeSpaceIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="GetFreeSpaceOutLength"/>
        <value type="buffer" name="GetFreeSpaceOut" length="GetFreeSpaceOutLength"/>
      </output>
    </command>

    <command number="21" name="Verify Signed Archive Header" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="VerifySignedArchiveHeader"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="VerifySignedArchiveHeaderIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="VerifySignedArchiveHeaderOutLength"/>
        <value type="buffer" name="VerifySignedArchiveHeaderOut" length="VerifySignedArchiveHeaderOutLength"/>
      </output>
    </command>

    <command number="22" name="Verify Signed Archive Data" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="VerifySignedArchiveData"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="VerifySignedArchiveDataIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="VerifySignedArchiveDataOutLength"/>
        <value type="buffer" name="VerifySignedArchiveDataOut" length="VerifySignedArchiveDataOutLength"/>
      </output>
    </command>

  </group>

  <group number="5" name="Signature group">
    <documentation>
          A2 Signature Commands Group (0x05)
    </documentation>
    <interface type="loader" name="A2_Signature"/>

    <command number="1" name="Set Control Keys" flag="true1" source="PC">
      <documentation>
        This command is used to write the SIM Lock control keys.
      </documentation>
      <interface type="loader" name="SetControlKeys"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SetControlKeysIn" length="PayloadSize">There are 12 SIM Lock Keys, each represented with a 16 bytes long string.</value>
      </input>
      <output>
        <value type="uint32" name="SetControlKeysOutLength"/>
        <value type="buffer" name="SetControlKeysOut" length="SetControlKeysOutLength"/>
      </output>
    </command>

    <command number="2" name="Set Platform Property" flag="true1" source="PC">
      <documentation>
      </documentation>

      <interface type="loader" name="SetPlatformProperty"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SetPlatformPropertyIn" length="PayloadSize">The SetPlatformPropertyIn buffer holds the Platform Property ID and the Platform property value. The size of the Platform Property ID is 4 bytes and the size of the Platform Property Value depends on the PropertyID</value>
      </input>
      <output>
        <value type="uint32" name="SetPlatformPropertyOutLength"/>
        <value type="buffer" name="SetPlatformPropertyOut" length="SetPlatformPropertyOutLength"/>
      </output>
    </command>

    <command number="3" name="Write and Lock OTP" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="WriteAndLockOTP"/>
      <input>
        <value type="uint32" name="WriteAndLockOTPLength">The length of Write And Lock OTP command buffer</value>
        <value type="buffer" name="WriteAndLockOTPBuffer" length="WriteAndLockOTPLength">The buffer with Write And Lock OTP command application data</value>
      </input>
      <output>
        <value type="uint32" name="WriteAndLockOTPOutLength"/>
        <value type="buffer" name="WriteAndLockOTPOut" length="WriteAndLockOTPOutLength"/>
      </output>
    </command>

    <command number="4" name="Write Default Data" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="WriteDefaultData"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteDefaultDataIn" length="PayloadSize">The WriteDefaultDataIn buffer holds the Unit number,the Unit size and Unit data</value>
      </input>
      <output>
        <value type="uint32" name="WriteDefaultDataOutLength"/>
        <value type="buffer" name="WriteDefaultDataOut" length="WriteDefaultDataOutLength"/>
      </output>
    </command>

    <command number="5" name="Write Full Signature" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="WriteFullSignature"/>
      <input>
        <value type="uint32" name="WriteFullSignatureLength">The length of Write Full Signature command buffer</value>
        <value type="buffer" name="WriteFullSignatureBuffer" length="WriteFullSignatureLength">The buffer with Write Full Signature command application data</value>
      </input>
      <output>
        <value type="uint32" name="WriteFullSignOutLength"/>
        <value type="buffer" name="WriteFullSignOut" length="WriteFullSignOutLength"/>
      </output>
    </command>

    <command number="6" name="Write CID" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="WriteCID"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteCIDIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteCIDOutLength"/>
        <value type="buffer" name="WriteCIDOut" length="WriteCIDOutLength"/>
      </output>
    </command>

    <command number="7" name="Write Test Signature" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="WriteTestSignature"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="WriteTestSignIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="WriteTestSignOutLength"/>
        <value type="buffer" name="WriteTestSignOut" length="WriteTestSignOutLength"/>
      </output>
    </command>

    <command number="8" name="Erase Security Data" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="EraseSecurityData"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="EraseSecDataIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="EraseSecDataOutLength"/>
        <value type="buffer" name="EraseSecDataOut" length="EraseSecDataOutLength"/>
      </output>
    </command>

    <command number="9" name="Key Sharing Stage 1 Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="KeySharingStage1Request"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="KeySharStage1ReqIn" length="PayloadSize">The KeySharStage1ReqIn buffer holds the Version (1 byte), the ID (4 bytes) and Random Value (24 bytes)</value>
      </input>
      <output>
        <value type="uint32" name="KeySharStage1ReqOutLength"/>
        <value type="buffer" name="KeySharStage1ReqOut" length="KeySharStage1ReqOutLength"/>
      </output>
    </command>

    <command number="10" name="Key Sharing Stage 2 Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="KeySharingStage2Request"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="KeySharStage2ReqIn" length="PayloadSize">The KeySharStage2ReqIn buffer holds the ID (4 bytes), the Cipher (1 byte), the CertificateLength (4 bytes) and  Certificate (CertificateLength)</value>
      </input>
      <output>
        <value type="uint32" name="KeySharStage2ReqOutLength"/>
        <value type="buffer" name="KeySharStage2ReqOut" length="KeySharStage2ReqOutLength"/>
      </output>
    </command>

    <command number="11" name="Key Sharing Stage 3 Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="KeySharingStage3Request"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="KeySharStage3ReqIn" length="PayloadSize">The KeySharStage3ReqIn buffer holds the ID (4 bytes), C2 (16 bytes) and MAC (20 bytes).</value>
      </input>
      <output>
        <value type="uint32" name="KeySharStage3ReqOutLength"/>
        <value type="buffer" name="KeySharStage3ReqOut" length="KeySharStage3ReqOutLength"/>
      </output>
    </command>

    <command number="12" name="DRM Secure Storage Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="DRMSecureStorageRequest"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="DRMSecStorReqIn" length="PayloadSize"/> 
      </input>
      <output>
        <value type="uint32" name="DRMSecStorReqOutLength"/>
        <value type="buffer" name="DRMSecStorReqOut" length="DRMSecStorReqOutLength"/>
      </output>
    </command>

    <command number="14" name="Verify Control Keys" flag="true1" source="PC">
      <documentation>
        This command is used to compare received SIM Lock keys against the SIM Lock keys stored in the ME.
      </documentation>
      <interface type="loader" name="VerifyControlKeys"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="VerifyControlKeysIn" length="PayloadSize">There are 12 SIM Lock Keys, each represented with a 16 bytes long string.</value>
      </input>
      <output>
        <value type="uint32" name="VerifyControlKeysOutLength"/>
        <value type="buffer" name="VerifyControlKeysOut" length="VerifyControlKeysOutLength"/>
      </output>
    </command>

  <command number="16" name="Secure Storage Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="SecureStorageRequest"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="SecStorReqIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="SecStorReqOutLength"/>
        <value type="buffer" name="SecStorReqOut" length="SecStorReqOutLength"/>
      </output>
    </command>

  </group>

  <group number="7" name="Reset group">
    <documentation>
      A2 Reset Commands group (0x07)
    </documentation>

    <interface type="loader" name="A2_Reset"/>

    <command number="1" name="Init Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="InitRequest"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="InitRequestIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="InitRequestOutLength"/>
        <value type="buffer" name="InitRequestOut" length="InitRequestOutLength"/>
      </output>
    </command>

    <command number="2" name="Update Request" flag="true1" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="UpdateRequest"/>
      <input>
        <value type="uint32" name="PayloadSize">Application packet length</value>
        <value type="buffer" name="UpdateRequestIn" length="PayloadSize"/>
      </input>
      <output>
        <value type="uint32" name="UpdateRequestOutLength"/>
        <value type="buffer" name="UpdateRequestOut" length="UpdateRequestOutLength"/>
      </output>
    </command>

  </group>
-->
  <group number="16" name="Control message">
    <documentation>
      A2 Control message (0x10)
    </documentation>
    <interface type="loader" name="A2_Control"/>

    <command number="1" name="Loader Started" source="ME">
      <documentation>
      </documentation>
      <interface type="loader" name="LoaderStarted"/>
      <input>
        <value type="uint32" name="MaxLoaderPacketSize"/>
      </input>
      <output>
      </output>
    </command>

    <command number="2" name="Ping" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="Ping"/>
      <input>
      </input>
      <output>
      </output>
    </command>

    <command number="3" name="Pong" source="ME">
      <documentation>
      </documentation>
      <interface type="loader" name="Pong"/>
      <input>
      </input>
      <output>
      </output>
    </command>

    <command number="4" name="Max Packet Size" source="PC">
      <documentation>
      </documentation>
      <interface type="loader" name="MaxPacketSize"/>
      <input>
      </input>
      <output>
        <value type="uint16" name="MaxPacketSize"/>
      </output>
    </command>

    <command number="5" name="Loader Not Started" source="ME">
      <interface type="loader" name="LoaderNotStarted"/>
      <documentation>
      </documentation>
      <input>
        <value type="uint16" name="ErrorCode"/>
      </input>
      <output>
      </output>
    </command>

  </group>
</commandspec>