smartmontools SVN Rev 5640
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Macros | Typedefs
cissio_freebsd.h File Reference
#include <sys/ioccom.h>
Include dependency graph for cissio_freebsd.h:

Go to the source code of this file.

Classes

struct  cciss_pci_info_struct
 
struct  cciss_coalint_struct
 
union  SCSI3Addr_struct
 
struct  __packed
 
struct  ciss_qstat
 
union  ciss_statrequest
 

Macros

#define CISS_PARSCSIU2   0x0001
 
#define CISS_PARCSCIU3   0x0002
 
#define CISS_FIBRE1G   0x0100
 
#define CISS_FIBRE2G   0x0200
 
#define SENSEINFOBYTES   32
 
#define CISS_MAX_LUN   16
 
#define LEVEL2LUN   1
 
#define LEVEL3LUN   0
 
#define CMD_SUCCESS   0x0000
 
#define CMD_TARGET_STATUS   0x0001
 
#define CMD_DATA_UNDERRUN   0x0002
 
#define CMD_DATA_OVERRUN   0x0003
 
#define CMD_INVALID   0x0004
 
#define CMD_PROTOCOL_ERR   0x0005
 
#define CMD_HARDWARE_ERR   0x0006
 
#define CMD_CONNECTION_LOST   0x0007
 
#define CMD_ABORTED   0x0008
 
#define CMD_ABORT_FAILED   0x0009
 
#define CMD_UNSOLICITED_ABORT   0x000A
 
#define CMD_TIMEOUT   0x000B
 
#define CMD_UNABORTABLE   0x000C
 
#define XFER_NONE   0x00
 
#define XFER_WRITE   0x01
 
#define XFER_READ   0x02
 
#define XFER_RSVD   0x03
 
#define ATTR_UNTAGGED   0x00
 
#define ATTR_SIMPLE   0x04
 
#define ATTR_HEADOFQUEUE   0x05
 
#define ATTR_ORDERED   0x06
 
#define ATTR_ACA   0x07
 
#define TYPE_CMD   0x00
 
#define TYPE_MSG   0x01
 
#define CISSQ_FREE   0
 
#define CISSQ_NOTIFY   1
 
#define CISSQ_COUNT   2
 
#define CCISS_GETPCIINFO   _IOR ('C', 200, cciss_pci_info_struct)
 
#define CCISS_GETINTINFO   _IOR ('C', 201, cciss_coalint_struct)
 
#define CCISS_SETINTINFO   _IOW ('C', 202, cciss_coalint_struct)
 
#define CCISS_GETNODENAME   _IOR ('C', 203, NodeName_type)
 
#define CCISS_SETNODENAME   _IOW ('C', 204, NodeName_type)
 
#define CCISS_GETHEARTBEAT   _IOR ('C', 205, Heartbeat_type)
 
#define CCISS_GETBUSTYPES   _IOR ('C', 206, BusTypes_type)
 
#define CCISS_GETFIRMVER   _IOR ('C', 207, FirmwareVer_type)
 
#define CCISS_GETDRIVERVER   _IOR ('C', 208, DriverVer_type)
 
#define CCISS_REVALIDVOLS   _IO ('C', 209)
 
#define CCISS_PASSTHRU   _IOWR ('C', 210, IOCTL_Command_struct)
 
#define CCISS_GETQSTATS   _IOWR ('C', 211, union ciss_statrequest)
 

Typedefs

typedef char NodeName_type[16]
 
typedef u_int32_t Heartbeat_type
 
typedef u_int32_t BusTypes_type
 
typedef char FirmwareVer_type[4]
 
typedef u_int32_t DriverVer_type
 

Macro Definition Documentation

◆ ATTR_ACA

#define ATTR_ACA   0x07

Definition at line 99 of file cissio_freebsd.h.

◆ ATTR_HEADOFQUEUE

#define ATTR_HEADOFQUEUE   0x05

Definition at line 97 of file cissio_freebsd.h.

◆ ATTR_ORDERED

#define ATTR_ORDERED   0x06

Definition at line 98 of file cissio_freebsd.h.

◆ ATTR_SIMPLE

#define ATTR_SIMPLE   0x04

Definition at line 96 of file cissio_freebsd.h.

◆ ATTR_UNTAGGED

#define ATTR_UNTAGGED   0x00

Definition at line 95 of file cissio_freebsd.h.

◆ CCISS_GETBUSTYPES

#define CCISS_GETBUSTYPES   _IOR ('C', 206, BusTypes_type)

Definition at line 225 of file cissio_freebsd.h.

◆ CCISS_GETDRIVERVER

#define CCISS_GETDRIVERVER   _IOR ('C', 208, DriverVer_type)

Definition at line 227 of file cissio_freebsd.h.

◆ CCISS_GETFIRMVER

#define CCISS_GETFIRMVER   _IOR ('C', 207, FirmwareVer_type)

Definition at line 226 of file cissio_freebsd.h.

◆ CCISS_GETHEARTBEAT

#define CCISS_GETHEARTBEAT   _IOR ('C', 205, Heartbeat_type)

Definition at line 224 of file cissio_freebsd.h.

◆ CCISS_GETINTINFO

#define CCISS_GETINTINFO   _IOR ('C', 201, cciss_coalint_struct)

Definition at line 220 of file cissio_freebsd.h.

◆ CCISS_GETNODENAME

#define CCISS_GETNODENAME   _IOR ('C', 203, NodeName_type)

Definition at line 222 of file cissio_freebsd.h.

◆ CCISS_GETPCIINFO

#define CCISS_GETPCIINFO   _IOR ('C', 200, cciss_pci_info_struct)

Definition at line 219 of file cissio_freebsd.h.

◆ CCISS_GETQSTATS

#define CCISS_GETQSTATS   _IOWR ('C', 211, union ciss_statrequest)

Definition at line 233 of file cissio_freebsd.h.

◆ CCISS_PASSTHRU

#define CCISS_PASSTHRU   _IOWR ('C', 210, IOCTL_Command_struct)

Definition at line 229 of file cissio_freebsd.h.

◆ CCISS_REVALIDVOLS

#define CCISS_REVALIDVOLS   _IO ('C', 209)

Definition at line 228 of file cissio_freebsd.h.

◆ CCISS_SETINTINFO

#define CCISS_SETINTINFO   _IOW ('C', 202, cciss_coalint_struct)

Definition at line 221 of file cissio_freebsd.h.

◆ CCISS_SETNODENAME

#define CCISS_SETNODENAME   _IOW ('C', 204, NodeName_type)

Definition at line 223 of file cissio_freebsd.h.

◆ CISS_FIBRE1G

#define CISS_FIBRE1G   0x0100

Definition at line 60 of file cissio_freebsd.h.

◆ CISS_FIBRE2G

#define CISS_FIBRE2G   0x0200

Definition at line 61 of file cissio_freebsd.h.

◆ CISS_MAX_LUN

#define CISS_MAX_LUN   16

Definition at line 69 of file cissio_freebsd.h.

◆ CISS_PARCSCIU3

#define CISS_PARCSCIU3   0x0002

Definition at line 59 of file cissio_freebsd.h.

◆ CISS_PARSCSIU2

#define CISS_PARSCSIU2   0x0001

Definition at line 58 of file cissio_freebsd.h.

◆ CISSQ_COUNT

#define CISSQ_COUNT   2

Definition at line 203 of file cissio_freebsd.h.

◆ CISSQ_FREE

#define CISSQ_FREE   0

Definition at line 201 of file cissio_freebsd.h.

◆ CISSQ_NOTIFY

#define CISSQ_NOTIFY   1

Definition at line 202 of file cissio_freebsd.h.

◆ CMD_ABORT_FAILED

#define CMD_ABORT_FAILED   0x0009

Definition at line 83 of file cissio_freebsd.h.

◆ CMD_ABORTED

#define CMD_ABORTED   0x0008

Definition at line 82 of file cissio_freebsd.h.

◆ CMD_CONNECTION_LOST

#define CMD_CONNECTION_LOST   0x0007

Definition at line 81 of file cissio_freebsd.h.

◆ CMD_DATA_OVERRUN

#define CMD_DATA_OVERRUN   0x0003

Definition at line 77 of file cissio_freebsd.h.

◆ CMD_DATA_UNDERRUN

#define CMD_DATA_UNDERRUN   0x0002

Definition at line 76 of file cissio_freebsd.h.

◆ CMD_HARDWARE_ERR

#define CMD_HARDWARE_ERR   0x0006

Definition at line 80 of file cissio_freebsd.h.

◆ CMD_INVALID

#define CMD_INVALID   0x0004

Definition at line 78 of file cissio_freebsd.h.

◆ CMD_PROTOCOL_ERR

#define CMD_PROTOCOL_ERR   0x0005

Definition at line 79 of file cissio_freebsd.h.

◆ CMD_SUCCESS

#define CMD_SUCCESS   0x0000

Definition at line 74 of file cissio_freebsd.h.

◆ CMD_TARGET_STATUS

#define CMD_TARGET_STATUS   0x0001

Definition at line 75 of file cissio_freebsd.h.

◆ CMD_TIMEOUT

#define CMD_TIMEOUT   0x000B

Definition at line 85 of file cissio_freebsd.h.

◆ CMD_UNABORTABLE

#define CMD_UNABORTABLE   0x000C

Definition at line 86 of file cissio_freebsd.h.

◆ CMD_UNSOLICITED_ABORT

#define CMD_UNSOLICITED_ABORT   0x000A

Definition at line 84 of file cissio_freebsd.h.

◆ LEVEL2LUN

#define LEVEL2LUN   1

Definition at line 70 of file cissio_freebsd.h.

◆ LEVEL3LUN

#define LEVEL3LUN   0

Definition at line 71 of file cissio_freebsd.h.

◆ SENSEINFOBYTES

#define SENSEINFOBYTES   32

Definition at line 68 of file cissio_freebsd.h.

◆ TYPE_CMD

#define TYPE_CMD   0x00

Definition at line 102 of file cissio_freebsd.h.

◆ TYPE_MSG

#define TYPE_MSG   0x01

Definition at line 103 of file cissio_freebsd.h.

◆ XFER_NONE

#define XFER_NONE   0x00

Definition at line 89 of file cissio_freebsd.h.

◆ XFER_READ

#define XFER_READ   0x02

Definition at line 91 of file cissio_freebsd.h.

◆ XFER_RSVD

#define XFER_RSVD   0x03

Definition at line 92 of file cissio_freebsd.h.

◆ XFER_WRITE

#define XFER_WRITE   0x01

Definition at line 90 of file cissio_freebsd.h.

Typedef Documentation

◆ BusTypes_type

typedef u_int32_t BusTypes_type

Definition at line 62 of file cissio_freebsd.h.

◆ DriverVer_type

typedef u_int32_t DriverVer_type

Definition at line 65 of file cissio_freebsd.h.

◆ FirmwareVer_type

typedef char FirmwareVer_type[4]

Definition at line 64 of file cissio_freebsd.h.

◆ Heartbeat_type

typedef u_int32_t Heartbeat_type

Definition at line 56 of file cissio_freebsd.h.

◆ NodeName_type

typedef char NodeName_type[16]

Definition at line 55 of file cissio_freebsd.h.