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

📄 loader.c

📁 ezmon, VC程序
💻 C
📖 第 1 页 / 共 2 页
字号:
//////////////////////////////////////////////////////////////////////
//
// File:      mon51hi.c
// $Archive: /USB/Drivers/ezmon/loader.c $
//
// Purpose:
//
//    This firmware implements the ANCHOR_LOAD_EXTERNAL vendor specific command.
//    Firmware Intel Hex Records generated by hex2c.
//
// Environment:
//    kernel mode
//
// $Author: Mdn $
//
// $History: loader.c $           
//  
//  *****************  Version 6  *****************
//  User: Mdn          Date: 11/01/01   Time: 3:26p
//  Updated in $/USB/Drivers/ezmon
//  built with a3load.hex version 2
//  
//  *****************  Version 5  *****************
//  User: Mdn          Date: 8/08/00    Time: 9:50a
//  Updated in $/USB/Drivers/ezmon
//  built with a3load.hex version 1
//  
//  *****************  Version 4  *****************
//  User: Mdn          Date: 8/04/00    Time: 11:40a
//  Updated in $/USB/Drivers/ezmon
//  updated with latest version of a3load.hex
//  
//  *****************  Version 3  *****************
//  User: Mdn          Date: 8/03/00    Time: 9:10a
//  Updated in $/USB/Drivers/ezmon
//  updated to latest version of a3load
//  
//  *****************  Version 2  *****************
//  User: Mdn          Date: 8/02/00    Time: 11:17a
//  Updated in $/USB/Drivers/ezmon
//  the loader firmware is now from a3load (instead of vend_ax) and should
//  operate on all EZ-USB chips (EZ-USB, FX, and FX2)
//  
//  *****************  Version 1  *****************
//  User: Tpm          Date: 6/09/00    Time: 6:31p
//  Created in $/USB/Drivers/ezmon
//  
//  *****************  Version 2  *****************
//  User: Markm        Date: 4/09/98    Time: 4:38p
//  Updated in $/EZUSB/ezmon
//  
//  *****************  Version 1  *****************
//  User: Markm        Date: 4/09/98    Time: 3:18p
//  Created in $/EZUSB/ezmon
//  
//  
// Copyright (c) 1997 Anchor Chips, Inc.  May not be reproduced without
// permission.  See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
#include <wdm.h>
#include "usbdi.h"
#include "usbdlib.h"
#include "ezusbsys.h"

INTEL_HEX_RECORD loader[] = {
   2,
   0x6fe,
   0,
   {0xd3,0x22},
   8,
   0xbfb,
   0,
   {0x90,0xe6,0xba,0xe0,0xf5,0x1b,0xd3,0x22},
   16,
   0x6ec,
   0,
   {0x90,0xe7,0x40,0xe5,0x1b,0xf0,0xe4,0x90,0xe6,0x8a,0xf0,0x90,0xe6,0x8b,0x04,0xf0},
   2,
   0x6fc,
   0,
   {0xd3,0x22},
   8,
   0xc03,
   0,
   {0x90,0xe6,0xba,0xe0,0xf5,0x1a,0xd3,0x22},
   16,
   0xbc3,
   0,
   {0x90,0xe7,0x40,0xe5,0x1a,0xf0,0xe4,0x90,0xe6,0x8a,0xf0,0x90,0xe6,0x8b,0x04,0xf0},
   2,
   0xbd3,
   0,
   {0xd3,0x22},
   2,
   0x7fe,
   0,
   {0xd3,0x22},
   2,
   0xc0f,
   0,
   {0xd3,0x22},
   2,
   0xc11,
   0,
   {0xd3,0x22},
   2,
   0xc13,
   0,
   {0xd3,0x22},
   16,
   0xb23,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0xd2,0x01,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x01},
   8,
   0xb33,
   0,
   {0xf0,0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xb81,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x04,0xf0,0xd0},
   6,
   0xb91,
   0,
   {0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xb97,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x02,0xf0,0xd0},
   6,
   0xba7,
   0,
   {0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0x9a7,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x90,0xe6,0x80,0xe0,0x30,0xe7,0x0e,0x85,0x21,0x25},
   16,
   0x9b7,
   0,
   {0x85,0x22,0x26,0x85,0x29,0x27,0x85,0x2a,0x28,0x80,0x0c,0x85,0x29,0x25,0x85,0x2a},
   16,
   0x9c7,
   0,
   {0x26,0x85,0x21,0x27,0x85,0x22,0x28,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x10,0xf0},
   7,
   0x9d7,
   0,
   {0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xb3b,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0xd2,0x03,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x08},
   8,
   0xb4b,
   0,
   {0xf0,0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0x9de,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x90,0xe6,0x80,0xe0,0x30,0xe7,0x0e,0x85,0x21,0x25},
   16,
   0x9ee,
   0,
   {0x85,0x22,0x26,0x85,0x29,0x27,0x85,0x2a,0x28,0x80,0x0c,0x85,0x29,0x25,0x85,0x2a},
   16,
   0x9fe,
   0,
   {0x26,0x85,0x21,0x27,0x85,0x22,0x28,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x20,0xf0},
   7,
   0xa0e,
   0,
   {0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xbad,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x53,0x91,0xef,0x90,0xe6,0x5d,0x74,0x40,0xf0,0xd0},
   6,
   0xbbd,
   0,
   {0x82,0xd0,0x83,0xd0,0xe0,0x32},
   1,
   0xc15,
   0,
   {0x32},
   16,
   0xb53,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x53,0x91,0xef,0x90,0xe6,0x5f,0xe0,0x54,0xfe,0xf0},
   7,
   0xb63,
   0,
   {0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xb6a,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x53,0x91,0xef,0x90,0xe6,0x5f,0xe0,0x54,0xfd,0xf0},
   7,
   0xb7a,
   0,
   {0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0x562,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x05,0xc0,0x06,0xc0},
   1,
   0x572,
   0,
   {0x07},
   16,
   0x573,
   0,
   {0x75,0x9a,0xe7,0x75,0x9b,0x80,0x75,0x9d,0xe7,0x75,0x9e,0xc0,0x90,0xe6,0x8d,0xe0},
   16,
   0x583,
   0,
   {0xff,0x53,0x07,0xfe,0x90,0xe6,0x7b,0xe0,0x44,0x18,0xfe,0x30,0xe5,0x15,0x75,0xb4},
   16,
   0x593,
   0,
   {0x00,0xf5,0x80,0x53,0x80,0xf7,0x90,0xe6,0x7c,0xe5,0xa0,0xf0,0x43,0x80,0x08,0x05},
   16,
   0x5a3,
   0,
   {0x9b,0x80,0x61,0xee,0x20,0xe6,0x13,0xf5,0x80,0x75,0xb4,0xff,0x90,0xe6,0x7b,0xe0},
   16,
   0x5b3,
   0,
   {0xf5,0xa0,0x53,0x80,0xef,0x43,0x80,0x10,0x80,0x4a,0x7d,0x08,0x75,0xb4,0xff,0x8e},
   16,
   0x5c3,
   0,
   {0x80,0x75,0xa0,0x00,0x90,0xe6,0x7b,0xe0,0xfe,0xee,0x30,0xe7,0x05,0x43,0xa0,0x01},
   16,
   0x5d3,
   0,
   {0x80,0x03,0x53,0xa0,0xfe,0x53,0x80,0xef,0x43,0x80,0x10,0xee,0x25,0xe0,0xfe,0xdd},
   16,
   0x5e3,
   0,
   {0xe8,0x7d,0x08,0x05,0x9b,0x90,0xe6,0x7b,0xe0,0xfe,0xee,0x30,0xe7,0x05,0x43,0xa0},
   16,
   0x5f3,
   0,
   {0x01,0x80,0x03,0x53,0xa0,0xfe,0x53,0x80,0xef,0x43,0x80,0x10,0xee,0x25,0xe0,0xfe},
   16,
   0x603,
   0,
   {0xdd,0xe8,0x1f,0x1f,0x1f,0x1f,0xef,0x60,0x03,0x02,0x05,0x87,0xe5,0x9e,0x24,0x40},
   16,
   0x613,
   0,
   {0x90,0xe6,0x8f,0xf0,0x90,0xe6,0x8d,0xe4,0xf0,0x53,0x91,0xef,0x90,0xe6,0x5f,0xe0},
   3,
   0x623,
   0,
   {0x44,0x08,0xf0},
   15,
   0x626,
   0,
   {0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xb07,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x90,0xe6,0x8f,0xe4,0xf0,0x53,0x91,0xef,0x90,0xe6},
   12,
   0xb17,
   0,
   {0x5f,0xe0,0x44,0x04,0xf0,0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   16,
   0xa9c,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x00,0x00,0x00,0x90,0xe6,0x90,0xe4,0xf0,0x00,0x00},
   16,
   0xaac,
   0,
   {0x00,0x90,0xe6,0x91,0xf0,0x53,0x91,0xef,0x90,0xe6,0x5f,0xe0,0x44,0x10,0xf0,0xd0},
   6,
   0xabc,
   0,
   {0x82,0xd0,0x83,0xd0,0xe0,0x32},
   1,
   0xc16,
   0,
   {0x32},
   1,
   0xc17,
   0,
   {0x32},
   16,
   0xae7,
   0,
   {0xc0,0xe0,0xc0,0x83,0xc0,0x82,0x90,0xe6,0x9c,0xe4,0xf0,0x90,0xe6,0x9d,0xf0,0x53},
   16,
   0xaf7,
   0,
   {0x91,0xef,0x90,0xe6,0x5f,0xe0,0x44,0x08,0xf0,0xd0,0x82,0xd0,0x83,0xd0,0xe0,0x32},
   1,
   0xc18,
   0,
   {0x32},
   1,
   0xc19,
   0,
   {0x32},
   1,
   0xc1a,
   0,
   {0x32},
   1,
   0xc1b,
   0,
   {0x32},
   1,
   0xc1c,
   0,
   {0x32},
   1,
   0xc1d,
   0,
   {0x32},
   1,
   0xc1e,
   0,
   {0x32},
   1,
   0xc1f,
   0,
   {0x32},
   1,
   0xc20,
   0,
   {0x32},
   1,
   0xc21,
   0,
   {0x32},
   1,
   0xc22,
   0,
   {0x32},
   1,
   0xc23,
   0,
   {0x32},
   1,
   0xc24,
   0,
   {0x32},
   1,
   0xc25,
   0,
   {0x32},
   1,
   0xc26,
   0,
   {0x32},
   1,
   0xc27,
   0,
   {0x32},
   1,
   0xc28,
   0,
   {0x32},
   1,
   0xc29,
   0,
   {0x32},
   1,
   0xc2a,
   0,
   {0x32},
   1,
   0xc2b,
   0,
   {0x32},
   1,
   0xc2c,
   0,
   {0x32},
   1,
   0xc2d,
   0,
   {0x32},
   1,
   0xc2e,
   0,
   {0x32},
   1,
   0xc2f,
   0,
   {0x32},
   1,
   0xc30,
   0,
   {0x32},
   1,
   0xc31,
   0,
   {0x32},
   10,
   0xbf1,
   0,
   {0x00,0x01,0x02,0x02,0x03,0x03,0x04,0x04,0x05,0x05},
   16,
   0x319,
   0,
   {0xe4,0xf5,0x13,0xf5,0x12,0xf5,0x11,0xf5,0x10,0x90,0xe6,0x00,0x74,0x10,0xf0,0x75},
   16,
   0x329,
   0,
   {0xaf,0x07,0xc2,0x03,0xc2,0x00,0xc2,0x02,0xc2,0x01,0x12,0x09,0x30,0x90,0xe6,0x01},
   16,
   0x339,
   0,
   {0x74,0xc2,0xf0,0xd2,0x00,0x7e,0x08,0x7f,0x00,0x8e,0x23,0x8f,0x24,0x75,0x2b,0x08},
   16,
   0x349,
   0,
   {0x75,0x2c,0x12,0x75,0x21,0x08,0x75,0x22,0x1c,0x75,0x29,0x08,0x75,0x2a,0x4a,0x75},
   16,
   0x359,
   0,
   {0x2d,0x08,0x75,0x2e,0x78,0xee,0x54,0xe0,0x70,0x03,0x02,0x04,0x6e,0x75,0x14,0x00},
   16,
   0x369,
   0,
   {0x75,0x15,0x80,0x8e,0x16,0x8f,0x17,0xc3,0x74,0xa2,0x9f,0xff,0x74,0x08,0x9e,0xcf},
   16,
   0x379,
   0,
   {0x24,0x02,0xcf,0x34,0x00,0xfe,0xe4,0x8f,0x0f,0x8e,0x0e,0xf5,0x0d,0xf5,0x0c,0xf5},
   16,
   0x389,
   0,
   {0x0b,0xf5,0x0a,0xf5,0x09,0xf5,0x08,0xaf,0x0f,0xae,0x0e,0xad,0x0d,0xac,0x0c,0xab},
   16,
   0x399,
   0,
   {0x0b,0xaa,0x0a,0xa9,0x09,0xa8,0x08,0xc3,0x12,0x0b,0xd5,0x50,0x26,0xe5,0x15,0x25},
   16,
   0x3a9,
   0,
   {0x0b,0xf5,0x82,0xe5,0x14,0x35,0x0a,0xf5,0x83,0x74,0xcd,0xf0,0xe5,0x0b,0x24,0x01},
   16,
   0x3b9,
   0,
   {0xf5,0x0b,0xe4,0x35,0x0a,0xf5,0x0a,0xe4,0x35,0x09,0xf5,0x09,0xe4,0x35,0x08,0xf5},
   16,
   0x3c9,
   0,
   {0x08,0x80,0xc4,0xe4,0xf5,0x0b,0xf5,0x0a,0xf5,0x09,0xf5,0x08,0xaf,0x0f,0xae,0x0e},
   16,
   0x3d9,
   0,
   {0xad,0x0d,0xac,0x0c,0xab,0x0b,0xaa,0x0a,0xa9,0x09,0xa8,0x08,0xc3,0x12,0x0b,0xd5},
   16,
   0x3e9,
   0,
   {0x50,0x31,0xae,0x0a,0xaf,0x0b,0xe5,0x17,0x2f,0xf5,0x82,0xe5,0x16,0x3e,0xf5,0x83},
   16,
   0x3f9,
   0,
   {0xe0,0xfd,0xe5,0x15,0x2f,0xf5,0x82,0xe5,0x14,0x3e,0xf5,0x83,0xed,0xf0,0xef,0x24},
   16,
   0x409,
   0,
   {0x01,0xf5,0x0b,0xe4,0x3e,0xf5,0x0a,0xe4,0x35,0x09,0xf5,0x09,0xe4,0x35,0x08,0xf5},
   16,
   0x419,
   0,
   {0x08,0x80,0xb9,0x85,0x14,0x23,0x85,0x15,0x24,0x74,0x00,0x24,0x80,0xff,0x74,0x08},
   16,
   0x429,
   0,
   {0x34,0xff,0xfe,0xc3,0xe5,0x2c,0x9f,0xf5,0x2c,0xe5,0x2b,0x9e,0xf5,0x2b,0xc3,0xe5},
   16,
   0x439,
   0,
   {0x26,0x9f,0xf5,0x26,0xe5,0x25,0x9e,0xf5,0x25,0xc3,0xe5,0x28,0x9f,0xf5,0x28,0xe5},
   16,
   0x449,
   0,
   {0x27,0x9e,0xf5,0x27,0xc3,0xe5,0x22,0x9f,0xf5,0x22,0xe5,0x21,0x9e,0xf5,0x21,0xc3},
   16,
   0x459,
   0,
   {0xe5,0x2a,0x9f,0xf5,0x2a,0xe5,0x29,0x9e,0xf5,0x29,0xc3,0xe5,0x2e,0x9f,0xf5,0x2e},
   16,
   0x469,
   0,
   {0xe5,0x2d,0x9e,0xf5,0x2d,0x00,0x00,0x00,0xe4,0xf5,0xd8,0x00,0x00,0x00,0x53,0xd8},
   16,
   0x479,
   0,
   {0xef,0x90,0xe6,0x68,0x74,0x08,0xf0,0x90,0xe6,0x5c,0xe0,0x44,0x3d,0xf0,0x90,0xe6},
   16,
   0x489,
   0,
   {0x5e,0x74,0x0c,0xf0,0xe4,0xf5,0xb4,0xf5,0xa0,0x75,0xb2,0x3f,0x75,0x80,0xff,0x90},
   16,
   0x499,
   0,
   {0xe6,0x10,0x74,0xa0,0xf0,0x00,0x00,0x00,0xe4,0x90,0xe6,0x8d,0xf0,0x90,0xe6,0x11},
   16,
   0x4a9,
   0,
   {0x74,0xa0,0xf0,0x00,0x00,0x00,0xe4,0x90,0xe6,0x8f,0xf0,0x00,0x00,0x00,0x90,0xe6},
   16,
   0x4b9,
   0,
   {0x9c,0xf0,0x00,0x00,0x00,0x90,0xe6,0x9d,0xf0,0x90,0xe6,0x12,0x74,0xe2,0xf0,0x90},
   16,
   0x4c9,
   0,
   {0xe6,0x0b,0x74,0x03,0xf0,0x00,0x00,0x00,0x90,0xe6,0x04,0x74,0x80,0xf0,0x00,0x00},
   16,
   0x4d9,
   0,
   {0x00,0x74,0x02,0xf0,0x00,0x00,0x00,0xe4,0xf0,0x00,0x00,0x00,0x90,0xe6,0x18,0x74},
   16,
   0x4e9,
   0,
   {0x0d,0xf0,0x00,0x00,0x00,0x90,0xe6,0xd2,0x74,0x02,0xf0,0x00,0x00,0x00,0xe4,0x90},
   16,
   0x4f9,
   0,
   {0xe6,0xd3,0xf0,0x00,0x00,0x00,0x90,0xe6,0x20,0x74,0x02,0xf0,0x00,0x00,0x00,0xe4},

⌨️ 快捷键说明

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