flashchip.h

来自「使用Linux ARM GCC编译器来编译」· C头文件 代码 · 共 62 行

H
62
字号
/*  * struct flchip definition *  * Contains information about the location and state of a given flash device  * * (C) 2000 Red Hat. GPLd. * * $Id: flashchip.h,v 1.1.1.1 2004/02/04 06:22:25 laputa Exp $ * */#ifndef __MTD_FLASHCHIP_H__#define __MTD_FLASHCHIP_H__typedef enum { 	FL_READY,	FL_STATUS,	FL_CFI_QUERY,	FL_JEDEC_QUERY,	FL_ERASING,	FL_ERASE_SUSPENDING,	FL_ERASE_SUSPENDED,	FL_WRITING,	FL_WRITING_TO_BUFFER,	FL_WRITE_SUSPENDING,	FL_WRITE_SUSPENDED,	FL_PM_SUSPENDED,	FL_SYNCING,	FL_UNLOADING,	FL_LOCKING,	FL_UNLOCKING,	FL_UNKNOWN} flstate_t;/* NOTE: confusingly, this can be used to refer to more than one chip at a time,    if they're interleaved. */struct flchip {	unsigned long start; /* Offset within the map */	//	unsigned long len;	/* We omit len for now, because when we group them together	   we insist that they're all of the same size, and the chip size	   is held in the next level up. If we get more versatile later,	   it'll make it a damn sight harder to find which chip we want from	   a given offset, and we'll want to add the per-chip length field	   back in.	*/	flstate_t state;	flstate_t oldstate;	int word_write_time;	int buffer_write_time;	int erase_time;};#endif /* __MTD_FLASHCHIP_H__ */

⌨️ 快捷键说明

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