⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jedec.h

📁 这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的
💻 H
字号:
/* JEDEC Flash Interface. * This is an older type of interface for self programming flash. It is  * commonly use in older AMD chips and is obsolete compared with CFI. * It is called JEDEC because the JEDEC association distributes the ID codes * for the chips. * * See the AMD flash databook for information on how to operate the interface. * * $Id: jedec.h,v 1.2 2001/11/06 14:37:36 dwmw2 Exp $ */#ifndef __LINUX_MTD_JEDEC_H__#define __LINUX_MTD_JEDEC_H__#include <linux/types.h>#include <linux/mtd/map.h>#define MAX_JEDEC_CHIPS 16// Listing of all supported chips and their informationstruct JEDECTable{   __u16 jedec;   char *name;   unsigned long size;   unsigned long sectorsize;   __u32 capabilities;};// JEDEC being 0 is the end of the chip arraystruct jedec_flash_chip{   __u16 jedec;   unsigned long size;   unsigned long sectorsize;      // *(__u8*)(base + (adder << addrshift)) = data << datashift   // Address size = size << addrshift   unsigned long base;           // Byte 0 of the flash, will be unaligned   unsigned int datashift;       // Useful for 32bit/16bit accesses   unsigned int addrshift;   unsigned long offset;         // linerized start. base==offset for unbanked, uninterleaved flash      __u32 capabilities;      // These markers are filled in by the flash_chip_scan function   unsigned long start;   unsigned long length;};struct jedec_private{   unsigned long size;         // Total size of all the devices      /* Bank handling. If sum(bank_fill) == size then this is linear flash.      Otherwise the mapping has holes in it. bank_fill may be used to      find the holes, but in the common symetric case       bank_fill[0] == bank_fill[*], thus addresses may be computed       mathmatically. bank_fill must be powers of two */   unsigned is_banked;   unsigned long bank_fill[MAX_JEDEC_CHIPS];      struct jedec_flash_chip chips[MAX_JEDEC_CHIPS];  };#endif

⌨️ 快捷键说明

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