Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
mptctl.h File Reference

Go to the source code of this file.

Data Structures

struct  mpt_fw_xfer
 
struct  _mpt_ioctl_header
 
struct  mpt_ioctl_diag_reset
 
struct  mpt_ioctl_pci_info
 
struct  mpt_ioctl_pci_info2
 
struct  mpt_ioctl_iocinfo
 
struct  mpt_ioctl_iocinfo_rev1
 
struct  mpt_ioctl_iocinfo_rev0
 
struct  mpt_ioctl_targetinfo
 
struct  mpt_ioctl_eventquery
 
struct  mpt_ioctl_eventenable
 
struct  MPT_IOCTL_EVENTS
 
struct  mpt_ioctl_eventreport
 
struct  mpt_ioctl_test
 
struct  mpt_ioctl_replace_fw
 
struct  mpt_ioctl_command
 
struct  _hp_header
 
struct  _hp_host_info
 
struct  _hp_host_info_rev0
 
struct  _hp_target_info
 

Macros

#define MPT_MISCDEV_BASENAME   "mptctl"
 
#define MPT_MISCDEV_PATHNAME   "/dev/" MPT_MISCDEV_BASENAME
 
#define MPT_PRODUCT_LENGTH   12
 
#define MPT_MAGIC_NUMBER   'm'
 
#define MPTRWPERF   _IOWR(MPT_MAGIC_NUMBER,0,struct mpt_raw_r_w)
 
#define MPTFWDOWNLOAD   _IOWR(MPT_MAGIC_NUMBER,15,struct mpt_fw_xfer)
 
#define MPTCOMMAND   _IOWR(MPT_MAGIC_NUMBER,20,struct mpt_ioctl_command)
 
#define MPTIOCINFO   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo)
 
#define MPTIOCINFO1   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev0)
 
#define MPTIOCINFO2   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev1)
 
#define MPTTARGETINFO   _IOWR(MPT_MAGIC_NUMBER,18,struct mpt_ioctl_targetinfo)
 
#define MPTTEST   _IOWR(MPT_MAGIC_NUMBER,19,struct mpt_ioctl_test)
 
#define MPTEVENTQUERY   _IOWR(MPT_MAGIC_NUMBER,21,struct mpt_ioctl_eventquery)
 
#define MPTEVENTENABLE   _IOWR(MPT_MAGIC_NUMBER,22,struct mpt_ioctl_eventenable)
 
#define MPTEVENTREPORT   _IOWR(MPT_MAGIC_NUMBER,23,struct mpt_ioctl_eventreport)
 
#define MPTHARDRESET   _IOWR(MPT_MAGIC_NUMBER,24,struct mpt_ioctl_diag_reset)
 
#define MPTFWREPLACE   _IOWR(MPT_MAGIC_NUMBER,25,struct mpt_ioctl_replace_fw)
 
#define MPT_IOCTL_INTERFACE_SCSI   (0x00)
 
#define MPT_IOCTL_INTERFACE_FC   (0x01)
 
#define MPT_IOCTL_INTERFACE_FC_IP   (0x02)
 
#define MPT_IOCTL_INTERFACE_SAS   (0x03)
 
#define MPT_IOCTL_VERSION_LENGTH   (32)
 
#define MPT_MAX_NAME   32
 
#define CPQFCTS_IOC_MAGIC   'Z'
 
#define HP_IOC_MAGIC   'Z'
 
#define HP_GETHOSTINFO   _IOR(HP_IOC_MAGIC, 20, hp_host_info_t)
 
#define HP_GETHOSTINFO1   _IOR(HP_IOC_MAGIC, 20, hp_host_info_rev0_t)
 
#define HP_GETTARGETINFO   _IOR(HP_IOC_MAGIC, 21, hp_target_info_t)
 
#define HP_STATUS_OTHER   1
 
#define HP_STATUS_OK   2
 
#define HP_STATUS_FAILED   3
 
#define HP_BUS_WIDTH_UNK   1
 
#define HP_BUS_WIDTH_8   2
 
#define HP_BUS_WIDTH_16   3
 
#define HP_BUS_WIDTH_32   4
 
#define HP_DEV_SPEED_ASYNC   2
 
#define HP_DEV_SPEED_FAST   3
 
#define HP_DEV_SPEED_ULTRA   4
 
#define HP_DEV_SPEED_ULTRA2   5
 
#define HP_DEV_SPEED_ULTRA160   6
 
#define HP_DEV_SPEED_SCSI1   7
 
#define HP_DEV_SPEED_ULTRA320   8
 

Typedefs

typedef struct _mpt_ioctl_header mpt_ioctl_header
 
typedef struct mpt_ioctl_replace_fw mpt_ioctl_replace_fw_t
 
typedef struct _hp_header hp_header_t
 
typedef struct _hp_host_info hp_host_info_t
 
typedef struct _hp_host_info_rev0 hp_host_info_rev0_t
 
typedef struct _hp_target_info hp_target_info_t
 

Macro Definition Documentation

#define CPQFCTS_IOC_MAGIC   'Z'

Definition at line 358 of file mptctl.h.

#define HP_BUS_WIDTH_16   3

Definition at line 450 of file mptctl.h.

#define HP_BUS_WIDTH_32   4

Definition at line 451 of file mptctl.h.

#define HP_BUS_WIDTH_8   2

Definition at line 449 of file mptctl.h.

#define HP_BUS_WIDTH_UNK   1

Definition at line 448 of file mptctl.h.

#define HP_DEV_SPEED_ASYNC   2

Definition at line 453 of file mptctl.h.

#define HP_DEV_SPEED_FAST   3

Definition at line 454 of file mptctl.h.

#define HP_DEV_SPEED_SCSI1   7

Definition at line 458 of file mptctl.h.

#define HP_DEV_SPEED_ULTRA   4

Definition at line 455 of file mptctl.h.

#define HP_DEV_SPEED_ULTRA160   6

Definition at line 457 of file mptctl.h.

#define HP_DEV_SPEED_ULTRA2   5

Definition at line 456 of file mptctl.h.

#define HP_DEV_SPEED_ULTRA320   8

Definition at line 459 of file mptctl.h.

#define HP_GETHOSTINFO   _IOR(HP_IOC_MAGIC, 20, hp_host_info_t)

Definition at line 360 of file mptctl.h.

#define HP_GETHOSTINFO1   _IOR(HP_IOC_MAGIC, 20, hp_host_info_rev0_t)

Definition at line 361 of file mptctl.h.

#define HP_GETTARGETINFO   _IOR(HP_IOC_MAGIC, 21, hp_target_info_t)

Definition at line 362 of file mptctl.h.

#define HP_IOC_MAGIC   'Z'

Definition at line 359 of file mptctl.h.

#define HP_STATUS_FAILED   3

Definition at line 446 of file mptctl.h.

#define HP_STATUS_OK   2

Definition at line 445 of file mptctl.h.

#define HP_STATUS_OTHER   1

Definition at line 444 of file mptctl.h.

#define MPT_IOCTL_INTERFACE_FC   (0x01)

Definition at line 173 of file mptctl.h.

#define MPT_IOCTL_INTERFACE_FC_IP   (0x02)

Definition at line 174 of file mptctl.h.

#define MPT_IOCTL_INTERFACE_SAS   (0x03)

Definition at line 175 of file mptctl.h.

#define MPT_IOCTL_INTERFACE_SCSI   (0x00)

Definition at line 172 of file mptctl.h.

#define MPT_IOCTL_VERSION_LENGTH   (32)

Definition at line 176 of file mptctl.h.

#define MPT_MAGIC_NUMBER   'm'

Definition at line 66 of file mptctl.h.

#define MPT_MAX_NAME   32

Definition at line 281 of file mptctl.h.

#define MPT_MISCDEV_BASENAME   "mptctl"

Definition at line 58 of file mptctl.h.

#define MPT_MISCDEV_PATHNAME   "/dev/" MPT_MISCDEV_BASENAME

Definition at line 59 of file mptctl.h.

#define MPT_PRODUCT_LENGTH   12

Definition at line 61 of file mptctl.h.

#define MPTCOMMAND   _IOWR(MPT_MAGIC_NUMBER,20,struct mpt_ioctl_command)

Definition at line 71 of file mptctl.h.

#define MPTEVENTENABLE   _IOWR(MPT_MAGIC_NUMBER,22,struct mpt_ioctl_eventenable)

Definition at line 84 of file mptctl.h.

#define MPTEVENTQUERY   _IOWR(MPT_MAGIC_NUMBER,21,struct mpt_ioctl_eventquery)

Definition at line 83 of file mptctl.h.

#define MPTEVENTREPORT   _IOWR(MPT_MAGIC_NUMBER,23,struct mpt_ioctl_eventreport)

Definition at line 85 of file mptctl.h.

#define MPTFWDOWNLOAD   _IOWR(MPT_MAGIC_NUMBER,15,struct mpt_fw_xfer)

Definition at line 70 of file mptctl.h.

#define MPTFWREPLACE   _IOWR(MPT_MAGIC_NUMBER,25,struct mpt_ioctl_replace_fw)

Definition at line 87 of file mptctl.h.

#define MPTHARDRESET   _IOWR(MPT_MAGIC_NUMBER,24,struct mpt_ioctl_diag_reset)

Definition at line 86 of file mptctl.h.

#define MPTIOCINFO   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo)

Definition at line 78 of file mptctl.h.

#define MPTIOCINFO1   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev0)

Definition at line 79 of file mptctl.h.

#define MPTIOCINFO2   _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev1)

Definition at line 80 of file mptctl.h.

#define MPTRWPERF   _IOWR(MPT_MAGIC_NUMBER,0,struct mpt_raw_r_w)

Definition at line 68 of file mptctl.h.

#define MPTTARGETINFO   _IOWR(MPT_MAGIC_NUMBER,18,struct mpt_ioctl_targetinfo)

Definition at line 81 of file mptctl.h.

#define MPTTEST   _IOWR(MPT_MAGIC_NUMBER,19,struct mpt_ioctl_test)

Definition at line 82 of file mptctl.h.

Typedef Documentation