exioctso.h revision 9446:0ba751ada271
1233294Sstas/* 255682Smarkm * CDDL HEADER START 355682Smarkm * 455682Smarkm * The contents of this file are subject to the terms of the 5233294Sstas * Common Development and Distribution License (the "License"). 6233294Sstas * You may not use this file except in compliance with the License. 755682Smarkm * 855682Smarkm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 955682Smarkm * or http://www.opensolaris.org/os/licensing. 1055682Smarkm * See the License for the specific language governing permissions 1172445Sassar * and limitations under the License. 1272445Sassar * 1372445Sassar * When distributing Covered Code, include this CDDL HEADER in each 14178825Sdfr * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15178825Sdfr * If applicable, add the following below this CDDL HEADER, with the 16178825Sdfr * fields enclosed by brackets "[]" replaced with your own identifying 17178825Sdfr * information: Portions Copyright [yyyy] [name of copyright owner] 18178825Sdfr * 19178825Sdfr * CDDL HEADER END 20233294Sstas */ 21233294Sstas 22233294Sstas/* Copyright 2009 QLogic Corporation */ 2355682Smarkm 24233294Sstas/* 25233294Sstas * File Name: exioctso.h 26233294Sstas * 27233294Sstas * San/Device Management OS dependent Ioctl Header 28233294Sstas * 29233294Sstas * *********************************************************************** 30233294Sstas * * ** 31233294Sstas * * NOTICE ** 32233294Sstas * * COPYRIGHT (C) 2009 QLOGIC CORPORATION ** 33233294Sstas * * ALL RIGHTS RESERVED ** 34233294Sstas * * ** 35233294Sstas * *********************************************************************** 36233294Sstas * 37233294Sstas */ 38233294Sstas 39233294Sstas#ifndef _EXIOCTSO_H_ 40233294Sstas#define _EXIOCTSO_H_ 41233294Sstas 42233294Sstas#include <sys/int_types.h> 43233294Sstas 44233294Sstas#define INT8 int8_t 45276486Sngie#define INT16 int16_t 46#define INT32 int32_t 47#define INT64 int64_t 48 49#define UINT8 uint8_t 50#define UINT16 uint16_t 51#define UINT32 uint32_t 52#define UINT64 uint64_t 53 54#ifdef LP64 55#define EXT_ADDR_MODE_OS EXT_DEF_ADDR_MODE_64 56#else 57#define EXT_ADDR_MODE_OS EXT_DEF_ADDR_MODE_32 58#endif 59 60#define EXT_DEF_MAX_HBA_OS 256 /* 0 - 0xFF */ 61#define EXT_DEF_MAX_BUS_OS 1 62#define EXT_DEF_MAX_TARGET_OS 256 /* 0 - 0xFF */ 63#define EXT_DEF_MAX_LUN_OS 16384 64#define EXT_DEF_NON_SCSI3_MAX_LUN_OS 256 65 66/* required # of entries in AEN queue */ 67#define EXT_DEF_MAX_AEN_QUEUE_OS 64 68 69 70#define EXT_CC_QUERY_OS 100 71#define EXT_CC_SEND_FCCT_PASSTHRU_OS 101 72#define EXT_CC_REG_AEN_OS 102 73#define EXT_CC_GET_AEN_OS 103 74#define EXT_CC_SEND_ELS_RNID_OS 104 75#define EXT_CC_SCSI_PASSTHRU_OS 105 76#define EXT_CC_READ_HOST_PARAMS_OS 106 77#define EXT_CC_READ_RISC_PARAMS_OS 107 78#define EXT_CC_UPDATE_HOST_PARAMS_OS 108 79#define EXT_CC_UPDATE_RISC_PARAMS_OS 109 80#define EXT_CC_READ_NVRAM_OS 110 81#define EXT_CC_UPDATE_NVRAM_OS 111 82#define EXT_CC_GET_DATA_OS 112 83#define EXT_CC_SET_DATA_OS 113 84#define EXT_CC_LOOPBACK_OS 114 85#define EXT_CC_HOST_IDX_OS 115 86#define EXT_CC_READ_OPTION_ROM_OS 116 87#define EXT_CC_UPDATE_OPTION_ROM_OS 117 88#define EXT_CC_READ_OPTION_ROM_EX_OS 118 89#define EXT_CC_UPDATE_OPTION_ROM_EX_OS 119 90#define EXT_CC_WWPN_TO_SCSIADDR_OS 120 /* Temporary definition */ 91#define EXT_CC_GET_VPD_OS 121 92#define EXT_CC_SET_VPD_OS 122 93#define EXT_CC_GET_FCACHE_OS 123 94#define EXT_CC_HOST_DRVNAME_OS 124 95#define EXT_CC_GET_SFP_DATA_OS 125 96#define EXT_CC_PORT_PARAM_OS 126 97#define EXT_CC_GET_FCACHE_EX_OS 127 98#define EXT_CC_GET_PCI_DATA_OS 128 99#define EXT_CC_GET_FWEXTTRACE_OS 129 100#define EXT_CC_GET_FWFCETRACE_OS 130 101#define EXT_CC_MENLO_RESET 131 102#define EXT_CC_MENLO_GET_FW_VERSION 132 103#define EXT_CC_MENLO_UPDATE_FW 133 104#define EXT_CC_MENLO_MANAGE_INFO 134 105#define EXT_CC_GET_VP_CNT_ID_OS 135 106#define EXT_CC_VPORT_CMD_OS 136 107#define EXT_CC_ACCESS_FLASH_OS 137 108#define EXT_CC_RESET_FW_OS 138 109 110#define EXT_CC_HBA_NODE_SBUS 0x01 111 112#endif /* _EXIOCTSO_H_ */ 113