bootldr.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 105 行

H
105
字号
#ifndef __BOOTLOADER_H__
#define __BOOTLOADER_H__


typedef volatile UCHAR VUCHAR, *PVUCHAR;
typedef volatile ULONG VULONG;
typedef VULONG *PVULONG;
typedef DWORD ADDRESS;

/* Common ASCII code */

#define ASC_CR      0x0d            /* Carriage return */
#define ASC_LF      0x0a            /* Line feed */
#define ASC_ESC     0x1b            /* Escape */
#define ASC_BS      0x08            /* Back space */
#define ASC_SP      0x20            /* Space */

#define SPIN_FOREVER        do { \
								EdbgOutputDebugString("SPIN at line %d of file %s\r\n", \
													  __LINE__, __FILE__); \
								while(1); \
							} while (0)

#define TO_UPPER(a)         ((a >= 0x61 && a <= 0x7A) ? a - 0x20 : a)
#define TO_LOWER(a)         ((a >= 0x41 && a <= 0x5A) ? a + 0x20 : a)

//#ifdef __cplusplus
//extern "C" {
//#endif // __cplusplus

////////////////////////////////////////////////////////////////////////////////
// JUMPTO.S
ULONG
JumpTo(
    ULONG,
    ULONG
    );



////////////////////////////////////////////////////////////////////////////////
// OEMBOOT.C
BOOL
InitCounter(
    VOID
    );

DWORD
GetCounter(
    VOID
    );



////////////////////////////////////////////////////////////////////////////////
// OEMMAIN.C
VOID
WriteLED(
    UCHAR ucCode
    );

UCHAR
ReadSwitches(
    VOID
    );

VOID
EnableFlash(
    VOID
    );

VOID
DisableFlash(
    VOID
    );

BOOL
FlashInit(
    VOID
    );

VOID
ShowMACAddress(
    PBYTE pMACAddr
    );


////////////////////////////////////////////////////////////////////////////////
// PCIINIT.C
VOID
PciInitListDevices(
    );

BOOL
PciInitSearchForDevice(
    ULONG VendorID,
    PULONG Bus,
    PULONG Device,
    PULONG Function
    );
//#ifdef __cplusplus
//}
//#endif // __cplusplus
#endif // _BOOTLOADER_H__

⌨️ 快捷键说明

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