cpqary3_ioctl.h revision 80c94ecd7a524eb933a4bb221a9618b9dc490e76
/*
* 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
*/
/*
* 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 {
typedef struct cpqary3_drvrev {
typedef struct cpqary3_driver_info {
typedef struct cpqary3_ctlr_info {
typedef struct cpqary3_bmic_pass {
typedef struct cpqary3_scsi_pass {
#pragma pack()
#ifdef __cplusplus
}
#endif
#endif /* _CPQARY3_IOCTL_H */