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

📄 flash.h

📁 Ibmstb02500 miniboot 源码
💻 H
字号:
/* openbios/include/FLASH.H, redbios, redbios_iii_1.0 3/23/98 11:41:19 *//*-----------------------------------------------------------------------------+||       This source code has been made available to you by IBM on an AS-IS|       basis.  Anyone receiving this source is licensed under IBM|       copyrights to use it in any way he or she deems fit, including|       copying it, modifying it, compiling it, and redistributing it either|       with or without modifications.  No license under IBM patents or|       patent applications is to be implied by the copyright license.||       Any user of this software should understand that IBM cannot provide|       technical support for this software and will not be responsible for|       any consequences resulting from the use of this software.||       Any person who transfers this source code or any derivative work|       must include the IBM copyright notice, this paragraph, and the|       preceding two paragraphs in the transferred software.||       COPYRIGHT   I B M   CORPORATION 1995|       LICENSED MATERIAL  -  PROGRAM PROPERTY OF I B M+-----------------------------------------------------------------------------*//*-----------------------------------------------------------------------------+||  Date        Description of Change                                       BY|  ---------   ---------------------                                       ---|  02-Feb-00   added MFG & DEV id for AMD29LV160BB                        jfh|              added Sector Map Table used in flashprg.c                  jfh|  07-Jan-02   Add secend entry for code                                  YYD|              Modified DEVICE_ID stuff|  01-May-02   Modified for RW6                                           VK+-----------------------------------------------------------------------------*//* * Flash defines */ #define MFG_STRING    0x0001   // AMD#define MFG_STRING1    0x0a1  // AMD#define DEV_STRING    0x227e   // AM29LV320DB#define NUM_SECTORS   128typedef struct sect_map { unsigned long start_addr;} sect_map_t;static sect_map_t flash_map[NUM_SECTORS+1] = {/* dev 1, sec 00 */    { 0x7f000000 },/*        sec 01 */    { 0x7f020000 },/*        sec 02 */    { 0x7f040000 },/*        sec 03 */    { 0x7f060000 },/*        sec 04 */    { 0x7f080000 },/*        sec 05 */    { 0x7f0a0000 },/*        sec 06 */    { 0x7f0c0000 },/*        sec 07 */    { 0x7f0e0000 },/*        sec 08 */    { 0x7f100000 },/*        sec 09 */    { 0x7f120000 },/*        sec 10 */    { 0x7f140000 },/*        sec 11 */    { 0x7f160000 },/*        sec 12*/     { 0x7f180000 },/*        sec 13 */    { 0x7f1a0000 },/*        sec 14 */    { 0x7f1c0000 },/*        sec 15 */    { 0x7f1e0000 },/*        sec 16 */    { 0x7f200000 },/*        sec 17 */    { 0x7f220000 },/*        sec 18 */    { 0x7f240000 },/*        sec 19 */    { 0x7f260000 },/*        sec 20 */    { 0x7f280000 },/*        sec 21*/    { 0x7f2a0000 },/*        sec 22 */    { 0x7f2c0000 },/*        sec 23 */    { 0x7f2e0000 },/*        sec 24 */    { 0x7f300000 },/*        sec 25 */    { 0x7f320000 },/*        sec 26 */    { 0x7f340000 },/*        sec 27 */    { 0x7f360000 },/*        sec 28 */    { 0x7f380000 },/*        sec 29 */    { 0x7f3a0000 },/*        sec 30 */    { 0x7f3c0000 },/*        sec 31 */    { 0x7f3e0000 },/*        sec 32 */    { 0x7f400000 },/*        sec 33 */    { 0x7f420000 },/*        sec 34*/    { 0x7f440000 },/*        sec 35 */    { 0x7f460000 },/*        sec 36 */    { 0x7f480000 },/*        sec 37 */    { 0x7f4a0000 },/*        sec 38 */    { 0x7f4c0000 },/*        sec 39 */    { 0x7f4e0000 },/*        sec 40 */    { 0x7f500000 },/*        sec 41 */    { 0x7f520000 },/*        sec 42 */    { 0x7f540000 },/*        sec 43*/    { 0x7f560000 },/*        sec 44 */    { 0x7f580000 },/*        sec 45 */    { 0x7f5a0000 },/*        sec 46 */    { 0x7f5c0000 },/*        sec 47 */    { 0x7f5e0000 },/*        sec 48 */    { 0x7f600000 },/*        sec 49 */    { 0x7f620000 },/*        sec 50 */    { 0x7f640000 },/*        sec 51 */    { 0x7f660000 },/*        sec 52 */    { 0x7f680000 },/*        sec 53 */    { 0x7f6a0000 },/*        sec 54 */    { 0x7f6c0000 },/*        sec 55 */    { 0x7f6e0000 },/*        sec 56 */    { 0x7f700000 },/*        sec 57 */    { 0x7f720000 },/*        sec 58 */    { 0x7f740000 },/*        sec 59 */    { 0x7f760000 },/*        sec 60 */    { 0x7f780000 },/*        sec 61 */    { 0x7f7a0000 },/*        sec 62 */    { 0x7f7c0000 },/*        sec 63 */    { 0x7f7e0000 },/* dev 0, sec 64 */    { 0x7f800000 },/*        sec 65 */    { 0x7f820000 },/*        sec 66 */    { 0x7f840000 },/*        sec 67 */    { 0x7f860000 },/*        sec 68 */    { 0x7f880000 },/*        sec 69 */    { 0x7f8a0000 },/*        sec 70 */    { 0x7f8c0000 },/*        sec 71 */    { 0x7f8e0000 },/*        sec 72 */    { 0x7f900000 },/*        sec 73 */    { 0x7f920000 },/*        sec 74 */    { 0x7f940000 },/*        sec 75 */    { 0x7f960000 },/*        sec 76 */    { 0x7f980000 },/*        sec 77 */    { 0x7f9a0000 },/*        sec 78 */    { 0x7f9c0000 },/*        sec 79 */    { 0x7f9e0000 },/*        sec 80 */    { 0x7fa00000 },/*        sec 81 */    { 0x7fa20000 },/*        sec 82 */    { 0x7fa40000 },/*        sec 83 */    { 0x7fa60000 },/*        sec 84 */    { 0x7fa80000 },/*        sec 85 */    { 0x7faa0000 },/*        sec 86 */    { 0x7fac0000 },/*        sec 87 */    { 0x7fae0000 },/*        sec 88 */    { 0x7fb00000 },/*        sec 89 */    { 0x7fb20000 },/*        sec 90 */    { 0x7fb40000 },/*        sec 90 */    { 0x7fb60000 },/*        sec 91 */    { 0x7fb80000 },/*        sec 92 */    { 0x7fba0000 },/*        sec 93 */    { 0x7fbc0000 },/*        sec 94 */    { 0x7fbe0000 },/* dev 0, sec 95 */    { 0x7fc00000 },/*        sec 96 */    { 0x7fc20000 },/*        sec 97 */    { 0x7fc40000 },/*        sec 98 */    { 0x7fc60000 },/*        sec 99 */    { 0x7fc80000 },/*        sec 100 */    { 0x7fca0000 },/*        sec 101 */    { 0x7fcc0000 },/*        sec 102 */    { 0x7fce0000 },/*        sec 103 */    { 0x7fd00000 },/*        sec 104 */    { 0x7fd20000 },/*        sec 105 */    { 0x7fd40000 },/*        sec 106 */    { 0x7fd60000 },/*        sec 107 */    { 0x7fd80000 },/*        sec 109 */    { 0x7fda0000 },/*        sec 110 */    { 0x7fdc0000 },/*        sec 111*/     { 0x7fde0000 },/*        sec 112 */    { 0x7fe00000 },/*        sec 113 */    { 0x7fe20000 },/*        sec 114 */    { 0x7fe40000 },/*        sec 115 */    { 0x7fe60000 },/*        sec 116 */    { 0x7fe80000 },/*        sec 117 */    { 0x7fea0000 },/*        sec 118 */    { 0x7fec0000 },/*        sec 119 */    { 0x7fee0000 },/*        sec 120 */    { 0x7ff00000 },/*        sec 121 */    { 0x7ff20000 },/*        sec 122 */    { 0x7ff40000 },/*        sec 123 */    { 0x7ff60000 },/*        sec 124 */    { 0x7ff80000 },/*        sec 125*/    { 0x7ffa0000 },/*        sec 126 */    { 0x7ffc0000 },/*        sec 127 */    { 0x7ffe0000 },/*End,    secend */    { 0x80000000 }  };

⌨️ 快捷键说明

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