args.h

来自「该BSP是基于PXA270+WINCE的BSP」· C头文件 代码 · 共 73 行

H
73
字号
//
// 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: args.h
//
//  This file defines the shared argument structure used by the bootloader and
//  the OS image.
//
#ifndef _ARGS_H_
#define _ARGS_H_

//------------------------------------------------------------------------------

#define BSP_ARGS_VERSION    2

#define BSP_ARGS_QUERY_DBGSERIAL    BSP_ARGS_QUERY      // Query debug serial port.
#define BSP_ARGS_QUERY_HIVECLEAN    BSP_ARGS_QUERY+1    // Query hive clean flag.
#define BSP_ARGS_QUERY_CLEANBOOT    BSP_ARGS_QUERY+2    // Query clean boot flag.
#define BSP_ARGS_QUERY_FORMATPART   BSP_ARGS_QUERY+3    // Query format partition flag.
#define BSP_ARGS_QUERY_SIGNEDSTATE  BSP_ARGS_QUERY+4    // Query image signed state.


//-------------------------------------------------------------------
typedef struct _DspRegVal
{
	unsigned short	CxScreen;	
	unsigned short	CyScreen;	
	unsigned short	Bpp;
	unsigned long	LCCR0;
	unsigned char	HSW;
	unsigned char	BLW;
	unsigned char	ELW;	
	unsigned char	VSW;
	unsigned char	BFW;
	unsigned char	EFW;
	unsigned char	PCD;
	unsigned long	LCCR3_OTHER;
	unsigned char	DoRotation;
} DspRegVal;
//-------------------------------------------------------------------

typedef struct {
    OAL_ARGS_HEADER header;
    UINT8 deviceId[16];                 // Device identification
    OAL_KITL_ARGS kitl;
    UINT32 dbgSerPhysAddr;              // Debug serial physical address
    BOOL bUpdateMode;                   // TRUE = Enter update mode on reboot.
    BOOL bHiveCleanFlag;                // TRUE = Clean hive at boot
    BOOL bCleanBootFlag;                // TRUE = Clear RAM, hive, user store at boot
    BOOL bFormatPartFlag;               // TRUE = Format partion when mounted at boot
    UINT32 ImageSignedState;            // enum {IMAGE_NOT_SIGNED, IMAGE_TEST_SIGNED, IMAGE_FINAL_SIGNED}

//-------------------------------------------------------------------
    DspRegVal tDspRegVal;  	
//-------------------------------------------------------------------
} BSP_ARGS, *PBSP_ARGS;


// Called with physical address in IPL
// Called with virtual address in EBOOT
VOID OALArgsInit(BSP_ARGS *pBSPArgs);

#endif // _ARGS_H_.

⌨️ 快捷键说明

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