1fcf3ce44SJohn Forte /* 2fcf3ce44SJohn Forte * CDDL HEADER START 3fcf3ce44SJohn Forte * 4fcf3ce44SJohn Forte * The contents of this file are subject to the terms of the 5fcf3ce44SJohn Forte * Common Development and Distribution License (the "License"). 6fcf3ce44SJohn Forte * You may not use this file except in compliance with the License. 7fcf3ce44SJohn Forte * 8fcf3ce44SJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9fcf3ce44SJohn Forte * or http://www.opensolaris.org/os/licensing. 10fcf3ce44SJohn Forte * See the License for the specific language governing permissions 11fcf3ce44SJohn Forte * and limitations under the License. 12fcf3ce44SJohn Forte * 13fcf3ce44SJohn Forte * When distributing Covered Code, include this CDDL HEADER in each 14fcf3ce44SJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fcf3ce44SJohn Forte * If applicable, add the following below this CDDL HEADER, with the 16fcf3ce44SJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying 17fcf3ce44SJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner] 18fcf3ce44SJohn Forte * 19fcf3ce44SJohn Forte * CDDL HEADER END 20fcf3ce44SJohn Forte */ 21fcf3ce44SJohn Forte 22*4c3888b8SHans Rosenfeld /* Copyright 2015 QLogic Corporation */ 23fcf3ce44SJohn Forte 24fcf3ce44SJohn Forte /* 25fcf3ce44SJohn Forte * File Name: exioctso.h 26fcf3ce44SJohn Forte * 27fcf3ce44SJohn Forte * San/Device Management OS dependent Ioctl Header 28fcf3ce44SJohn Forte * 29fcf3ce44SJohn Forte * *********************************************************************** 30fcf3ce44SJohn Forte * * ** 31fcf3ce44SJohn Forte * * NOTICE ** 32*4c3888b8SHans Rosenfeld * * COPYRIGHT (C) 2015 QLOGIC CORPORATION ** 33fcf3ce44SJohn Forte * * ALL RIGHTS RESERVED ** 34fcf3ce44SJohn Forte * * ** 35fcf3ce44SJohn Forte * *********************************************************************** 36fcf3ce44SJohn Forte * 37fcf3ce44SJohn Forte */ 38fcf3ce44SJohn Forte 39fcf3ce44SJohn Forte #ifndef _EXIOCTSO_H_ 40fcf3ce44SJohn Forte #define _EXIOCTSO_H_ 41fcf3ce44SJohn Forte 42*4c3888b8SHans Rosenfeld #ifdef __cplusplus 43*4c3888b8SHans Rosenfeld extern "C" { 44*4c3888b8SHans Rosenfeld #endif 45*4c3888b8SHans Rosenfeld 46fcf3ce44SJohn Forte #include <sys/int_types.h> 47fcf3ce44SJohn Forte 48fcf3ce44SJohn Forte #define INT8 int8_t 49fcf3ce44SJohn Forte #define INT16 int16_t 50fcf3ce44SJohn Forte #define INT32 int32_t 51fcf3ce44SJohn Forte #define INT64 int64_t 52fcf3ce44SJohn Forte 53fcf3ce44SJohn Forte #define UINT8 uint8_t 54fcf3ce44SJohn Forte #define UINT16 uint16_t 55fcf3ce44SJohn Forte #define UINT32 uint32_t 56fcf3ce44SJohn Forte #define UINT64 uint64_t 57fcf3ce44SJohn Forte 58fcf3ce44SJohn Forte #ifdef LP64 59fcf3ce44SJohn Forte #define EXT_ADDR_MODE_OS EXT_DEF_ADDR_MODE_64 60fcf3ce44SJohn Forte #else 61fcf3ce44SJohn Forte #define EXT_ADDR_MODE_OS EXT_DEF_ADDR_MODE_32 62fcf3ce44SJohn Forte #endif 63fcf3ce44SJohn Forte 64fcf3ce44SJohn Forte #define EXT_DEF_MAX_HBA_OS 256 /* 0 - 0xFF */ 65fcf3ce44SJohn Forte #define EXT_DEF_MAX_BUS_OS 1 66*4c3888b8SHans Rosenfeld #define EXT_DEF_MAX_TARGET_OS 256 /* 0 - 0xFF */ 675dfd244aSDaniel Beauregard #define EXT_DEF_MAX_LUN_OS 16384 685dfd244aSDaniel Beauregard #define EXT_DEF_NON_SCSI3_MAX_LUN_OS 256 69fcf3ce44SJohn Forte 70fcf3ce44SJohn Forte /* required # of entries in AEN queue */ 71fcf3ce44SJohn Forte #define EXT_DEF_MAX_AEN_QUEUE_OS 64 72fcf3ce44SJohn Forte 73fcf3ce44SJohn Forte 74fcf3ce44SJohn Forte #define EXT_CC_QUERY_OS 100 75fcf3ce44SJohn Forte #define EXT_CC_SEND_FCCT_PASSTHRU_OS 101 76fcf3ce44SJohn Forte #define EXT_CC_REG_AEN_OS 102 77fcf3ce44SJohn Forte #define EXT_CC_GET_AEN_OS 103 78fcf3ce44SJohn Forte #define EXT_CC_SEND_ELS_RNID_OS 104 79fcf3ce44SJohn Forte #define EXT_CC_SCSI_PASSTHRU_OS 105 80fcf3ce44SJohn Forte #define EXT_CC_READ_HOST_PARAMS_OS 106 81fcf3ce44SJohn Forte #define EXT_CC_READ_RISC_PARAMS_OS 107 82fcf3ce44SJohn Forte #define EXT_CC_UPDATE_HOST_PARAMS_OS 108 83fcf3ce44SJohn Forte #define EXT_CC_UPDATE_RISC_PARAMS_OS 109 84fcf3ce44SJohn Forte #define EXT_CC_READ_NVRAM_OS 110 85fcf3ce44SJohn Forte #define EXT_CC_UPDATE_NVRAM_OS 111 86fcf3ce44SJohn Forte #define EXT_CC_GET_DATA_OS 112 87fcf3ce44SJohn Forte #define EXT_CC_SET_DATA_OS 113 88fcf3ce44SJohn Forte #define EXT_CC_LOOPBACK_OS 114 89fcf3ce44SJohn Forte #define EXT_CC_HOST_IDX_OS 115 90fcf3ce44SJohn Forte #define EXT_CC_READ_OPTION_ROM_OS 116 91fcf3ce44SJohn Forte #define EXT_CC_UPDATE_OPTION_ROM_OS 117 92fcf3ce44SJohn Forte #define EXT_CC_READ_OPTION_ROM_EX_OS 118 93fcf3ce44SJohn Forte #define EXT_CC_UPDATE_OPTION_ROM_EX_OS 119 94fcf3ce44SJohn Forte #define EXT_CC_WWPN_TO_SCSIADDR_OS 120 /* Temporary definition */ 95fcf3ce44SJohn Forte #define EXT_CC_GET_VPD_OS 121 96fcf3ce44SJohn Forte #define EXT_CC_SET_VPD_OS 122 97fcf3ce44SJohn Forte #define EXT_CC_GET_FCACHE_OS 123 98fcf3ce44SJohn Forte #define EXT_CC_HOST_DRVNAME_OS 124 99fcf3ce44SJohn Forte #define EXT_CC_GET_SFP_DATA_OS 125 100fcf3ce44SJohn Forte #define EXT_CC_PORT_PARAM_OS 126 101fcf3ce44SJohn Forte #define EXT_CC_GET_FCACHE_EX_OS 127 102fcf3ce44SJohn Forte #define EXT_CC_GET_PCI_DATA_OS 128 103fcf3ce44SJohn Forte #define EXT_CC_GET_FWEXTTRACE_OS 129 104fcf3ce44SJohn Forte #define EXT_CC_GET_FWFCETRACE_OS 130 105fcf3ce44SJohn Forte #define EXT_CC_MENLO_RESET 131 106fcf3ce44SJohn Forte #define EXT_CC_MENLO_GET_FW_VERSION 132 107fcf3ce44SJohn Forte #define EXT_CC_MENLO_UPDATE_FW 133 108fcf3ce44SJohn Forte #define EXT_CC_MENLO_MANAGE_INFO 134 109fcf3ce44SJohn Forte #define EXT_CC_GET_VP_CNT_ID_OS 135 110fcf3ce44SJohn Forte #define EXT_CC_VPORT_CMD_OS 136 1115dfd244aSDaniel Beauregard #define EXT_CC_ACCESS_FLASH_OS 137 1125dfd244aSDaniel Beauregard #define EXT_CC_RESET_FW_OS 138 113*4c3888b8SHans Rosenfeld #define EXT_CC_I2C_DATA_OS 139 114*4c3888b8SHans Rosenfeld #define EXT_CC_DUMP_OS 140 115*4c3888b8SHans Rosenfeld #define EXT_CC_SERDES_REG_OP_OS 141 116*4c3888b8SHans Rosenfeld #define EXT_CC_VF_STATE_OS 142 117*4c3888b8SHans Rosenfeld #define EXT_CC_SERDES_REG_OP_EX_OS 143 118*4c3888b8SHans Rosenfeld #define EXT_CC_ELS_PASSTHRU_OS 144 119*4c3888b8SHans Rosenfeld #define EXT_CC_FLASH_UPDATE_CAPS_OS 145 120*4c3888b8SHans Rosenfeld #define EXT_CC_GET_BBCR_DATA_OS 146 121fcf3ce44SJohn Forte 1225dfd244aSDaniel Beauregard #define EXT_CC_HBA_NODE_SBUS 0x01 123fcf3ce44SJohn Forte 124*4c3888b8SHans Rosenfeld #ifdef __cplusplus 125*4c3888b8SHans Rosenfeld } 126*4c3888b8SHans Rosenfeld #endif 127fcf3ce44SJohn Forte #endif /* _EXIOCTSO_H_ */ 128