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

📄 armintboot.h

📁 ARM9基于WINDOWSCE的BSP源代码
💻 H
字号:
/*
*   The content of this file or document is CONFIDENTIAL and PROPRIETARY
*   to Jade Technologies Co., Ltd.  It is subjected to the terms of a
*   License Agreement between Licensee and Jade Technologies Co., Ltd.
*   restricting among other things, the use, reproduction, distribution
*   and transfer.  Each of the embodiments, including this information 
*   and any derivative work shall retain this copyright notice.
* 
*   Copyright (c) 2004 - 2005 Jade Technologies Co., Ltd. 
*   All rights reserved.
// ----------------------------------------------------------------
// File:     armintboot.h,v
// Revision: 1.0
// ----------------------------------------------------------------
// $
/*
 * 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.
 *
 * All Rights Reserved
 */

#ifndef __armintboot_h
#define __armintboot_h

#include <halether.h>
#include <ceddk.h>

// Device ID string
#define PLATFORM_STRING "Z228_"

void OEMEthLaunchImage(void);

UINT16 OEMEthDown(char *pszFileName, TFtpdCallBackOps Operation,
                  BYTE *pbData, UINT16 *cwLength,
                  char **ppszErrorMsg);

//
// Bootloader parameters passed to the image.
//

#define BOOTARG_SIG  0x544F4F42 // "BOOT"

typedef struct _HARP_BOOT_ARGS
{
    DWORD   dwSig;
    DWORD   dwLen;              // Total length of boot args struct
    UCHAR   ucLoaderFlags;      // Flags set by loader
    UCHAR   ucEshellFlags;      // Flags from eshell
    UCHAR   ucEdbgAdapterType;  // Type of debug Ether adapter
    UCHAR   ucEdbgIRQ;          // IRQ line to use for debug Ether adapter
    DWORD   dwEdbgBaseAddr;     // Base I/O address for debug Ether adapter
    DWORD   dwEdbgDebugZone;    // Allow EDBG debug zones to be turned on
                                // from loadcepc
    //
    // The following is only valid if LDRFL_ADDR_VALID is set
    //
    EDBG_ADDR EdbgAddr;         // IP/ether addr to use for debug Ethernet

    //
    // The following addresses are only valid if LDRFL_JUMPIMG is set, and
    // corresponding bit in ucEshellFlags is set (configured by eshell, bit
    // definitions in ethdbg.h).
    //
    EDBG_ADDR EshellHostAddr;   // IP/ether addr and UDP port of host
                                // running eshell
    EDBG_ADDR DbgHostAddr;      // IP/ether addr and UDP port of host
                                // receiving dbg msgs
    EDBG_ADDR CeshHostAddr;     // IP/ether addr and UDP port of host
                                // running ether text shell
    EDBG_ADDR KdbgHostAddr;     // IP/ether addr and UDP port of host
                                // running kernel debugger

    DWORD DHCPLeaseTime;        // Seconds till DHCP IP lease expires
    DWORD EdbgFlags;            // Information about ethernet system
} HARP_BOOT_ARGS, *PHARP_BOOT_ARGS;

// Defs for loader flags
#define    LDRFL_USE_EDBG    0x0001  // Set to attempt to use debug Ethernet
                                     // (I.e. Kitl enabled)

// The following two flags are only looked at if LDRFL_USE_EDBG is set
#define    LDRFL_ADDR_VALID  0x0002  // Set if EdbgAddr field is valid
#define    LDRFL_JUMPIMG     0x0004  // If set, don't communicate with eshell
                                     // to get configuration, use
                                     // ucEshellFlags field.

#define    LDRFL_KITL_PSV    0x0010  // If set, start Kitl in passive mode

/**********************************************************************/

typedef struct _ETH_HARDWARE_INIT_ARGS
{
    WORD wMAC[3];
    HARP_BOOT_ARGS *pBootArgs;
    char szPlatformString[EDBG_MAX_DEV_NAMELEN];
    UCHAR ucCpuId;
} ETH_HARDWARE_INIT_ARGS, *PETH_HARDWARE_INIT_ARGS;

BOOL OEMEthHardwareInit(ETH_HARDWARE_INIT_ARGS *pInitArgs, EDBG_ADDR *pMyAddr);

#endif /* ndef __armintboot_h */

/* EOF armintboot.h */

⌨️ 快捷键说明

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