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

📄 ioctl_cfg.h

📁 老外的一个开源项目
💻 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 + -