celltable.h

来自「AMD公司官方版FLASH文件系统。有详细说明文档和Windows仿真测试环境。」· C头文件 代码 · 共 34 行

H
34
字号
/**
 * CellTable.h
 */
#ifndef _CELL_TABLE_H_
#define _CELL_TABLE_H_

#include "Ffs.h"

DMS_STATUS dms_CellTableInitialize(WORD awCellCount);
void dms_CellTableFinalize(void);
DMS_STATUS dms_CellTableAddBlock(WORD awCellIndex, 
                                 WORD awBlockIndex, 
                                 BYTE abCellStatus, 
                                 WORD awSectorIndex, 
                                 WORD awSectorBlockIndex);
DMS_STATUS dms_CellTableAddAvailableBlock(WORD awSectorIndex, WORD awSectorBlockIndex);
void dms_CellTableAddGarbageBlock(WORD awSectorIndex, WORD awSectorBlockIndex);
DMS_STATUS dms_CellTableGetBestSectorToErase(WORD *apwSectorIndex);
BYTE dms_CellTableIsBlockAvailable(void);
DMS_STATUS dms_CellTableGetAvailableBlock(WORD awCellIndex, WORD awBlockIndex,
                                          WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
DMS_STATUS dms_CellTableCheckValidity(void);
DMS_STATUS dms_CellTableSetCellInProcess(WORD awCellIndex);
DMS_STATUS dms_CellTableMoveBlock(WORD awSectorIndex, WORD awSectorBlockIndex,
                                  WORD awCellIndex,
                                  WORD *apwNewSectorIndex, WORD *apwNewSectorBlockIndex);
WORD dms_CellTableDeleteCellInProcess(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
WORD dms_CellTableDeleteBlockInProcess(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
void dms_CellTableResetBlockPointer(WORD awCellIndex);
WORD dms_CellTableGetNextBlock(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);


#endif /* _CELL_TABLE_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?