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

Go to the source code of this file.

Data Structures

struct  clawh
 
struct  clawph
 
struct  endccw
 
struct  ccwbk
 
struct  clawctl
 
struct  sysval
 
struct  conncmd
 
struct  clawwerror
 
struct  clawbuf
 
struct  chbk
 
struct  claw_env
 
struct  claw_privbk
 

Macros

#define CCW_CLAW_CMD_WRITE   0x01 /* write - not including link */
 
#define CCW_CLAW_CMD_READ   0x02 /* read */
 
#define CCW_CLAW_CMD_NOP   0x03 /* NOP */
 
#define CCW_CLAW_CMD_SENSE   0x04 /* Sense */
 
#define CCW_CLAW_CMD_SIGNAL_SMOD   0x05 /* Signal Status Modifier */
 
#define CCW_CLAW_CMD_TIC   0x08 /* TIC */
 
#define CCW_CLAW_CMD_READHEADER   0x12 /* read header data */
 
#define CCW_CLAW_CMD_READFF   0x22 /* read an FF */
 
#define CCW_CLAW_CMD_SENSEID   0xe4 /* Sense ID */
 
#define MORE_to_COME_FLAG   0x04 /* OR with write CCW in case of m-t-c */
 
#define CLAW_IDLE   0x00 /* flag to indicate CLAW is idle */
 
#define CLAW_BUSY   0xff /* flag to indicate CLAW is busy */
 
#define CLAW_PENDING   0x00 /* flag to indicate i/o is pending */
 
#define CLAW_COMPLETE   0xff /* flag to indicate i/o completed */
 
#define SYSTEM_VALIDATE_REQUEST   0x01 /* System Validate request */
 
#define SYSTEM_VALIDATE_RESPONSE   0x02 /* System Validate response */
 
#define CONNECTION_REQUEST   0x21 /* Connection request */
 
#define CONNECTION_RESPONSE   0x22 /* Connection response */
 
#define CONNECTION_CONFIRM   0x23 /* Connection confirm */
 
#define DISCONNECT   0x24 /* Disconnect */
 
#define CLAW_ERROR   0x41 /* CLAW error message */
 
#define CLAW_VERSION_ID   2 /* CLAW version ID */
 
#define CLAW_ADAPTER_SENSE_BYTE   0x41 /* Stop command issued to adapter */
 
#define CLAW_RC_NAME_MISMATCH   166 /* names do not match */
 
#define CLAW_RC_WRONG_VERSION   167 /* wrong CLAW version number */
 
#define CLAW_RC_HOST_RCV_TOO_SMALL   180 /* Host maximum receive is */
 
#define HOST_APPL_NAME   "TCPIP "
 
#define WS_APPL_NAME_IP_LINK   "TCPIP "
 
#define WS_APPL_NAME_IP_NAME   "IP "
 
#define WS_APPL_NAME_API_LINK   "API "
 
#define WS_APPL_NAME_PACKED   "PACKED "
 
#define WS_NAME_NOT_DEF   "NOT_DEF "
 
#define PACKING_ASK   1
 
#define PACK_SEND   2
 
#define DO_PACKED   3
 
#define MAX_ENVELOPE_SIZE   65536
 
#define CLAW_DEFAULT_MTU_SIZE   4096
 
#define DEF_PACK_BUFSIZE   32768
 
#define READ_CHANNEL   0
 
#define WRITE_CHANNEL   1
 
#define TB_TX   0 /* sk buffer handling in process */
 
#define TB_STOP   1 /* network device stop in process */
 
#define TB_RETRY   2 /* retry in process */
 
#define TB_NOBUFFER   3 /* no buffer on free queue */
 
#define CLAW_MAX_LINK_ID   1
 
#define CLAW_MAX_DEV   256 /* max claw devices */
 
#define MAX_NAME_LEN   8 /* host name, adapter name length */
 
#define CLAW_FRAME_SIZE   4096
 
#define CLAW_ID_SIZE   20+3
 
#define CLAW_STOP   0
 
#define CLAW_START_HALT_IO   1
 
#define CLAW_START_SENSEID   2
 
#define CLAW_START_READ   3
 
#define CLAW_START_WRITE   4
 
#define LOCK_YES   0
 
#define LOCK_NO   1
 
#define CLAW_DBF_TEXT(level, name, text)
 
#define CLAW_DBF_HEX(level, name, addr, len)
 
#define CLAW_DBF_TEXT_(level, name, text...)
 
#define CLAW_BH_ACTIVE   0
 
#define CLAW_WRITE_ACTIVE   0
 
#define CLAW_WRITE   0x02 /* - Set if this is a write channel */
 
#define CLAW_READ   0x01 /* - Set if this is a read channel */
 
#define CLAW_TIMER   0x80 /* - Set if timer made the wake_up */
 
#define CCWBK_SIZE   sizeof(struct ccwbk)
 

Enumerations

enum  claw_channel_types { claw_channel_type_none, claw_channel_type_claw }
 

Macro Definition Documentation

#define CCW_CLAW_CMD_NOP   0x03 /* NOP */

Definition at line 12 of file claw.h.

#define CCW_CLAW_CMD_READ   0x02 /* read */

Definition at line 11 of file claw.h.

#define CCW_CLAW_CMD_READFF   0x22 /* read an FF */

Definition at line 17 of file claw.h.

#define CCW_CLAW_CMD_READHEADER   0x12 /* read header data */

Definition at line 16 of file claw.h.

#define CCW_CLAW_CMD_SENSE   0x04 /* Sense */

Definition at line 13 of file claw.h.

#define CCW_CLAW_CMD_SENSEID   0xe4 /* Sense ID */

Definition at line 18 of file claw.h.

#define CCW_CLAW_CMD_SIGNAL_SMOD   0x05 /* Signal Status Modifier */

Definition at line 14 of file claw.h.

#define CCW_CLAW_CMD_TIC   0x08 /* TIC */

Definition at line 15 of file claw.h.

#define CCW_CLAW_CMD_WRITE   0x01 /* write - not including link */

Definition at line 10 of file claw.h.

#define CCWBK_SIZE   sizeof(struct ccwbk)

Definition at line 352 of file claw.h.

#define CLAW_ADAPTER_SENSE_BYTE   0x41 /* Stop command issued to adapter */

Definition at line 48 of file claw.h.

#define CLAW_BH_ACTIVE   0

Definition at line 274 of file claw.h.

#define CLAW_BUSY   0xff /* flag to indicate CLAW is busy */

Definition at line 27 of file claw.h.

#define CLAW_COMPLETE   0xff /* flag to indicate i/o completed */

Definition at line 29 of file claw.h.

#define CLAW_DBF_HEX (   level,
  name,
  addr,
  len 
)
Value:
do { \
debug_event(claw_dbf_##name,level,(void*)(addr),len); \
} while (0)

Definition at line 112 of file claw.h.

#define CLAW_DBF_TEXT (   level,
  name,
  text 
)
Value:
do { \
debug_text_event(claw_dbf_##name, level, text); \
} while (0)

Definition at line 107 of file claw.h.

#define CLAW_DBF_TEXT_ (   level,
  name,
  text... 
)
Value:
do { \
if (claw_dbf_passes(claw_dbf_##name, level)) { \
sprintf(debug_buffer, text); \
debug_text_event(claw_dbf_##name, level, \
} \
} while (0)

Definition at line 123 of file claw.h.

#define CLAW_DEFAULT_MTU_SIZE   4096

Definition at line 75 of file claw.h.

#define CLAW_ERROR   0x41 /* CLAW error message */

Definition at line 41 of file claw.h.

#define CLAW_FRAME_SIZE   4096

Definition at line 87 of file claw.h.

#define CLAW_ID_SIZE   20+3

Definition at line 88 of file claw.h.

#define CLAW_IDLE   0x00 /* flag to indicate CLAW is idle */

Definition at line 26 of file claw.h.

#define CLAW_MAX_DEV   256 /* max claw devices */

Definition at line 85 of file claw.h.

#define CLAW_MAX_LINK_ID   1

Definition at line 84 of file claw.h.

#define CLAW_PENDING   0x00 /* flag to indicate i/o is pending */

Definition at line 28 of file claw.h.

#define CLAW_RC_HOST_RCV_TOO_SMALL   180 /* Host maximum receive is */

Definition at line 56 of file claw.h.

#define CLAW_RC_NAME_MISMATCH   166 /* names do not match */

Definition at line 54 of file claw.h.

#define CLAW_RC_WRONG_VERSION   167 /* wrong CLAW version number */

Definition at line 55 of file claw.h.

#define CLAW_READ   0x01 /* - Set if this is a read channel */

Definition at line 282 of file claw.h.

#define CLAW_START_HALT_IO   1

Definition at line 93 of file claw.h.

#define CLAW_START_READ   3

Definition at line 95 of file claw.h.

#define CLAW_START_SENSEID   2

Definition at line 94 of file claw.h.

#define CLAW_START_WRITE   4

Definition at line 96 of file claw.h.

#define CLAW_STOP   0

Definition at line 92 of file claw.h.

#define CLAW_TIMER   0x80 /* - Set if timer made the wake_up */

Definition at line 283 of file claw.h.

#define CLAW_VERSION_ID   2 /* CLAW version ID */

Definition at line 42 of file claw.h.

#define CLAW_WRITE   0x02 /* - Set if this is a write channel */

Definition at line 281 of file claw.h.

#define CLAW_WRITE_ACTIVE   0

Definition at line 276 of file claw.h.

#define CONNECTION_CONFIRM   0x23 /* Connection confirm */

Definition at line 39 of file claw.h.

#define CONNECTION_REQUEST   0x21 /* Connection request */

Definition at line 37 of file claw.h.

#define CONNECTION_RESPONSE   0x22 /* Connection response */

Definition at line 38 of file claw.h.

#define DEF_PACK_BUFSIZE   32768

Definition at line 76 of file claw.h.

#define DISCONNECT   0x24 /* Disconnect */

Definition at line 40 of file claw.h.

#define DO_PACKED   3

Definition at line 72 of file claw.h.

#define HOST_APPL_NAME   "TCPIP "

Definition at line 64 of file claw.h.

#define LOCK_NO   1

Definition at line 102 of file claw.h.

#define LOCK_YES   0

Definition at line 101 of file claw.h.

#define MAX_ENVELOPE_SIZE   65536

Definition at line 74 of file claw.h.

#define MAX_NAME_LEN   8 /* host name, adapter name length */

Definition at line 86 of file claw.h.

#define MORE_to_COME_FLAG   0x04 /* OR with write CCW in case of m-t-c */

Definition at line 25 of file claw.h.

#define PACK_SEND   2

Definition at line 71 of file claw.h.

#define PACKING_ASK   1

Definition at line 70 of file claw.h.

#define READ_CHANNEL   0

Definition at line 77 of file claw.h.

#define SYSTEM_VALIDATE_REQUEST   0x01 /* System Validate request */

Definition at line 35 of file claw.h.

#define SYSTEM_VALIDATE_RESPONSE   0x02 /* System Validate response */

Definition at line 36 of file claw.h.

#define TB_NOBUFFER   3 /* no buffer on free queue */

Definition at line 83 of file claw.h.

#define TB_RETRY   2 /* retry in process */

Definition at line 82 of file claw.h.

#define TB_STOP   1 /* network device stop in process */

Definition at line 81 of file claw.h.

#define TB_TX   0 /* sk buffer handling in process */

Definition at line 80 of file claw.h.

#define WRITE_CHANNEL   1

Definition at line 78 of file claw.h.

#define WS_APPL_NAME_API_LINK   "API "

Definition at line 67 of file claw.h.

#define WS_APPL_NAME_IP_LINK   "TCPIP "

Definition at line 65 of file claw.h.

#define WS_APPL_NAME_IP_NAME   "IP "

Definition at line 66 of file claw.h.

#define WS_APPL_NAME_PACKED   "PACKED "

Definition at line 68 of file claw.h.

#define WS_NAME_NOT_DEF   "NOT_DEF "

Definition at line 69 of file claw.h.

Enumeration Type Documentation

Enum for classifying detected devices.

Enumerator:
claw_channel_type_none 
claw_channel_type_claw 

Definition at line 135 of file claw.h.