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

📄 dev.c

📁 MMI层OBJ不能完全编译
💻 C
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************
 * Flash File System (ffs)
 * Idea, design and coding by Mads Meisner-Jensen, mmj@ti.com
 *
 * ffs flash device definitions
 *
 * $Id: dev.c 1.34.1.25 Thu, 18 Dec 2003 10:50:52 +0100 tsj $
 *
 ******************************************************************************/

#include "../ffs.h"
#include "drv.h" 

/******************************************************************************

 Flash memories supported:

 The real flash device names are listed in the Device column. The names of
 compatible/similar devices are listed in the "aliases" column.
 Compatible/similar devices are e.g. combo devices using that particular
 flash device.

 The size column denotes the full device memory size in megabits (Mb). For
 dual and multi-bank devices, two or more numbers indicate the sizes of the
 respective banks, starting from the lowest address.

 ---------------+--------+-------------------------------------------------
 Device         |    Size| Aliases and Notes
 ---------------+--------+-----------------------------------------------------
 AMD            |        | 
 29DL161T       |15.5+0.5| 
 29DL162T       |14.0+2.0| 
 29DL163T       |12.0+4.0| 
 29DL164T       | 8.0+8.0| 
 29DL322T       |28.0+4.0| 
 29DL323T       |24.0+8.0| 
 ---------------+--------+-----------------------------------------------------
 Fujitsu        |        |
 29DL161T       |15.5+0.5| (Am29DL161)
 29DL162T       |14.0+2.0| (Am29DL162)
 29DL163T       |12.0+4.0| (Am29DL163)
 29DL164T       | 8.0+8.0| (Am29DL164)
 29DL321TD      |        | (Am29DL321), MB84VD22181, MB84VD22081, MB84VD22191
 29DL322TD      |28.0+4.0| (Am29DL322), MB84VD22182, MB84VD22082, MB84VD22192
 29DL323TD      |24.0+8.0| (Am29DL323), MB84VD22183, MB84VD22083, MB84VD22193,
                |        | BSample device
 ---------------+--------+-----------------------------------------------------
 Samsung        |        |
 K5A3240YT      |24+8    | 
 K5A3240YB      | 8+24   |
 K5A3340YT      |16+16   |
 K5A3340YB      |14+18   | (!?)
 ---------------+--------+-----------------------------------------------------
 SST            |        |
 SST36VF1601    |        |
 ---------------+--------+-----------------------------------------------------
 Toshiba        |        |
 ?              |        | TH50VSF2581AASB
 ---------------+--------+-----------------------------------------------------
 Intel          |        |
 28F160C3       |    16.0| Both Top and Bottom boot
 28F320C3       |    32.0| Both Top and Bottom boot
 28F640C3       |    64.0| Both Top and Bottom boot
 28F640W30      |    64.0| Both Top and Bottom boot, DSample device
 ---------------+--------+-----------------------------------------------------
 Test           |        |
                |        |
 ---------------+--------+-----------------------------------------------------

******************************************************************************/


/******************************************************************************
 * Flash Device Memory Maps
 ******************************************************************************/

// The memory map, flash_AAxBB[], used by each flash device definition in
// the flash_info[] array below can be either one of the pre-defined ones
// below or a custom-defined one. Each line in the memory map represents one
// physical device sector. The columns in the memory map has the following
// meaning:
//
// 1. Relative address offset of sector.
// 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16.
//
// Note that does NOT support a flash definition with different sized blocks
// so all blocks contained in the device definition MUST be the same size!

// 128x64kw
static const struct block_info_s flash_128x64kw[] =
{
  	{ 0x000000, 17 },
    { 0x020000, 17 },
    { 0x040000, 17 },
    { 0x060000, 17 },
    { 0x080000, 17 },
    { 0x0A0000, 17 },
    { 0x0C0000, 17 },
    { 0x0E0000, 17 },
    { 0x100000, 17 },
    { 0x120000, 17 },
    { 0x140000, 17 },
    { 0x160000, 17 },
    { 0x180000, 17 },
    { 0x1A0000, 17 },
    { 0x1C0000, 17 },
    { 0x1E0000, 17 },
    { 0x200000, 17 },
    { 0x220000, 17 },
    { 0x240000, 17 },
    { 0x260000, 17 },
    { 0x280000, 17 },
    { 0x2A0000, 17 },
    { 0x2C0000, 17 },
    { 0x2E0000, 17 },
    { 0x300000, 17 },
    { 0x320000, 17 },
    { 0x340000, 17 },
    { 0x360000, 17 },
    { 0x380000, 17 },
    { 0x3A0000, 17 },
    { 0x3C0000, 17 },
    { 0x3E0000, 17 },
    { 0x400000, 17 },
    { 0x420000, 17 },
    { 0x440000, 17 },
    { 0x460000, 17 },
    { 0x480000, 17 },
    { 0x4A0000, 17 },
    { 0x4C0000, 17 },
    { 0x4E0000, 17 },
    { 0x500000, 17 },
    { 0x520000, 17 },
    { 0x540000, 17 },
    { 0x560000, 17 },
    { 0x580000, 17 },
    { 0x5A0000, 17 },
    { 0x5C0000, 17 },
    { 0x5E0000, 17 },
    { 0x600000, 17 },
    { 0x620000, 17 },
    { 0x640000, 17 },
    { 0x660000, 17 },
    { 0x680000, 17 },
    { 0x6A0000, 17 },
    { 0x6C0000, 17 },
    { 0x6E0000, 17 },
    { 0x700000, 17 },
    { 0x720000, 17 },
    { 0x740000, 17 },
    { 0x760000, 17 },
    { 0x780000, 17 },
    { 0x7A0000, 17 },
    { 0x7C0000, 17 },
    { 0x7E0000, 17 },
    { 0x800000, 17 },
    { 0x820000, 17 },
    { 0x840000, 17 },
    { 0x860000, 17 },
    { 0x880000, 17 },
    { 0x8A0000, 17 },
    { 0x8C0000, 17 },
    { 0x8E0000, 17 },
    { 0x900000, 17 },
    { 0x920000, 17 },
    { 0x940000, 17 },
    { 0x960000, 17 },
    { 0x980000, 17 },
    { 0x9A0000, 17 },
    { 0x9C0000, 17 },
    { 0x9E0000, 17 },
    { 0xA00000, 17 },
    { 0xA20000, 17 },
    { 0xA40000, 17 },
    { 0xA60000, 17 },
    { 0xA80000, 17 },
    { 0xAA0000, 17 },
    { 0xAC0000, 17 },
    { 0xAE0000, 17 },
    { 0xB00000, 17 },
    { 0xB20000, 17 },
    { 0xB40000, 17 },
    { 0xB60000, 17 },
    { 0xB80000, 17 },
    { 0xBA0000, 17 },
    { 0xBC0000, 17 },
    { 0xBE0000, 17 },
    { 0xC00000, 17 },
    { 0xC20000, 17 },
    { 0xC40000, 17 },
    { 0xC60000, 17 },
    { 0xC80000, 17 },
    { 0xCA0000, 17 },
    { 0xCC0000, 17 },
    { 0xCE0000, 17 },
    { 0xE00000, 17 },
    { 0xE20000, 17 },
    { 0xE40000, 17 },
    { 0xE60000, 17 },
    { 0xE80000, 17 },
    { 0xEA0000, 17 },
    { 0xEC0000, 17 },
    { 0xEE0000, 17 },
    { 0xF00000, 17 },
    { 0xF20000, 17 },
    { 0xF40000, 17 },
    { 0xF60000, 17 },
    { 0xF80000, 17 },
    { 0xFA0000, 17 },
    { 0xFC0000, 17 },
    { 0xFE0000, 17 }

};



// 256x64kb
static const struct block_info_s flash_256x64[] =
{
  { 0x00000, 16 },
  { 0x10000, 16 },
  { 0x20000, 16 },
  { 0x30000, 16 },
  { 0x40000, 16 },
  { 0x50000, 16 },
  { 0x60000, 16 },
  { 0x70000, 16 },
  { 0x80000, 16 },
  { 0x90000, 16 },
  { 0xa0000, 16 },
  { 0xb0000, 16 },
  { 0xc0000, 16 },
  { 0xd0000, 16 },
  { 0xe0000, 16 },
  { 0xf0000, 16 },
  { 0x100000, 16 },
  { 0x110000, 16 },
  { 0x120000, 16 },
  { 0x130000, 16 },
  { 0x140000, 16 },
  { 0x150000, 16 },
  { 0x160000, 16 },
  { 0x170000, 16 },
  { 0x180000, 16 },
  { 0x190000, 16 },
  { 0x1a0000, 16 },
  { 0x1b0000, 16 },
  { 0x1c0000, 16 },
  { 0x1d0000, 16 },
  { 0x1e0000, 16 },
  { 0x1f0000, 16 },
  { 0x200000, 16 },
  { 0x210000, 16 },
  { 0x220000, 16 },
  { 0x230000, 16 },
  { 0x240000, 16 },
  { 0x250000, 16 },
  { 0x260000, 16 },
  { 0x270000, 16 },
  { 0x280000, 16 },
  { 0x290000, 16 },
  { 0x2a0000, 16 },
  { 0x2b0000, 16 },
  { 0x2c0000, 16 },
  { 0x2d0000, 16 },
  { 0x2e0000, 16 },
  { 0x2f0000, 16 },
  { 0x300000, 16 },
  { 0x310000, 16 },
  { 0x320000, 16 },
  { 0x330000, 16 },
  { 0x340000, 16 },
  { 0x350000, 16 },
  { 0x360000, 16 },
  { 0x370000, 16 },
  { 0x380000, 16 },
  { 0x390000, 16 },
  { 0x3a0000, 16 },
  { 0x3b0000, 16 },
  { 0x3c0000, 16 },
  { 0x3d0000, 16 },
  { 0x3e0000, 16 },
  { 0x3f0000, 16 },
  { 0x400000, 16 },
  { 0x410000, 16 },
  { 0x420000, 16 },
  { 0x430000, 16 },
  { 0x440000, 16 },
  { 0x450000, 16 },
  { 0x460000, 16 },
  { 0x470000, 16 },
  { 0x480000, 16 },
  { 0x490000, 16 },
  { 0x4a0000, 16 },
  { 0x4b0000, 16 },
  { 0x4c0000, 16 },
  { 0x4d0000, 16 },
  { 0x4e0000, 16 },
  { 0x4f0000, 16 },
  { 0x500000, 16 },
  { 0x510000, 16 },
  { 0x520000, 16 },
  { 0x530000, 16 },
  { 0x540000, 16 },
  { 0x550000, 16 },
  { 0x560000, 16 },
  { 0x570000, 16 },
  { 0x580000, 16 },
  { 0x590000, 16 },
  { 0x5a0000, 16 },
  { 0x5b0000, 16 },
  { 0x5c0000, 16 },
  { 0x5d0000, 16 },
  { 0x5e0000, 16 },
  { 0x5f0000, 16 },
  { 0x600000, 16 },
  { 0x610000, 16 },
  { 0x620000, 16 },
  { 0x630000, 16 },
  { 0x640000, 16 },
  { 0x650000, 16 },
  { 0x660000, 16 },
  { 0x670000, 16 },
  { 0x680000, 16 },
  { 0x690000, 16 },
  { 0x6a0000, 16 },
  { 0x6b0000, 16 },
  { 0x6c0000, 16 },
  { 0x6d0000, 16 },
  { 0x6e0000, 16 },
  { 0x6f0000, 16 },
  { 0x700000, 16 },
  { 0x710000, 16 },
  { 0x720000, 16 },
  { 0x730000, 16 },
  { 0x740000, 16 },
  { 0x750000, 16 },
  { 0x760000, 16 },
  { 0x770000, 16 },
  { 0x780000, 16 },
  { 0x790000, 16 },
  { 0x7a0000, 16 },
  { 0x7b0000, 16 },
  { 0x7c0000, 16 },
  { 0x7d0000, 16 },
  { 0x7e0000, 16 },
  { 0x7f0000, 16 },

  { 0x800000, 16 },
  { 0x810000, 16 },
  { 0x820000, 16 },
  { 0x830000, 16 },
  { 0x840000, 16 },
  { 0x850000, 16 },
  { 0x860000, 16 },
  { 0x870000, 16 },
  { 0x880000, 16 },
  { 0x890000, 16 },
  { 0x8a0000, 16 },
  { 0x8b0000, 16 },
  { 0x8c0000, 16 },
  { 0x8d0000, 16 },
  { 0x8e0000, 16 },
  { 0x8f0000, 16 },
  { 0x900000, 16 },
  { 0x910000, 16 },
  { 0x920000, 16 },
  { 0x930000, 16 },
  { 0x940000, 16 },
  { 0x950000, 16 },
  { 0x960000, 16 },
  { 0x970000, 16 },
  { 0x980000, 16 },
  { 0x990000, 16 },
  { 0x9a0000, 16 },
  { 0x9b0000, 16 },
  { 0x9c0000, 16 },
  { 0x9d0000, 16 },
  { 0x9e0000, 16 },
  { 0x9f0000, 16 },
  { 0xa00000, 16 },
  { 0xa10000, 16 },
  { 0xa20000, 16 },
  { 0xa30000, 16 },
  { 0xa40000, 16 },
  { 0xa50000, 16 },
  { 0xa60000, 16 },
  { 0xa70000, 16 },
  { 0xa80000, 16 },
  { 0xa90000, 16 },
  { 0xaa0000, 16 },
  { 0xab0000, 16 },
  { 0xac0000, 16 },
  { 0xad0000, 16 },
  { 0xae0000, 16 },
  { 0xaf0000, 16 },
  { 0xb00000, 16 },
  { 0xb10000, 16 },
  { 0xb20000, 16 },
  { 0xb30000, 16 },
  { 0xb40000, 16 },
  { 0xb50000, 16 },
  { 0xb60000, 16 },
  { 0xb70000, 16 },
  { 0xb80000, 16 },
  { 0xb90000, 16 },
  { 0xba0000, 16 },
  { 0xbb0000, 16 },
  { 0xbc0000, 16 },
  { 0xbd0000, 16 },
  { 0xbe0000, 16 },
  { 0xbf0000, 16 },
  { 0xc00000, 16 },
  { 0xc10000, 16 },
  { 0xc20000, 16 },
  { 0xc30000, 16 },
  { 0xc40000, 16 },
  { 0xc50000, 16 },
  { 0xc60000, 16 },
  { 0xc70000, 16 },
  { 0xc80000, 16 },
  { 0xc90000, 16 },
  { 0xca0000, 16 },
  { 0xcb0000, 16 },
  { 0xcc0000, 16 },
  { 0xcd0000, 16 },
  { 0xce0000, 16 },
  { 0xcf0000, 16 },
  { 0xd00000, 16 },
  { 0xd10000, 16 },
  { 0xd20000, 16 },
  { 0xd30000, 16 },
  { 0xd40000, 16 },
  { 0xd50000, 16 },
  { 0xd60000, 16 },
  { 0xd70000, 16 },
  { 0xd80000, 16 },
  { 0xd90000, 16 },
  { 0xda0000, 16 },
  { 0xdb0000, 16 },
  { 0xdc0000, 16 },
  { 0xdd0000, 16 },
  { 0xde0000, 16 },
  { 0xdf0000, 16 },
  { 0xe00000, 16 },
  { 0xe10000, 16 },
  { 0xe20000, 16 },
  { 0xe30000, 16 },
  { 0xe40000, 16 },
  { 0xe50000, 16 },
  { 0xe60000, 16 },
  { 0xe70000, 16 },
  { 0xe80000, 16 },
  { 0xe90000, 16 },
  { 0xea0000, 16 },
  { 0xeb0000, 16 },
  { 0xec0000, 16 },
  { 0xed0000, 16 },
  { 0xee0000, 16 },
  { 0xef0000, 16 },
  { 0xf00000, 16 },
  { 0xf10000, 16 },
  { 0xf20000, 16 },
  { 0xf30000, 16 },
  { 0xf40000, 16 },
  { 0xf50000, 16 },
  { 0xf60000, 16 },
  { 0xf70000, 16 },
  { 0xf80000, 16 },
  { 0xf90000, 16 },
  { 0xfa0000, 16 },
  { 0xfb0000, 16 },
  { 0xfc0000, 16 },
  { 0xfd0000, 16 },
  { 0xfe0000, 16 },
  { 0xff0000, 16 }

  
};




// 128x64kb
static const struct block_info_s flash_128x64[] =
{
  { 0x00000, 16 },
  { 0x10000, 16 },
  { 0x20000, 16 },
  { 0x30000, 16 },
  { 0x40000, 16 },
  { 0x50000, 16 },
  { 0x60000, 16 },
  { 0x70000, 16 },

⌨️ 快捷键说明

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