📄 efd_ioctl.h
字号:
/* ###########################################################################
### Intel Confidential
### Copyright (c) Intel Corporation 2007
### All Rights Reserved.
### ----------------------------------------------------------------------
### Project: Intel Flash Driver
###
### Module: efd_ioctl.h
###
### $Archive: $
### $Revision: $
### $Date: $
###
### $NoKeywords: $
##############################################################################
###
### NOTICE OF LICENSE AGREEMENT
###
### This code is provided by Intel Corp., and the use is governed
### under the terms of a license agreement. See license agreement
### for complete terms of license.
###
### YOU MAY ONLY USE THE SOFTWARE SUBJECT TO THE TERMS OF THE
### INTEL SOFTWARE LICENSE AGREEMENT.
###
########################################################################### */
#ifndef _EFD_IOCTL_H_
#define _EFD_IOCTL_H_
/*
The source code defines command set for all operations
*/
typedef enum {
FLASH_CMD_ID = 0x0,
FLASH_CMD_CFI,
FLASH_CMD_CFI_EX,
FLASH_CMD_READ,
FLASH_CMD_WRITE,
FLASH_CMD_BUFFERED_WRITE,
FLASH_CMD_SUSPEND,
FLASH_CMD_RESUME,
FLASH_CMD_BLOCK_SUSPEND,
FLASH_CMD_BLOCK_RESUME,
FLASH_CMD_BLOCK_ERASE,
FLASH_CMD_BLOCK_STATE,
FLASH_CMD_BLOCK_UNLOCK,
FLASH_CMD_BLOCK_LOCKDOWN,
FLASH_CMD_BLOCK_LOCK,
FLASH_CMD_READ_STATUS,
FLASH_CMD_CLEAR_STATUS,
FLASH_CMD_READ_PR,
FLASH_CMD_WRITE_PR,
FLASH_CMD_BA_WRITE,
FLASH_CMD_BA_BUFFERED_WRITE,
FLASH_CMD_STREAM_ENTRY,
FLASH_CMD_STREAM_EXIT
} FLASH_COMMAND;
/*
The source code defines parameter type for all operations
*/
typedef union {
/* Flash Identifier Parameters */
FLASH_ID FlashId;
/* CFI Parameters */
struct {
UINT32 Length;
UINT32 Offset;
UINT8 *Data;
} Cfi;
/* CFI Ex Parameters */
struct {
FLASH_CFI Code;
UINT32 Data;
} CfiEx;
/* Read Parameters */
struct {
UINT32 Addr;
UINT32 Value;
} Read;
/* Write Parameters */
struct {
UINT32 Addr;
UINT32 Value;
} Write;
/* Buffered Write Parameters */
struct {
UINT32 Length;
UINT32 Offset;
UINT8 *Data;
} BufWrite;
/* ProgramOp Parameters */
struct {
UINT32 Addr;
} ProgramOp;
/* BlockOp Parameters */
struct {
UINT32 Addr;
} BlockOp;
/* BlockState Parameters */
struct {
UINT32 Addr;
UINT32 State;
} BlockState;
} FLASH_PARAMETER;
#endif /* _EFD_IOCTL_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -