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
|
/** @file sata_fs_io.h
*/
#ifndef SATA_FS_IO_H
#define SATA_FS_IO_H
//#include "x_common.h"
//-----------------------------------------------------------------------------
// Include files
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Configurations
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Constant definitions
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Type definitions
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Macro definitions
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Prototype of inter-file functions
//-----------------------------------------------------------------------------
BOOL fgHDDFsMount(UINT32 u4InstID);
BOOL fgHDDFsUnMount(UINT32 u4InstID);
BOOL fgHDDFsOpenFile(UINT32 u4InstID,
CHAR *strFileName,
ULONG *pi4FileId);
BOOL fgHDDFsCloseFile(ULONG i4FileId);
BOOL fgHDDFsReadFile(UINT32 u4InstID,
CHAR *strFileName,
void *pvAddr,
UINT32 u4Offset,
UINT32 u4Length,
UINT32 *pu4RealReadSize,
UINT32 *pu4TotalFileLength,
ULONG *pi4FileId);
BOOL fgHDDFsWriteFile(CHAR *strFileName,
void *pvAddr,
UINT32 u4Length);
UINT32 u4HDDFsGetFileSize(ULONG *pi4FileId);
int vdecopenFile(char *path, int flag, int mode);
int vdecwriteFile(int fp, char *buf, int writelen);
int vdeccloseFile(int fp);
#endif // SATA_FS_IO_H
|