inioct.h
来自「这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自」· C头文件 代码 · 共 123 行
H
123 行
/****************************************************************************** * QLOGIC LINUX SOFTWARE * * QLogic ISP2x00 device driver for Linux 2.4.x * Copyright (C) 2002 Qlogic Corporation * (www.qlogic.com) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * ******************************************************************************//* * File Name: inioct.h * * San/Device Management Ioctl Header * File is created to adhere to Solaris requirement using 8-space tabs. * * !!!!! PLEASE DO NOT REMOVE THE TABS !!!!! * !!!!! PLEASE NO SINGLE LINE COMMENTS: // !!!!! * !!!!! PLEASE NO MORE THAN 80 CHARS PER LINE !!!!! * * * Revision History: * * Rev. 0 June 15, 2001 * YPL - Created. * * Rev. 1 June 26, 2001 * YPL - Change the loop back structure and delete cc that is not used. * * Rev. 2 June 29, 2001 * YPL - Use new EXT_CC defines from exioct.h * * Rev. 3 July 12, 2001 * RL - Added definitions for loopback mbx command completion codes. * */#ifndef _INIOCT_H#define _INIOCT_H/* * *********************************************************************** * X OS type definitions * *********************************************************************** */#ifdef _MSC_VER /* NT */#pragma pack(1)#endif/* * *********************************************************************** * INT_IOCTL SubCode definition. * These macros are being used for setting SubCode field in EXT_IOCTL * structure. * *********************************************************************** *//* * Currently supported DeviceControl / ioctl command codes */#define INT_CC_GET_PORT_STAT_FC EXT_CC_RESERVED0A_OS#define INT_CC_LOOPBACK EXT_CC_RESERVED0B_OS#define INT_CC_UPDATE_OPTION_ROM EXT_CC_RESERVED0C_OS#define INT_CC_ADD_TARGET_DEVICE EXT_CC_RESERVED0D_OS#define INT_CC_READ_NVRAM EXT_CC_RESERVED0E_OS#define INT_CC_UPDATE_NVRAM EXT_CC_RESERVED0F_OS#define INT_CC_SWAP_TARGET_DEVICE EXT_CC_RESERVED0G_OS#define INT_CC_LEGACY_LOOPBACK EXT_CC_RESERVED0Z_OS/* NVRAM */#define INT_SC_NVRAM_HARDWARE 0 /* Save */#define INT_SC_NVRAM_DRIVER 1 /* Driver (Apply) */#define INT_SC_NVRAM_ALL 2 /* NVRAM/Driver (Save+Apply) *//* Loopback */typedef struct _INT_LOOPBACK_REQ{ UINT16 Options; /* 2 */ UINT32 TransferCount; /* 4 */ UINT32 IterationCount; /* 4 */ UINT64 BufferAddress; /* 8 */ UINT32 BufferLength; /* 4 */ UINT16 Reserved[9]; /* 18 */}INT_LOOPBACK_REQ, *PINT_LOOPBACK_REQ; /* 408 */typedef struct _INT_LOOPBACK_RSP{ UINT64 BufferAddress; /* 8 */ UINT32 BufferLength; /* 4 */ UINT16 CompletionStatus; /* 2 */ UINT16 CrcErrorCount; /* 2 */ UINT16 DisparityErrorCount; /* 2 */ UINT16 FrameLengthErrorCount; /* 2 */ UINT32 IterationCountLastError; /* 4 */ UINT16 Reserved[8]; /* 16 */}INT_LOOPBACK_RSP, *PINT_LOOPBACK_RSP; /* 40 *//* definition for interpreting CompletionStatus values */#define INT_DEF_LB_COMPLETE 0x4000#define INT_DEF_LB_PARAM_ERR 0x4006#define INT_DEF_LB_LOOP_DOWN 0x400b#define INT_DEF_LB_CMD_ERROR 0x400c#ifdef _MSC_VER#pragma pack()#endif#endif /* _INIOCT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?