Skip to content

Commit fbcf9bf

Browse files
committed
FDB: version 51 (see fdfdb commits)
1 parent 037aa5b commit fbcf9bf

File tree

4 files changed

+728
-77
lines changed

4 files changed

+728
-77
lines changed

FDBGen/src/iTXTech/FlashDetector/FDBGen/FDBGen.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use iTXTech\FlashDetector\FDBGen\Generator\Generator;
2828
use iTXTech\FlashDetector\FDBGen\Generator\Innostor;
2929
use iTXTech\FlashDetector\FDBGen\Generator\JMicron;
30+
use iTXTech\FlashDetector\FDBGen\Generator\Maxio;
3031
use iTXTech\FlashDetector\FDBGen\Generator\Maxiotek;
3132
use iTXTech\FlashDetector\FDBGen\Generator\SandForce;
3233
use iTXTech\FlashDetector\FDBGen\Generator\SiliconMotionForceFlash;
@@ -54,6 +55,7 @@ public static function init(){
5455
//may not have complete id
5556
self::registerGenerator(JMicron::class);
5657
self::registerGenerator(Maxiotek::class);
58+
self::registerGenerator(Maxio::class);
5759
//no flash id
5860
self::registerGenerator(SandForce::class);
5961
self::registerGenerator(AlcorMicro::class);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
/*
4+
* iTXTech FlashDetector
5+
*
6+
* Copyright (C) 2018-2020 iTX Technologies
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
20+
21+
namespace iTXTech\FlashDetector\FDBGen\Generator;
22+
23+
use iTXTech\FlashDetector\Fdb\Fdb;
24+
25+
class Maxio extends JMicron{
26+
public static function getDirName() : string{
27+
return "mas";
28+
}
29+
30+
public static function merge(Fdb $fdb, string $data, string $filename) : void{
31+
self::mergeInternal($fdb, $data, $filename, "MAS");
32+
}
33+
}

0 commit comments

Comments
 (0)