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

📄 sysflashdev.h

📁 vxworks MPC8541 BSP
💻 H
字号:
/* sysFlashDev.h - Flash memory library header */

/* Copyright 2003-2004 ZTE, Inc. */

/*
modification history
--------------------
01a,17jun03,lzq  created.
*/

/*
DESCRIPTION
This file contains header information for Flash memory devices.
*/

#ifndef __INCsysFlashDevh
#define __INCsysFlashDevh

#ifdef __cplusplus
extern "C" {
#endif

static UINT64 amdFlashCmd[] =  /* Program Sect-Erase Chip-Erase ID-Entry Reset Reset WriteBuf */
    {                          /* ----------------------------------------------------------- */
        0x00AA00AA00AA00AALL,  /*   1st    1st, 4th   1st, 4th     1st          1st    1st    */
        0x0055005500550055LL,  /*   2nd    2nd, 5th   2nd, 5th     2nd          2nd    2nd    */
        0x00A000A000A000A0LL,  /*   3rd                                                       */
        0x0080008000800080LL,  /*          3rd        3rd                                     */
        0x0030003000300030LL,  /*               6th                                           */
        0x0010001000100010LL,  /*                          6th                                */
        0x0090009000900090LL,  /*                                  3rd                        */
        0x00F000F000F000F0LL,  /*                                         1st   3rd           */
        0x0025002500250025LL,  /*                                                      3rd    */
        0x000F000F000F000FLL,  /*                                                      4th    */
        0x001F001F001F001FLL,  /*                                                      4th    */
        0x0029002900290029LL,  /*                                                      21th   */
    };

static UINT64 intelFlashCmd[] =
    {
        0x00FF00FF00FF00FFLL,  /* Read Array                                                  */
        0x0090009000900090LL,  /* Read Configuration                                          */
        0x0098009800980098LL,  /* Read Query                                                  */
        0x0070007000700070LL,  /* Read Status Register                                        */
        0x0050005000500050LL,  /* Clear Status Register                                       */
        0x0040004000400040LL,  /* Program                                                     */
        0x0020002000200020LL,  /* Block Erase                                                 */
        0x00B000B000B000B0LL,  /* Program/Erase Suspend                                       */
        0x00D000D000D000D0LL,  /* Program/Erase Resume or Confirm or Unlock                   */
        0x0060006000600060LL,  /* Block Lock Operation                                        */
        0x0001000100010001LL,  /* Lock Block                                                  */
        0x002F002F002F002FLL,  /* Lock-Down Block                                             */
        0x00C000C000C000C0LL,  /* Protection Program                                          */
        0x00E800E800E800E8LL,  /* Write to buffer                                             */
        0x000F000F000F000FLL,  /* Write word count                                            */
        0x001F001F001F001FLL,  /* Write byte count                                            */
    };

FLASH_ID AM29LV040BID[]  = {{0x0101010101010101LL, 0x4F4F4F4F4F4F4F4FLL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID SST39VF040ID[]  = {{0xBFBFBFBFBFBFBFBFLL, 0xD7D7D7D7D7D7D7D7LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID AT49BV160TID[]  = {{0x001F001F001F001FLL, 0x00C200C200C200C2LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID SST39VF160ID[]  = {{0x00BF00BF00BF00BFLL, 0x2782278227822782LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID MBM29LV160TID[] = {{0x0004000400040004LL, 0x22C422C422C422C4LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID K8D6316UBID[]   = {{0x00EC00EC00EC00ECLL, 0x22E222E222E222E2LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID AM29LV256MID[]  = {{0x0001000100010001LL, 0x227E227E227E227ELL, 0x2212221222122212LL, 0x2201220122012201LL}};
FLASH_ID S29GL064MID[]   = {{0x0001000100010001LL, 0x227E227E227E227ELL, 0x2210221022102210LL, 0x2200220022002200LL}};
FLASH_ID S29GL128NID[]   = {{0x0001000100010001LL, 0x227E227E227E227ELL, 0x2221222122212221LL, 0x2201220122012201LL}};
FLASH_ID S29GL256NID[]   = {{0x0001000100010001LL, 0x227E227E227E227ELL, 0x2222222222222222LL, 0x2201220122012201LL}};
FLASH_ID S29GL512NID[]   = {{0x0001000100010001LL, 0x227E227E227E227ELL, 0x2223222322232223LL, 0x2201220122012201LL}};
FLASH_ID E28F160C3TID[]  = {{0x0089008900890089LL, 0x88C288C288C288C2LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID M28W160CTID[]   = {{0x0020002000200020LL, 0x88CE88CE88CE88CELL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID E28F320C3TID[]  = {{0x0089008900890089LL, 0x88C488C488C488C4LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID M28W320CTID[]   = {{0x0020002000200020LL, 0x88BA88BA88BA88BALL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID E28F640C3TID[]  = {{0x0089008900890089LL, 0x88CC88CC88CC88CCLL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID E28F320J3AID[]  = {{0x0089008900890089LL, 0x0016001600160016LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID E28F640J3AID[]  = {{0x0089008900890089LL, 0x0017001700170017LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID E28F128J3AID[]  = {{0x0089008900890089LL, 0x0018001800180018LL,          (UINT64)0x0,          (UINT64)0x0}};
FLASH_ID MT28F128J3ID[]  = {{0x002C002C002C002CLL, 0x0018001800180018LL,          (UINT64)0x0,          (UINT64)0x0}};

FLASH_PART AM29LV040BPart[]  = { {0x10000, 8} };

FLASH_PART SST39VF040Part[]  = { {0x1000, 128} };

FLASH_PART AT49BV160TPart[]  = { {0x10000, 31},
                                 {0x2000, 8} };

FLASH_PART SST39VF160Part[]  = { {0x1000, 512} };

FLASH_PART MBM29LV160TPart[] = { {0x10000, 31},
                                 {0x8000, 1},
                                 {0x2000, 2},
                                 {0x4000, 1} };

FLASH_PART K8D6316UBPart[]   = { {0x2000, 8},
                                 {0x10000, 127} };

FLASH_PART AM29LV256MPart[]  = { {0x10000, 512} };

FLASH_PART S29GL064MPart[]   = { {0x2000, 8},
                                 {0x10000, 127} };

FLASH_PART S29GL128NPart[]   = { {0x20000, 128} };

FLASH_PART S29GL256NPart[]   = { {0x20000, 256} };

FLASH_PART S29GL512NPart[]   = { {0x20000, 512} };

FLASH_PART E28F160C3TPart[]  = { {0x10000, 31},
                                 {0x2000, 8} };

FLASH_PART M28W160CTPart[]   = { {0x10000, 31},
                                 {0x2000, 8} };

FLASH_PART E28F320C3TPart[]  = { {0x10000, 63},
                                 {0x2000, 8} };

FLASH_PART M28W320CTPart[]   = { {0x10000, 63},
                                 {0x2000, 8} };

FLASH_PART E28F640C3TPart[]  = { {0x10000, 127},
                                 {0x2000, 8} };

FLASH_PART E28F320J3APart[]  = { {0x20000, 32} };

FLASH_PART E28F640J3APart[]  = { {0x20000, 64} };

FLASH_PART E28F128J3APart[]  = { {0x20000, 128} };

FLASH_PART MT28F128J3Part[]  = { {0x20000, 128} };

FLASH_PHY flashPhy[] = { {1, AM29LV040BID,  AM29LV040BPart,  NELEMENTS(AM29LV040BPart),  0},
                         {1, SST39VF040ID,  SST39VF040Part,  NELEMENTS(SST39VF040Part),  0},
                         {1, AT49BV160TID,  AT49BV160TPart,  NELEMENTS(AT49BV160TPart),  0},
                         {1, SST39VF160ID,  SST39VF160Part,  NELEMENTS(SST39VF160Part),  0},
                         {1, MBM29LV160TID, MBM29LV160TPart, NELEMENTS(MBM29LV160TPart), 0},
                         {1, K8D6316UBID,   K8D6316UBPart,   NELEMENTS(K8D6316UBPart),   0},
                         {1, AM29LV256MID,  AM29LV256MPart,  NELEMENTS(AM29LV256MPart),  1},
                         {1, S29GL064MID,   S29GL064MPart,   NELEMENTS(S29GL064MPart),   1},
                         {1, S29GL128NID,   S29GL128NPart,   NELEMENTS(S29GL128NPart),   1},
                         {1, S29GL256NID,   S29GL256NPart,   NELEMENTS(S29GL256NPart),   1},
                         {1, S29GL512NID,   S29GL512NPart,   NELEMENTS(S29GL512NPart),   1},
                         {0, E28F160C3TID,  E28F160C3TPart,  NELEMENTS(E28F160C3TPart),  0},
                         {0, M28W160CTID,   M28W160CTPart,   NELEMENTS(M28W160CTPart),   0},
                         {0, E28F320C3TID,  E28F320C3TPart,  NELEMENTS(E28F320C3TPart),  0},
                         {0, M28W320CTID,   M28W320CTPart,   NELEMENTS(M28W320CTPart),   0},
                         {0, E28F640C3TID,  E28F640C3TPart,  NELEMENTS(E28F640C3TPart),  0},
                         {0, E28F320J3AID,  E28F320J3APart,  NELEMENTS(E28F320J3APart),  1},
                         {0, E28F640J3AID,  E28F640J3APart,  NELEMENTS(E28F640J3APart),  1},
                         {0, E28F128J3AID,  E28F128J3APart,  NELEMENTS(E28F128J3APart),  1},
                         {0, MT28F128J3ID,  MT28F128J3Part,  NELEMENTS(MT28F128J3Part),  1},
                         {(int)-1, (FLASH_ID *)-1, (FLASH_PART *)-1, (UINT32)-1, (int)-1},
                       };

#ifdef __cplusplus
}
#endif

#endif /* __INCsysFlashDevh */

⌨️ 快捷键说明

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