diff options
author | Joshua M. Clulow <jmc@joyent.com> | 2016-03-01 01:31:08 +0000 |
---|---|---|
committer | Joshua M. Clulow <jmc@joyent.com> | 2016-07-06 16:25:24 +0000 |
commit | b4011149781706b19556a35728fd17b9979d1fdb (patch) | |
tree | 231a916a46260a198d5fc7e7ac4f75638b13324d | |
parent | 98d86a0a7845a809b1073a2c478778477de6889b (diff) | |
download | illumos-joyent-b4011149781706b19556a35728fd17b9979d1fdb.tar.gz |
remove ioctl.h; fix copyright
-rw-r--r-- | usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h | 103 | ||||
-rw-r--r-- | usr/src/uts/common/io/cpqary3/cpqary3_scsi.c | 1 |
2 files changed, 1 insertions, 103 deletions
diff --git a/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h b/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h deleted file mode 100644 index 18a79a4c78..0000000000 --- a/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h +++ /dev/null @@ -1,103 +0,0 @@ -/* - * This file and its contents are supplied under the terms of the - * Common Development and Distribution License ("CDDL"), version 1.0. - * You may only use this file in accordance with the terms of version - * 1.0 of the CDDL. - * - * A full copy of the text of the CDDL should have accompanied this - * source. A copy of the CDDL is also available via the Internet at - * http://www.illumos.org/license/CDDL. - */ - -/* - * Copyright (C) 2013 Hewlett-Packard Development Company, L.P. - */ - -#ifndef _CPQARY3_IOCTL_H -#define _CPQARY3_IOCTL_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * USED in Ioctls - */ - -#define CPQARY3_SCSI_IN 0 -#define CPQARY3_SCSI_OUT 1 -#define CPQARY3_NODATA_XFER 2 -#define SUCCESS 0 -#define FAILURE -1 - -/* for SAS support */ -/* BMIC Commands */ -#define HPSAS_ID_LOG_DRIVE 0x10 -#define HPSAS_ID_CONTROLLER 0x11 -#define HPSAS_SENSE_LOG_DRIVE 0x12 -#define HPSAS_ID_PHYSICAL_DRIVE 0x15 -#define HPSAS_READ 0x20 -#define HPSAS_WRITE 0x30 -#define HPSAS_WRITE_THROUGH 0x31 -#define HPSAS_SENSE_CONFIG 0x50 -#define HPSAS_SET_CONFIG 0x51 -#define HPSAS_BYPASS_VOL_STATE 0x52 -#define HPSAS_CHANGE_CONFIG 0x54 -#define HPSAS_SENSE_ORIG_CONFIG 0x55 -#define HPSAS_LABEL_LOG_DRIVE 0x57 -#define HPSAS_SENSE_BUS_PARAMS 0x65 -#define HPSAS_TAPE_INQUIRY 0x92 -#define HPSAS_RESUME_BKGND_ACTIVITY 0x99 -#define HPSAS_SENSE_MP_STAT 0xA0 -#define HPSAS_SET_MP_THRESHOLD 0xA1 -#define HPSAS_MP_PARAM_CONTROL 0xA4 -#define HPSAS_SENSE_DRV_ERR_LOG 0xA6 -#define HPSAS_FLUSH_CACHE 0xc2 -#define HPSAS_REPORT_LOGICAL_LUN 0xC2 -#define HPSAS_REPORT_PHYSICAL_LUN 0xC3 -#define HPSAS_SET_MP_VALUE 0xF3 -#define HPSAS_BMIC_CMD_LEN 16 - - -#pragma pack(1) - -typedef struct cpqary3_ioctl_request { - uint32_t len; /* Data Buffer length */ - uint32_t reserved; /* For future enhancements */ - uint64_t argp; /* Data or data Buffer of the request */ -} cpqary3_ioctl_request_t; - -typedef struct cpqary3_bmic_pass { - uint8_t lun_addr[8]; /* 8 byte LUN address */ - uint8_t cmd; /* BMIC command opcode */ - uint8_t cmd_len; /* BMIC command length */ - uint16_t unit_number; /* Unit number */ - uint32_t blk_number; /* BMIC Detail */ - uint16_t bmic_index; /* bmic_index */ - uint16_t timeout; /* timeout for command */ - uint8_t io_direction; /* IN(0) or OUT(1) */ - uint8_t err_status; /* command completion status */ - ErrorInfo_t err_info; /* error info */ - uint16_t buf_len; /* buffer/transfer length */ - uint64_t buf; /* buffer */ -} cpqary3_bmic_pass_t; - -typedef struct cpqary3_scsi_pass { - uint8_t lun_addr[8]; /* 8 byte LUN address */ - uint8_t cdb[16]; /* 16 byte CDB */ - uint8_t cdb_len; /* SCSI CDB length */ - uint16_t timeout; /* timeout for command */ - uint8_t io_direction; /* IN(0) or OUT(1) */ - uint8_t err_status; /* command completion status */ - ErrorInfo_t err_info; /* error info */ - uint16_t buf_len; /* buffer/transfer length */ - uint64_t buf; /* buffer */ -} cpqary3_scsi_pass_t; - -#pragma pack() - -#ifdef __cplusplus -} -#endif - -#endif /* _CPQARY3_IOCTL_H */ diff --git a/usr/src/uts/common/io/cpqary3/cpqary3_scsi.c b/usr/src/uts/common/io/cpqary3/cpqary3_scsi.c index 3889498e8d..4e31107c09 100644 --- a/usr/src/uts/common/io/cpqary3/cpqary3_scsi.c +++ b/usr/src/uts/common/io/cpqary3/cpqary3_scsi.c @@ -11,6 +11,7 @@ /* * Copyright (C) 2013 Hewlett-Packard Development Company, L.P. + * Copyright 2016 Joyent, Inc. */ #include <sys/sdt.h> |