smartmontools SVN Rev 5640
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Macros | Enumerations
sssraid.h File Reference
#include <stdint.h>
Include dependency graph for sssraid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cmd_pdlist_idx
 
struct  cmd_pdlist_entry
 
struct  cmd_show_pdlist
 
struct  multi_disk_location
 
struct  cmd_scsi_passthrough
 
struct  sssraid_passthru_common_cmd
 
struct  sssraid_ioq_passthru_cmd
 
struct  bsg_ioctl_cmd
 

Macros

#define u8   uint8_t
 
#define u16   uint16_t
 
#define u32   uint32_t
 
#define u64   uint64_t
 
#define ADM_MAX_DATA_SIZE   0x1000U
 
#define ADM_SCSI_CDB_MAX_LEN   32
 
#define ADM_SCSI_CDB_SENSE_MAX_LEN   96
 
#define ADM_SCSI_CDB_SENSE_LEN32   32
 
#define ADM_CMD_SHOW_PDLIST   0x502
 
#define ADM_CMD_SCSI_PASSTHROUGH   0x51e
 
#define BSG_APPEND_TIMEOUT_MS   600000
 
#define DEFAULT_CONMMAND_TIMEOUT_MS   180000
 
#define ADM_BSG_MSGCODE_SCSI_PTHRU   1
 
#define ADM_RAID_SET   0xc0
 
#define ADM_RAID_WRITE   0xc1
 
#define ADM_RAID_READ   0xc2
 
#define ADM_RAID_PARAM_WRITE   0xc3
 
#define ADM_RAID_READ_FROM_CQE   0xc4
 
#define CMD_PDS_MAX_NUM   256U
 
#define CMD_PDLIST_ONCE_NUM   ((ADM_MAX_DATA_SIZE - 64) / sizeof(struct cmd_pdlist_entry))
 

Enumerations

enum  adm_pdlist_intf {
  ADM_DEVICE_TYPE_SAS = 1 , ADM_DEVICE_TYPE_EXP = 2 , ADM_DEVICE_TYPE_SATA = 8 , ADM_DEVICE_TYPE_PLANE = 9 ,
  ADM_DEVICE_TYPE_NVME = 10 , ADM_DEVICE_TYPE_UNKNOW , ADM_DEVICE_TYPE_BUTT
}
 

Macro Definition Documentation

◆ ADM_BSG_MSGCODE_SCSI_PTHRU

#define ADM_BSG_MSGCODE_SCSI_PTHRU   1

Definition at line 26 of file sssraid.h.

◆ ADM_CMD_SCSI_PASSTHROUGH

#define ADM_CMD_SCSI_PASSTHROUGH   0x51e

Definition at line 23 of file sssraid.h.

◆ ADM_CMD_SHOW_PDLIST

#define ADM_CMD_SHOW_PDLIST   0x502

Definition at line 22 of file sssraid.h.

◆ ADM_MAX_DATA_SIZE

#define ADM_MAX_DATA_SIZE   0x1000U

Definition at line 18 of file sssraid.h.

◆ ADM_RAID_PARAM_WRITE

#define ADM_RAID_PARAM_WRITE   0xc3

Definition at line 31 of file sssraid.h.

◆ ADM_RAID_READ

#define ADM_RAID_READ   0xc2

Definition at line 30 of file sssraid.h.

◆ ADM_RAID_READ_FROM_CQE

#define ADM_RAID_READ_FROM_CQE   0xc4

Definition at line 32 of file sssraid.h.

◆ ADM_RAID_SET

#define ADM_RAID_SET   0xc0

Definition at line 28 of file sssraid.h.

◆ ADM_RAID_WRITE

#define ADM_RAID_WRITE   0xc1

Definition at line 29 of file sssraid.h.

◆ ADM_SCSI_CDB_MAX_LEN

#define ADM_SCSI_CDB_MAX_LEN   32

Definition at line 19 of file sssraid.h.

◆ ADM_SCSI_CDB_SENSE_LEN32

#define ADM_SCSI_CDB_SENSE_LEN32   32

Definition at line 21 of file sssraid.h.

◆ ADM_SCSI_CDB_SENSE_MAX_LEN

#define ADM_SCSI_CDB_SENSE_MAX_LEN   96

Definition at line 20 of file sssraid.h.

◆ BSG_APPEND_TIMEOUT_MS

#define BSG_APPEND_TIMEOUT_MS   600000

Definition at line 24 of file sssraid.h.

◆ CMD_PDLIST_ONCE_NUM

#define CMD_PDLIST_ONCE_NUM   ((ADM_MAX_DATA_SIZE - 64) / sizeof(struct cmd_pdlist_entry))

Definition at line 61 of file sssraid.h.

◆ CMD_PDS_MAX_NUM

#define CMD_PDS_MAX_NUM   256U

Definition at line 60 of file sssraid.h.

◆ DEFAULT_CONMMAND_TIMEOUT_MS

#define DEFAULT_CONMMAND_TIMEOUT_MS   180000

Definition at line 25 of file sssraid.h.

◆ u16

#define u16   uint16_t

Definition at line 15 of file sssraid.h.

◆ u32

#define u32   uint32_t

Definition at line 16 of file sssraid.h.

◆ u64

#define u64   uint64_t

Definition at line 17 of file sssraid.h.

◆ u8

#define u8   uint8_t

Definition at line 14 of file sssraid.h.

Enumeration Type Documentation

◆ adm_pdlist_intf

Enumerator
ADM_DEVICE_TYPE_SAS 
ADM_DEVICE_TYPE_EXP 
ADM_DEVICE_TYPE_SATA 
ADM_DEVICE_TYPE_PLANE 
ADM_DEVICE_TYPE_NVME 
ADM_DEVICE_TYPE_UNKNOW 
ADM_DEVICE_TYPE_BUTT 

Definition at line 35 of file sssraid.h.