Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
scsw.h File Reference
#include <linux/types.h>
#include <asm/css_chars.h>
#include <asm/cio.h>

Go to the source code of this file.

Data Structures

struct  cmd_scsw
 
struct  tm_scsw
 
struct  eadm_scsw
 
union  scsw
 

Macros

#define SCSW_FCTL_CLEAR_FUNC   0x1
 
#define SCSW_FCTL_HALT_FUNC   0x2
 
#define SCSW_FCTL_START_FUNC   0x4
 
#define SCSW_ACTL_SUSPENDED   0x1
 
#define SCSW_ACTL_DEVACT   0x2
 
#define SCSW_ACTL_SCHACT   0x4
 
#define SCSW_ACTL_CLEAR_PEND   0x8
 
#define SCSW_ACTL_HALT_PEND   0x10
 
#define SCSW_ACTL_START_PEND   0x20
 
#define SCSW_ACTL_RESUME_PEND   0x40
 
#define SCSW_STCTL_STATUS_PEND   0x1
 
#define SCSW_STCTL_SEC_STATUS   0x2
 
#define SCSW_STCTL_PRIM_STATUS   0x4
 
#define SCSW_STCTL_INTER_STATUS   0x8
 
#define SCSW_STCTL_ALERT_STATUS   0x10
 
#define DEV_STAT_ATTENTION   0x80
 
#define DEV_STAT_STAT_MOD   0x40
 
#define DEV_STAT_CU_END   0x20
 
#define DEV_STAT_BUSY   0x10
 
#define DEV_STAT_CHN_END   0x08
 
#define DEV_STAT_DEV_END   0x04
 
#define DEV_STAT_UNIT_CHECK   0x02
 
#define DEV_STAT_UNIT_EXCEP   0x01
 
#define SCHN_STAT_PCI   0x80
 
#define SCHN_STAT_INCORR_LEN   0x40
 
#define SCHN_STAT_PROG_CHECK   0x20
 
#define SCHN_STAT_PROT_CHECK   0x10
 
#define SCHN_STAT_CHN_DATA_CHK   0x08
 
#define SCHN_STAT_CHN_CTRL_CHK   0x04
 
#define SCHN_STAT_INTF_CTRL_CHK   0x02
 
#define SCHN_STAT_CHAIN_CHECK   0x01
 
#define SNS0_CMD_REJECT   0x80
 
#define SNS_CMD_REJECT   SNS0_CMD_REJEC
 
#define SNS0_INTERVENTION_REQ   0x40
 
#define SNS0_BUS_OUT_CHECK   0x20
 
#define SNS0_EQUIPMENT_CHECK   0x10
 
#define SNS0_DATA_CHECK   0x08
 
#define SNS0_OVERRUN   0x04
 
#define SNS0_INCOMPL_DOMAIN   0x01
 
#define SNS1_PERM_ERR   0x80
 
#define SNS1_INV_TRACK_FORMAT   0x40
 
#define SNS1_EOC   0x20
 
#define SNS1_MESSAGE_TO_OPER   0x10
 
#define SNS1_NO_REC_FOUND   0x08
 
#define SNS1_FILE_PROTECTED   0x04
 
#define SNS1_WRITE_INHIBITED   0x02
 
#define SNS1_INPRECISE_END   0x01
 
#define SNS2_REQ_INH_WRITE   0x80
 
#define SNS2_CORRECTABLE   0x40
 
#define SNS2_FIRST_LOG_ERR   0x20
 
#define SNS2_ENV_DATA_PRESENT   0x10
 
#define SNS2_INPRECISE_END   0x04
 

Functions

struct cmd_scsw __attribute__ ((packed))
 

Variables

__u32 key
 
__u32 sctl
 
__u32 eswf
 
__u32 cc
 
__u32 fmt
 
__u32 pfch
 
__u32 isic
 
__u32 alcc
 
__u32 ssi
 
__u32 zcc
 
__u32 ectl
 
__u32 pno
 
__u32 res
 
__u32 fctl
 
__u32 actl
 
__u32 stctl
 
__u32 cpa
 
__u32 dstat
 
__u32 cstat
 
__u32 count
 
u32 __pad0__
 
u32 x
 
u32 q
 
u32 __pad1__
 
u32 __pad2__
 
u32 tcw
 
u32 fcxs
 
u32 schxs
 
struct eadm_scsw __packed
 

Macro Definition Documentation

#define DEV_STAT_ATTENTION   0x80

Definition at line 162 of file scsw.h.

#define DEV_STAT_BUSY   0x10

Definition at line 165 of file scsw.h.

#define DEV_STAT_CHN_END   0x08

Definition at line 166 of file scsw.h.

#define DEV_STAT_CU_END   0x20

Definition at line 164 of file scsw.h.

#define DEV_STAT_DEV_END   0x04

Definition at line 167 of file scsw.h.

#define DEV_STAT_STAT_MOD   0x40

Definition at line 163 of file scsw.h.

#define DEV_STAT_UNIT_CHECK   0x02

Definition at line 168 of file scsw.h.

#define DEV_STAT_UNIT_EXCEP   0x01

Definition at line 169 of file scsw.h.

#define SCHN_STAT_CHAIN_CHECK   0x01

Definition at line 178 of file scsw.h.

#define SCHN_STAT_CHN_CTRL_CHK   0x04

Definition at line 176 of file scsw.h.

#define SCHN_STAT_CHN_DATA_CHK   0x08

Definition at line 175 of file scsw.h.

#define SCHN_STAT_INCORR_LEN   0x40

Definition at line 172 of file scsw.h.

#define SCHN_STAT_INTF_CTRL_CHK   0x02

Definition at line 177 of file scsw.h.

#define SCHN_STAT_PCI   0x80

Definition at line 171 of file scsw.h.

#define SCHN_STAT_PROG_CHECK   0x20

Definition at line 173 of file scsw.h.

#define SCHN_STAT_PROT_CHECK   0x10

Definition at line 174 of file scsw.h.

#define SCSW_ACTL_CLEAR_PEND   0x8

Definition at line 151 of file scsw.h.

#define SCSW_ACTL_DEVACT   0x2

Definition at line 149 of file scsw.h.

#define SCSW_ACTL_HALT_PEND   0x10

Definition at line 152 of file scsw.h.

#define SCSW_ACTL_RESUME_PEND   0x40

Definition at line 154 of file scsw.h.

#define SCSW_ACTL_SCHACT   0x4

Definition at line 150 of file scsw.h.

#define SCSW_ACTL_START_PEND   0x20

Definition at line 153 of file scsw.h.

#define SCSW_ACTL_SUSPENDED   0x1

Definition at line 148 of file scsw.h.

#define SCSW_FCTL_CLEAR_FUNC   0x1

Definition at line 144 of file scsw.h.

#define SCSW_FCTL_HALT_FUNC   0x2

Definition at line 145 of file scsw.h.

#define SCSW_FCTL_START_FUNC   0x4

Definition at line 146 of file scsw.h.

#define SCSW_STCTL_ALERT_STATUS   0x10

Definition at line 160 of file scsw.h.

#define SCSW_STCTL_INTER_STATUS   0x8

Definition at line 159 of file scsw.h.

#define SCSW_STCTL_PRIM_STATUS   0x4

Definition at line 158 of file scsw.h.

#define SCSW_STCTL_SEC_STATUS   0x2

Definition at line 157 of file scsw.h.

#define SCSW_STCTL_STATUS_PEND   0x1

Definition at line 156 of file scsw.h.

#define SNS0_BUS_OUT_CHECK   0x20

Definition at line 186 of file scsw.h.

#define SNS0_CMD_REJECT   0x80

Definition at line 183 of file scsw.h.

#define SNS0_DATA_CHECK   0x08

Definition at line 188 of file scsw.h.

#define SNS0_EQUIPMENT_CHECK   0x10

Definition at line 187 of file scsw.h.

#define SNS0_INCOMPL_DOMAIN   0x01

Definition at line 190 of file scsw.h.

#define SNS0_INTERVENTION_REQ   0x40

Definition at line 185 of file scsw.h.

#define SNS0_OVERRUN   0x04

Definition at line 189 of file scsw.h.

#define SNS1_EOC   0x20

Definition at line 197 of file scsw.h.

#define SNS1_FILE_PROTECTED   0x04

Definition at line 200 of file scsw.h.

#define SNS1_INPRECISE_END   0x01

Definition at line 202 of file scsw.h.

#define SNS1_INV_TRACK_FORMAT   0x40

Definition at line 196 of file scsw.h.

#define SNS1_MESSAGE_TO_OPER   0x10

Definition at line 198 of file scsw.h.

#define SNS1_NO_REC_FOUND   0x08

Definition at line 199 of file scsw.h.

#define SNS1_PERM_ERR   0x80

Definition at line 195 of file scsw.h.

#define SNS1_WRITE_INHIBITED   0x02

Definition at line 201 of file scsw.h.

#define SNS2_CORRECTABLE   0x40

Definition at line 208 of file scsw.h.

#define SNS2_ENV_DATA_PRESENT   0x10

Definition at line 210 of file scsw.h.

#define SNS2_FIRST_LOG_ERR   0x20

Definition at line 209 of file scsw.h.

#define SNS2_INPRECISE_END   0x04

Definition at line 211 of file scsw.h.

#define SNS2_REQ_INH_WRITE   0x80

Definition at line 207 of file scsw.h.

#define SNS_CMD_REJECT   SNS0_CMD_REJEC

Definition at line 184 of file scsw.h.

Function Documentation

struct cmd_scsw __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

union scsw __packed
u32 __pad0__

Definition at line 102 of file scsw.h.

u32 __pad1__

Definition at line 108 of file scsw.h.

u32 __pad2__

Definition at line 111 of file scsw.h.

u32 actl

Definition at line 74 of file scsw.h.

__u32 alcc

Definition at line 67 of file scsw.h.

__u16 cc

Definition at line 63 of file scsw.h.

__u32 count

Definition at line 79 of file scsw.h.

__u32 cpa

Definition at line 76 of file scsw.h.

u32 cstat

Definition at line 78 of file scsw.h.

u32 dstat

Definition at line 77 of file scsw.h.

u32 ectl

Definition at line 70 of file scsw.h.

u32 eswf

Definition at line 62 of file scsw.h.

u32 fctl

Definition at line 73 of file scsw.h.

u32 fcxs

Definition at line 118 of file scsw.h.

u32 fmt

Definition at line 64 of file scsw.h.

__u32 isic

Definition at line 66 of file scsw.h.

u32 key

Definition at line 60 of file scsw.h.

__u32 pfch

Definition at line 65 of file scsw.h.

u32 pno

Definition at line 71 of file scsw.h.

u32 q

Definition at line 107 of file scsw.h.

__u32 res

Definition at line 72 of file scsw.h.

u32 schxs

Definition at line 119 of file scsw.h.

__u32 sctl

Definition at line 61 of file scsw.h.

__u32 ssi

Definition at line 68 of file scsw.h.

u32 stctl

Definition at line 75 of file scsw.h.

Definition at line 115 of file scsw.h.

u32 x

Definition at line 106 of file scsw.h.

__u32 zcc

Definition at line 69 of file scsw.h.