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

📄 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+-----------------------------------------------------------------------------*//* * Flash defines */ #define MFG_STRING    0x0001   // AMD#define DEV_STRING    0x2249   // AM29LV160BB#define NUM_SECTORS 70typedef struct sect_map { unsigned long start_addr;} sect_map_t;static sect_map_t flash_map[NUM_SECTORS+1] =/* dev 1, sec  0 */  { { 0x7fc00000 },/*        sec  1 */    { 0x7fc04000 },/*        sec  2 */    { 0x7fc06000 },/*        sec  3 */    { 0x7fc08000 },/*        sec  4 */    { 0x7fc10000 },/*        sec  5 */    { 0x7fc20000 },/*        sec  6 */    { 0x7fc30000 },/*        sec  7 */    { 0x7fc40000 },/*        sec  8 */    { 0x7fc50000 },/*        sec  9 */    { 0x7fc60000 },/*        sec 10 */    { 0x7fc70000 },/*        sec 11 */    { 0x7fc80000 },/*        sec 12 */    { 0x7fc90000 },/*        sec 13 */    { 0x7fca0000 },/*        sec 14 */    { 0x7fcb0000 },/*        sec 15 */    { 0x7fcc0000 },/*        sec 16 */    { 0x7fcd0000 },/*        sec 17 */    { 0x7fce0000 },/*        sec 18 */    { 0x7fcf0000 },/*        sec 19 */    { 0x7fd00000 },/*        sec 20 */    { 0x7fd10000 },/*        sec 21 */    { 0x7fd20000 },/*        sec 22 */    { 0x7fd30000 },/*        sec 23 */    { 0x7fd40000 },/*        sec 24 */    { 0x7fd50000 },/*        sec 25 */    { 0x7fd60000 },/*        sec 26 */    { 0x7fd70000 },/*        sec 27 */    { 0x7fd80000 },/*        sec 28 */    { 0x7fd90000 },/*        sec 29 */    { 0x7fda0000 },/*        sec 30 */    { 0x7fdb0000 },/*        sec 31 */    { 0x7fdc0000 },/*        sec 32 */    { 0x7fdd0000 },/*        sec 33 */    { 0x7fde0000 },/*        sec 34 */    { 0x7fdf0000 },/* dev 0, sec 35 */    { 0x7fe00000 },/*        sec 36 */    { 0x7fe04000 },/*        sec 37 */    { 0x7fe06000 },/*        sec 38 */    { 0x7fe08000 },/*        sec 39 */    { 0x7fe10000 },/*        sec 40 */    { 0x7fe20000 },/*        sec 41 */    { 0x7fe30000 },/*        sec 42 */    { 0x7fe40000 },/*        sec 43 */    { 0x7fe50000 },/*        sec 44 */    { 0x7fe60000 },/*        sec 45 */    { 0x7fe70000 },/*        sec 46 */    { 0x7fe80000 },/*        sec 47 */    { 0x7fe90000 },/*        sec 48 */    { 0x7fea0000 },/*        sec 49 */    { 0x7feb0000 },/*        sec 50 */    { 0x7fec0000 },/*        sec 51 */    { 0x7fed0000 },/*        sec 52 */    { 0x7fee0000 },/*        sec 53 */    { 0x7fef0000 },/*        sec 54 */    { 0x7ff00000 },/*        sec 55 */    { 0x7ff10000 },/*        sec 56 */    { 0x7ff20000 },/*        sec 57 */    { 0x7ff30000 },/*        sec 58 */    { 0x7ff40000 },/*        sec 59 */    { 0x7ff50000 },/*        sec 60 */    { 0x7ff60000 },/*        sec 61 */    { 0x7ff70000 },/*        sec 62 */    { 0x7ff80000 },/*        sec 63 */    { 0x7ff90000 },/*        sec 64 */    { 0x7ffa0000 },/*        sec 65 */    { 0x7ffb0000 },/*        sec 66 */    { 0x7ffc0000 },/*        sec 67 */    { 0x7ffd0000 },/*        sec 68 */    { 0x7ffe0000 },/*        sec 69 */    { 0x7fff0000 },/*End,    secend */    { 0x80000000 }  };

⌨️ 快捷键说明

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