-
Notifications
You must be signed in to change notification settings - Fork 1
/
MTKScatter.h
executable file
·67 lines (55 loc) · 1.41 KB
/
MTKScatter.h
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
//---------------------------------------------------------------------------
#ifndef MTKScatterH
#define MTKScatterH
#include <stdio.h>
#include <vcl.h>
#include "LayoutInfo.h"
#include "ScatterGeneralInfo.h"
#include <fstream.h>
#include <sstream.h>
#include <string.h>
/*
typedef struct GENERAL_INFO
{
const char* strGeneralName;
const char* strConfigVersion;
const char* strPlatform;
const char* strProject;
const char* strStorage;
const char* strBootChannel;
unsigned __int64 ulBlockSize;
} GENERAL_INFO;
*/
/*
typedef struct LAYOUT_INFO
{
int nPartitionIndex;
const char* strPartitionName;
const char* strFileName;
bool bIsDownload;
const char* strType;
unsigned __int64 ulLinearStartAddr;
unsigned __int64 ulPhysicalStartAddr;
unsigned __int64 ulPartitionSize;
const char* strRegion;
const char* strStorage;
bool bBoundaryCheck;
bool bIsReserved;
const char* strOperationType;
unsigned __int64 ulReserved;
} LAYOUT_INFO;
*/
class MTKScatter
{
public:
MTKScatter(const char* strInputFile);
~MTKScatter();
int StartRead();
const char* m_file;
TList* m_list_partitions;
GeneralInfo* general_info;
int m_total_partitions;
};
extern MTKScatter mtkScatter;
//---------------------------------------------------------------------------
#endif