📄 eboot.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
// ----------------------------------------------------------------
// File: eboot.h,v
// Revision: 1.2
// ----------------------------------------------------------------
// $
//
//------------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
//------------------------------------------------------------------------------
#ifndef _EBOOT_H
#define _EBOOT_H
#define EBOOT_VERSION_MAJOR 3
#define EBOOT_VERSION_MINOR 2
//
// The default jump address is a flash address in the starting block of the
// OS area. The first two blocks of flash are reserved for eboot and the
// last two are reserved for eboot settings and the SIB, respectively.
//
#define FLASH_JUMP_ADDR (NK_FLASH_BASE + 0x1000)
// flags
#define BLDR_SETTINGS_FLAGS_DHCP 0x00000001 // DHCP enabled
#define BLDR_SETTINGS_FLAGS_NOKITL 0x00000002 // KITL disabled
#define BLDR_SETTINGS_FLAGS_PSVKITL 0x00000004 // KITL passive mode
#define BLDR_SETTINGS_FLAGS_FSHDLOAD 0x00000008 // Force PB Flash Download/Boot
//
// Boot loader flash settings.
//
#define BLDR_SETTINGS_MAJOR 1
#define BLDR_SETTINGS_MINOR 1
typedef struct
{
ULONG nCheckSum; // Checksum
USHORT nVerMaj; // Major Version
USHORT nVerMin; // Minor Version
ULONG nFlags; // Loader Flags
ULONG nIPAddress; // IP Address
ULONG nSubnetMask; // Subnet Mask
ULONG nJumpAddr; // Last Jump Address
ULONG nMAC[3]; //MAC Address
} BLDR_SETTINGS, *PBLDR_SETTINGS;
#endif // _EBOOT_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -