2 #include "nvitem_common.h"
\r
4 #ifndef _NVITEM_BUF_H_
\r
5 #define _NVITEM_BUF_H_
\r
7 //----------------------------
\r
8 // init buffer module
\r
9 //----------------------------
\r
12 //----------------------------
\r
13 // uninit buffer module
\r
14 //----------------------------
\r
15 void uninitBuf(void);
\r
17 //----------------------------
\r
18 // partId to index of control array
\r
19 //----------------------------
\r
20 uint32 getCtlId(uint32 partId);
\r
22 //----------------------------
\r
23 // to "fromChannel" buffer
\r
25 //----------------------------
\r
26 void _markDirtyInfo(uint32 id, uint32 start, uint32 scts);
\r
28 //----------------------------
\r
29 // to "fromChannel" buffer
\r
31 //----------------------------
\r
32 void writeData(uint32 id, uint32 start, uint32 bytesLen, uint8* buf);
\r
34 //----------------------------
\r
35 // fromChannel -> backup
\r
36 //----------------------------
\r
37 BOOLEAN backupData(uint32 id);
\r
39 //----------------------------
\r
40 // backup -> fromChannel
\r
41 //----------------------------
\r
42 void restoreData(uint32 id);
\r
44 //----------------------------
\r
46 //----------------------------
\r
47 void saveToDisk(void);
\r