?? ioctl_cfg.h
字號:
// Copyright (c) David Vescovi. All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// File: ioctl_cfg.h
//
// Configuration file for the IOCTL component.
//
//------------------------------------------------------------------------------
#ifndef _IOCTL_CFG_H_
#define _IOCTL_CFG_H_
#if __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
// RESTRICTION
//
// This file is a configuration file for the IOCTL component.
//
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
// Define: IOCTL_PLATFORM_TYPE/OEM
//
// Defines the platform type and OEM string.
//
#define IOCTL_PLATFORM_TYPE (L"GumstixII")
#define IOCTL_PLATFORM_OEM (L"WE-DIG")
//------------------------------------------------------------------------------
// Define: IOCTL_PROCESSOR_VENDOR/NAME/CORE
//
// Defines the processor information
//
#define IOCTL_PROCESSOR_VENDOR (L"Intel")
#define IOCTL_PROCESSOR_NAME (L"PXA255")
#define IOCTL_PROCESSOR_CORE (L"ARM")
//------------------------------------------------------------------------------
//
// Define: IOCTL_PROCESSOR_INSTRUCTION_SET
//
// Defines the processor instruction set information
//
#define IOCTL_PROCESSOR_INSTRUCTION_SET (0)
//------------------------------------------------------------------------------
#define IOCTL_HAL_PHYADR CTL_CODE(FILE_DEVICE_HAL, 4005, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_HAL_FCS CTL_CODE(FILE_DEVICE_HAL, 4050, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_HAL_BOOTLOADER_VER CTL_CODE(FILE_DEVICE_HAL, 4051, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_HAL_HARDWARE_CNFG CTL_CODE(FILE_DEVICE_HAL, 4052, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_HAL_BOOTFLAGS CTL_CODE(FILE_DEVICE_HAL, 4053, METHOD_BUFFERED, FILE_ANY_ACCESS)
//
// Subcodes to IOCTL_HAL_PHYADR
//
#define PHY_GET_ADDR 1
#define PHY_SET_ADDR 2
//
// Struct for physical address access
//
typedef struct {
UINT32 subcode;
UINT32 address;
UINT32 value;
UINT32 mask;
} PHYSETAdrInfo, *PPHYSETAdrInfo;
typedef struct {
UINT32 subcode;
UINT32 address;
} PHYGETAdrInfo, *PPHYGETAdrInfo;
#if __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -