📄 flash_types.h
字号:
/* ############################################################################ (c) Copyright Virata Limited 1998## Virata Limited Confidential and Proprietary## The following software source code ("Software") is strictly confidential and# is proprietary to Virata Limited ("Virata"). It may only be read, used,# copied, adapted, modified or otherwise dealt with by you if you have# entered into a confidentiality agreement with Virata and then subject to the# terms of that confidentiality agreement and any other applicable agreement# between you and Virata. If you are in any doubt as to whether you are# entitled to access, read, use, copy, adapt, modify or otherwise deal with# the Software or whether you are entitled to disclose the Software to any# other person you should contact Virata. If you have not entered into a# confidentiality agreement with Virata granting access to this Software you# should forthwith return all media, copies and printed listings containing# the Software to Virata.## Virata reserves the right to take legal action against you should you breach# the above provisions.## If you are unsure, or to report violations, please contact# support@virata.com# ##########################################################################*/#ifndef FLASH_TYPES_H#define FLASH_TYPES_H/*** FLASHFS data structures*/#define FLASHFS_NAME_LENGTH (28)typedef struct{ U32 flash_start_offset; U32 spare[2]; BITS checksum;} FLASH_HEADER;/* NOTE: this structure must be kept 'similar' to the ISFS_DIRENT *//* structure - except for the 'next' field (offset vs. ptr) */typedef struct{ U32 next; /* pointer to next entry */ BYTE name[FLASHFS_NAME_LENGTH]; /* filename */ WORD len; /* length *//* Note: data[x] must be 0 for correct structure length cf: isfs.h */ BITS data[0]; /* File contents go here */} FLASHFS_DIRENT;typedef struct flashfs_root{ BYTE volser[8]; /* volser */ struct { /* pointer to the first file */ U32 fixed; U32 dynamic; } first; U32 limit; /* offset to dynamic files (not used) */} FLASHFS_ROOT;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -