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

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  gdth_ioctl_general
 
struct  gdth_ioctl_lockdrv
 
struct  gdth_ioctl_lockchn
 
struct  gdth_ioctl_osvers
 
struct  gdth_ioctl_ctrtype
 
struct  gdth_ioctl_event
 
struct  gdth_ioctl_rescan
 
struct  gdth_ioctl_reset
 

Macros

#define GDTIOCTL_MASK   ('J'<<8)
 
#define GDTIOCTL_GENERAL   (GDTIOCTL_MASK | 0) /* general IOCTL */
 
#define GDTIOCTL_DRVERS   (GDTIOCTL_MASK | 1) /* get driver version */
 
#define GDTIOCTL_CTRTYPE   (GDTIOCTL_MASK | 2) /* get controller type */
 
#define GDTIOCTL_OSVERS   (GDTIOCTL_MASK | 3) /* get OS version */
 
#define GDTIOCTL_HDRLIST   (GDTIOCTL_MASK | 4) /* get host drive list */
 
#define GDTIOCTL_CTRCNT   (GDTIOCTL_MASK | 5) /* get controller count */
 
#define GDTIOCTL_LOCKDRV   (GDTIOCTL_MASK | 6) /* lock host drive */
 
#define GDTIOCTL_LOCKCHN   (GDTIOCTL_MASK | 7) /* lock channel */
 
#define GDTIOCTL_EVENT   (GDTIOCTL_MASK | 8) /* read controller events */
 
#define GDTIOCTL_SCSI   (GDTIOCTL_MASK | 9) /* SCSI command */
 
#define GDTIOCTL_RESET_BUS   (GDTIOCTL_MASK |10) /* reset SCSI bus */
 
#define GDTIOCTL_RESCAN   (GDTIOCTL_MASK |11) /* rescan host drives */
 
#define GDTIOCTL_RESET_DRV   (GDTIOCTL_MASK |12) /* reset (remote) drv. res. */
 
#define GDTIOCTL_MAGIC   0xaffe0004
 
#define EVENT_SIZE   294
 
#define GDTH_MAXSG   32 /* max. s/g elements */
 
#define MAX_LDRIVES   255 /* max. log. drive count */
 
#define MAX_HDRIVES   MAX_LDRIVES /* max. host drive count */
 
#define ES_ASYNC   1
 
#define ES_DRIVER   2
 
#define ES_TEST   3
 
#define ES_SYNC   4
 

Variables

typedef __attribute__
 
u16 DeviceNo
 
u32 BlockNo
 
u32 BlockCnt
 
u32 DestAddr
 
u32 sg_canz
 
gdth_sg_str sg_lst [GDTH_MAXSG]
 
u16 param_size
 
u32 subfunc
 
u32 channel
 
u64 p_param
 
u32 msg_handle
 
u64 msg_addr
 
u16 reserved
 
union {
   u8   data [12]
 
su
 
u32 direction
 
u32 mdisc_time
 
u32 mcon_time
 
u32 sdata
 
u32 sdlen
 
u32 clen
 
u8 cmd [12]
 
u8 target
 
u8 lun
 
u8 bus
 
u8 priority
 
u32 sense_len
 
u32 sense_data
 
u32 link_p
 
u32 sg_ranz
 
u16 ionode
 
u16 service
 
u32 index
 
u16 status
 
u32 info
 
u8 scsi_coord [3]
 
u16 hostdrive
 
u8 sense_key
 
u32 l1
 
u32 l2
 
u32 l3
 
u32 l4
 

Macro Definition Documentation

#define ES_ASYNC   1

Definition at line 132 of file gdth_ioctl.h.

#define ES_DRIVER   2

Definition at line 133 of file gdth_ioctl.h.

#define ES_SYNC   4

Definition at line 135 of file gdth_ioctl.h.

#define ES_TEST   3

Definition at line 134 of file gdth_ioctl.h.

#define EVENT_SIZE   294

Definition at line 25 of file gdth_ioctl.h.

#define GDTH_MAXSG   32 /* max. s/g elements */

Definition at line 26 of file gdth_ioctl.h.

#define GDTIOCTL_CTRCNT   (GDTIOCTL_MASK | 5) /* get controller count */

Definition at line 15 of file gdth_ioctl.h.

#define GDTIOCTL_CTRTYPE   (GDTIOCTL_MASK | 2) /* get controller type */

Definition at line 12 of file gdth_ioctl.h.

#define GDTIOCTL_DRVERS   (GDTIOCTL_MASK | 1) /* get driver version */

Definition at line 11 of file gdth_ioctl.h.

#define GDTIOCTL_EVENT   (GDTIOCTL_MASK | 8) /* read controller events */

Definition at line 18 of file gdth_ioctl.h.

#define GDTIOCTL_GENERAL   (GDTIOCTL_MASK | 0) /* general IOCTL */

Definition at line 10 of file gdth_ioctl.h.

#define GDTIOCTL_HDRLIST   (GDTIOCTL_MASK | 4) /* get host drive list */

Definition at line 14 of file gdth_ioctl.h.

#define GDTIOCTL_LOCKCHN   (GDTIOCTL_MASK | 7) /* lock channel */

Definition at line 17 of file gdth_ioctl.h.

#define GDTIOCTL_LOCKDRV   (GDTIOCTL_MASK | 6) /* lock host drive */

Definition at line 16 of file gdth_ioctl.h.

#define GDTIOCTL_MAGIC   0xaffe0004

Definition at line 24 of file gdth_ioctl.h.

#define GDTIOCTL_MASK   ('J'<<8)

Definition at line 9 of file gdth_ioctl.h.

#define GDTIOCTL_OSVERS   (GDTIOCTL_MASK | 3) /* get OS version */

Definition at line 13 of file gdth_ioctl.h.

#define GDTIOCTL_RESCAN   (GDTIOCTL_MASK |11) /* rescan host drives */

Definition at line 21 of file gdth_ioctl.h.

#define GDTIOCTL_RESET_BUS   (GDTIOCTL_MASK |10) /* reset SCSI bus */

Definition at line 20 of file gdth_ioctl.h.

#define GDTIOCTL_RESET_DRV   (GDTIOCTL_MASK |12) /* reset (remote) drv. res. */

Definition at line 22 of file gdth_ioctl.h.

#define GDTIOCTL_SCSI   (GDTIOCTL_MASK | 9) /* SCSI command */

Definition at line 19 of file gdth_ioctl.h.

#define MAX_HDRIVES   MAX_LDRIVES /* max. host drive count */

Definition at line 32 of file gdth_ioctl.h.

#define MAX_LDRIVES   255 /* max. log. drive count */

Definition at line 28 of file gdth_ioctl.h.

Variable Documentation

typedef __attribute__
u32 BlockCnt

Definition at line 63 of file gdth_ioctl.h.

u64 BlockNo

Definition at line 62 of file gdth_ioctl.h.

u8 bus

Definition at line 114 of file gdth_ioctl.h.

Definition at line 77 of file gdth_ioctl.h.

u32 clen

Definition at line 110 of file gdth_ioctl.h.

u8 cmd[16]

Definition at line 111 of file gdth_ioctl.h.

u8 data[12]

Definition at line 91 of file gdth_ioctl.h.

u64 DestAddr

Definition at line 64 of file gdth_ioctl.h.

u16 DeviceNo

Definition at line 61 of file gdth_ioctl.h.

Definition at line 105 of file gdth_ioctl.h.

u16 hostdrive

Definition at line 165 of file gdth_ioctl.h.

u32 index

Definition at line 147 of file gdth_ioctl.h.

u32 info

Definition at line 155 of file gdth_ioctl.h.

u16 ionode

Definition at line 145 of file gdth_ioctl.h.

u32 l1

Definition at line 164 of file gdth_ioctl.h.

u32 l2

Definition at line 164 of file gdth_ioctl.h.

u32 l3

Definition at line 164 of file gdth_ioctl.h.

Definition at line 164 of file gdth_ioctl.h.

u32 link_p

Definition at line 118 of file gdth_ioctl.h.

u8 lun

Definition at line 113 of file gdth_ioctl.h.

u32 mcon_time

Definition at line 107 of file gdth_ioctl.h.

u32 mdisc_time

Definition at line 106 of file gdth_ioctl.h.

u64 msg_addr

Definition at line 83 of file gdth_ioctl.h.

u32 msg_handle

Definition at line 82 of file gdth_ioctl.h.

u64 p_param

Definition at line 78 of file gdth_ioctl.h.

u16 param_size

Definition at line 75 of file gdth_ioctl.h.

u8 priority

Definition at line 115 of file gdth_ioctl.h.

u16 reserved

Definition at line 85 of file gdth_ioctl.h.

u8 scsi_coord

Definition at line 156 of file gdth_ioctl.h.

u64 sdata

Definition at line 108 of file gdth_ioctl.h.

u32 sdlen

Definition at line 109 of file gdth_ioctl.h.

Definition at line 117 of file gdth_ioctl.h.

u8 sense_key

Definition at line 167 of file gdth_ioctl.h.

u32 sense_len

Definition at line 116 of file gdth_ioctl.h.

u16 service

Definition at line 146 of file gdth_ioctl.h.

u32 sg_canz

Definition at line 65 of file gdth_ioctl.h.

gdth_sg64_str sg_lst

Definition at line 66 of file gdth_ioctl.h.

u32 sg_ranz

Definition at line 119 of file gdth_ioctl.h.

Definition at line 154 of file gdth_ioctl.h.

union { ... } su
u32 subfunc

Definition at line 76 of file gdth_ioctl.h.

u8 target

Definition at line 112 of file gdth_ioctl.h.