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

📄 drv_glob.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:     drv_glob.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.
 *
 * Abstract:  
 *  This file provides the C definitions for the driver globals area of
 *  shared memory, used to coordinate between ISRs and ISTs.
 */

#ifndef _drv_glob_h
#define _drv_glob_h

#include "armintboot.h"
#include "board.h"

#define PAD(label,amt) UCHAR Pad##label[amt]

// Make sure these match config.bib settings
#define DRIVER_GLOBALS_PHYSICAL_MEMORY_START  (VA_RAM_BASE + 0x8000)
#define DRIVER_GLOBALS_PHYSICAL_MEMORY_SIZE   0x1000  // 4K

// In OEMInit, we zero out the region specified by the following defs
#define DRIVER_GLOBALS_ZEROINIT_START  DRIVER_GLOBALS_PHYSICAL_MEMORY_START
#define DRIVER_GLOBALS_ZEROINIT_SIZE   0x800

// don't include all the c stuff for fw_platform.s
#ifndef ASM_ONLY

#include <halether.h>

#pragma pack(1)

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

typedef struct _DRIVER_GLOBALS
{
    PAD(0,0x800);
    // The following structs will not be zero initialized (see defs above)
    HARP_BOOT_ARGS   eth;    // Offset 0x800
} DRIVER_GLOBALS, *PDRIVER_GLOBALS;
#endif //not ASM_ONLY

#ifndef ASM_ONLY
#pragma pack()

// Prototype functions from drvlib
#ifdef __cplusplus
extern "C" {
#endif
void DriverSleep(DWORD dwMS, BOOL bInPowerHandler);
#ifdef __cplusplus
}
#endif
#endif //not ASM_ONLY

#endif // _DRV_GLOB_H

⌨️ 快捷键说明

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