flashFsLib.h
资源名称:bcm4702.rar [点击查看]
上传用户:yuanda199
上传日期:2022-06-26
资源大小:412k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- #ifndef FLASH_FS_LIB_H
- #define FLASH_FS_LIB_H
- /*
- * Support for Flash Filesystem and Flash Boot Area
- * Built on top of flashDrvLib.
- */
- STATUS flashFsLibInit(void);
- STATUS flashFsSync(void);
- #define FLASH_BOOT_START 0x000000
- #define FLASH_BOOT_START_SECTOR (FLASH_BOOT_START / FLASH_SECTOR_SIZE)
- #define FLASH_BOOT_SIZE (512 * 1024)
- #define FLASH_BOOT_SIZE_SECTORS (FLASH_BOOT_SIZE / FLASH_SECTOR_SIZE)
- #define FLASH_FS_BLOCK_SIZE 512
- #define FLASH_FS_SIZE (FLASH_SIZE - FLASH_BOOT_SIZE)
- #define FLASH_FS_SIZE_BLOCKS (FLASH_FS_SIZE / FLASH_FS_BLOCK_SIZE)
- #define FLASH_FS_BLOCK_PER_SECTOR (FLASH_SECTOR_SIZE / FLASH_FS_BLOCK_SIZE)
- /* #define FLASH_FS_NAME "/flash/" */
- #define FLASH_FS_NAME "flsh:"
- typedef enum {
- FLASH_FS_SYNC = 0x10000
- } FLASH_FS_CUSTOM_IOCTL_DEFINITIONS;
- #endif