diff options
Diffstat (limited to 'drivers/scsi/dpt/dpti_i2o.h')
-rw-r--r-- | drivers/scsi/dpt/dpti_i2o.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/scsi/dpt/dpti_i2o.h b/drivers/scsi/dpt/dpti_i2o.h index 5a49216fe4cf..100b49baca7f 100644 --- a/drivers/scsi/dpt/dpti_i2o.h +++ b/drivers/scsi/dpt/dpti_i2o.h | |||
@@ -31,7 +31,7 @@ | |||
31 | * Tunable parameters first | 31 | * Tunable parameters first |
32 | */ | 32 | */ |
33 | 33 | ||
34 | /* How many different OSM's are we allowing */ | 34 | /* How many different OSM's are we allowing */ |
35 | #define MAX_I2O_MODULES 64 | 35 | #define MAX_I2O_MODULES 64 |
36 | 36 | ||
37 | #define I2O_EVT_CAPABILITY_OTHER 0x01 | 37 | #define I2O_EVT_CAPABILITY_OTHER 0x01 |
@@ -63,7 +63,7 @@ struct i2o_message | |||
63 | u16 size; | 63 | u16 size; |
64 | u32 target_tid:12; | 64 | u32 target_tid:12; |
65 | u32 init_tid:12; | 65 | u32 init_tid:12; |
66 | u32 function:8; | 66 | u32 function:8; |
67 | u32 initiator_context; | 67 | u32 initiator_context; |
68 | /* List follows */ | 68 | /* List follows */ |
69 | }; | 69 | }; |
@@ -77,7 +77,7 @@ struct i2o_device | |||
77 | 77 | ||
78 | char dev_name[8]; /* linux /dev name if available */ | 78 | char dev_name[8]; /* linux /dev name if available */ |
79 | i2o_lct_entry lct_data;/* Device LCT information */ | 79 | i2o_lct_entry lct_data;/* Device LCT information */ |
80 | u32 flags; | 80 | u32 flags; |
81 | struct proc_dir_entry* proc_entry; /* /proc dir */ | 81 | struct proc_dir_entry* proc_entry; /* /proc dir */ |
82 | struct adpt_device *owner; | 82 | struct adpt_device *owner; |
83 | struct _adpt_hba *controller; /* Controlling IOP */ | 83 | struct _adpt_hba *controller; /* Controlling IOP */ |
@@ -86,7 +86,7 @@ struct i2o_device | |||
86 | /* | 86 | /* |
87 | * Each I2O controller has one of these objects | 87 | * Each I2O controller has one of these objects |
88 | */ | 88 | */ |
89 | 89 | ||
90 | struct i2o_controller | 90 | struct i2o_controller |
91 | { | 91 | { |
92 | char name[16]; | 92 | char name[16]; |
@@ -111,9 +111,9 @@ struct i2o_sys_tbl_entry | |||
111 | u32 iop_id:12; | 111 | u32 iop_id:12; |
112 | u32 reserved2:20; | 112 | u32 reserved2:20; |
113 | u16 seg_num:12; | 113 | u16 seg_num:12; |
114 | u16 i2o_version:4; | 114 | u16 i2o_version:4; |
115 | u8 iop_state; | 115 | u8 iop_state; |
116 | u8 msg_type; | 116 | u8 msg_type; |
117 | u16 frame_size; | 117 | u16 frame_size; |
118 | u16 reserved3; | 118 | u16 reserved3; |
119 | u32 last_changed; | 119 | u32 last_changed; |
@@ -124,14 +124,14 @@ struct i2o_sys_tbl_entry | |||
124 | 124 | ||
125 | struct i2o_sys_tbl | 125 | struct i2o_sys_tbl |
126 | { | 126 | { |
127 | u8 num_entries; | 127 | u8 num_entries; |
128 | u8 version; | 128 | u8 version; |
129 | u16 reserved1; | 129 | u16 reserved1; |
130 | u32 change_ind; | 130 | u32 change_ind; |
131 | u32 reserved2; | 131 | u32 reserved2; |
132 | u32 reserved3; | 132 | u32 reserved3; |
133 | struct i2o_sys_tbl_entry iops[0]; | 133 | struct i2o_sys_tbl_entry iops[0]; |
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* | 136 | /* |
137 | * I2O classes / subclasses | 137 | * I2O classes / subclasses |
@@ -146,7 +146,7 @@ struct i2o_sys_tbl | |||
146 | /* Class code names | 146 | /* Class code names |
147 | * (from v1.5 Table 6-1 Class Code Assignments.) | 147 | * (from v1.5 Table 6-1 Class Code Assignments.) |
148 | */ | 148 | */ |
149 | 149 | ||
150 | #define I2O_CLASS_EXECUTIVE 0x000 | 150 | #define I2O_CLASS_EXECUTIVE 0x000 |
151 | #define I2O_CLASS_DDM 0x001 | 151 | #define I2O_CLASS_DDM 0x001 |
152 | #define I2O_CLASS_RANDOM_BLOCK_STORAGE 0x010 | 152 | #define I2O_CLASS_RANDOM_BLOCK_STORAGE 0x010 |
@@ -166,7 +166,7 @@ struct i2o_sys_tbl | |||
166 | 166 | ||
167 | /* Rest of 0x092 - 0x09f reserved for peer-to-peer classes | 167 | /* Rest of 0x092 - 0x09f reserved for peer-to-peer classes |
168 | */ | 168 | */ |
169 | 169 | ||
170 | #define I2O_CLASS_MATCH_ANYCLASS 0xffffffff | 170 | #define I2O_CLASS_MATCH_ANYCLASS 0xffffffff |
171 | 171 | ||
172 | /* Subclasses | 172 | /* Subclasses |
@@ -175,7 +175,7 @@ struct i2o_sys_tbl | |||
175 | #define I2O_SUBCLASS_i960 0x001 | 175 | #define I2O_SUBCLASS_i960 0x001 |
176 | #define I2O_SUBCLASS_HDM 0x020 | 176 | #define I2O_SUBCLASS_HDM 0x020 |
177 | #define I2O_SUBCLASS_ISM 0x021 | 177 | #define I2O_SUBCLASS_ISM 0x021 |
178 | 178 | ||
179 | /* Operation functions */ | 179 | /* Operation functions */ |
180 | 180 | ||
181 | #define I2O_PARAMS_FIELD_GET 0x0001 | 181 | #define I2O_PARAMS_FIELD_GET 0x0001 |
@@ -219,7 +219,7 @@ struct i2o_sys_tbl | |||
219 | /* | 219 | /* |
220 | * Messaging API values | 220 | * Messaging API values |
221 | */ | 221 | */ |
222 | 222 | ||
223 | #define I2O_CMD_ADAPTER_ASSIGN 0xB3 | 223 | #define I2O_CMD_ADAPTER_ASSIGN 0xB3 |
224 | #define I2O_CMD_ADAPTER_READ 0xB2 | 224 | #define I2O_CMD_ADAPTER_READ 0xB2 |
225 | #define I2O_CMD_ADAPTER_RELEASE 0xB5 | 225 | #define I2O_CMD_ADAPTER_RELEASE 0xB5 |
@@ -284,16 +284,16 @@ struct i2o_sys_tbl | |||
284 | #define I2O_PRIVATE_MSG 0xFF | 284 | #define I2O_PRIVATE_MSG 0xFF |
285 | 285 | ||
286 | /* | 286 | /* |
287 | * Init Outbound Q status | 287 | * Init Outbound Q status |
288 | */ | 288 | */ |
289 | 289 | ||
290 | #define I2O_CMD_OUTBOUND_INIT_IN_PROGRESS 0x01 | 290 | #define I2O_CMD_OUTBOUND_INIT_IN_PROGRESS 0x01 |
291 | #define I2O_CMD_OUTBOUND_INIT_REJECTED 0x02 | 291 | #define I2O_CMD_OUTBOUND_INIT_REJECTED 0x02 |
292 | #define I2O_CMD_OUTBOUND_INIT_FAILED 0x03 | 292 | #define I2O_CMD_OUTBOUND_INIT_FAILED 0x03 |
293 | #define I2O_CMD_OUTBOUND_INIT_COMPLETE 0x04 | 293 | #define I2O_CMD_OUTBOUND_INIT_COMPLETE 0x04 |
294 | 294 | ||
295 | /* | 295 | /* |
296 | * I2O Get Status State values | 296 | * I2O Get Status State values |
297 | */ | 297 | */ |
298 | 298 | ||
299 | #define ADAPTER_STATE_INITIALIZING 0x01 | 299 | #define ADAPTER_STATE_INITIALIZING 0x01 |
@@ -303,7 +303,7 @@ struct i2o_sys_tbl | |||
303 | #define ADAPTER_STATE_OPERATIONAL 0x08 | 303 | #define ADAPTER_STATE_OPERATIONAL 0x08 |
304 | #define ADAPTER_STATE_FAILED 0x10 | 304 | #define ADAPTER_STATE_FAILED 0x10 |
305 | #define ADAPTER_STATE_FAULTED 0x11 | 305 | #define ADAPTER_STATE_FAULTED 0x11 |
306 | 306 | ||
307 | /* I2O API function return values */ | 307 | /* I2O API function return values */ |
308 | 308 | ||
309 | #define I2O_RTN_NO_ERROR 0 | 309 | #define I2O_RTN_NO_ERROR 0 |
@@ -321,9 +321,9 @@ struct i2o_sys_tbl | |||
321 | 321 | ||
322 | /* Reply message status defines for all messages */ | 322 | /* Reply message status defines for all messages */ |
323 | 323 | ||
324 | #define I2O_REPLY_STATUS_SUCCESS 0x00 | 324 | #define I2O_REPLY_STATUS_SUCCESS 0x00 |
325 | #define I2O_REPLY_STATUS_ABORT_DIRTY 0x01 | 325 | #define I2O_REPLY_STATUS_ABORT_DIRTY 0x01 |
326 | #define I2O_REPLY_STATUS_ABORT_NO_DATA_TRANSFER 0x02 | 326 | #define I2O_REPLY_STATUS_ABORT_NO_DATA_TRANSFER 0x02 |
327 | #define I2O_REPLY_STATUS_ABORT_PARTIAL_TRANSFER 0x03 | 327 | #define I2O_REPLY_STATUS_ABORT_PARTIAL_TRANSFER 0x03 |
328 | #define I2O_REPLY_STATUS_ERROR_DIRTY 0x04 | 328 | #define I2O_REPLY_STATUS_ERROR_DIRTY 0x04 |
329 | #define I2O_REPLY_STATUS_ERROR_NO_DATA_TRANSFER 0x05 | 329 | #define I2O_REPLY_STATUS_ERROR_NO_DATA_TRANSFER 0x05 |
@@ -338,7 +338,7 @@ struct i2o_sys_tbl | |||
338 | 338 | ||
339 | #define I2O_PARAMS_STATUS_SUCCESS 0x00 | 339 | #define I2O_PARAMS_STATUS_SUCCESS 0x00 |
340 | #define I2O_PARAMS_STATUS_BAD_KEY_ABORT 0x01 | 340 | #define I2O_PARAMS_STATUS_BAD_KEY_ABORT 0x01 |
341 | #define I2O_PARAMS_STATUS_BAD_KEY_CONTINUE 0x02 | 341 | #define I2O_PARAMS_STATUS_BAD_KEY_CONTINUE 0x02 |
342 | #define I2O_PARAMS_STATUS_BUFFER_FULL 0x03 | 342 | #define I2O_PARAMS_STATUS_BUFFER_FULL 0x03 |
343 | #define I2O_PARAMS_STATUS_BUFFER_TOO_SMALL 0x04 | 343 | #define I2O_PARAMS_STATUS_BUFFER_TOO_SMALL 0x04 |
344 | #define I2O_PARAMS_STATUS_FIELD_UNREADABLE 0x05 | 344 | #define I2O_PARAMS_STATUS_FIELD_UNREADABLE 0x05 |
@@ -390,7 +390,7 @@ struct i2o_sys_tbl | |||
390 | #define I2O_CLAIM_MANAGEMENT 0x02000000 | 390 | #define I2O_CLAIM_MANAGEMENT 0x02000000 |
391 | #define I2O_CLAIM_AUTHORIZED 0x03000000 | 391 | #define I2O_CLAIM_AUTHORIZED 0x03000000 |
392 | #define I2O_CLAIM_SECONDARY 0x04000000 | 392 | #define I2O_CLAIM_SECONDARY 0x04000000 |
393 | 393 | ||
394 | /* Message header defines for VersionOffset */ | 394 | /* Message header defines for VersionOffset */ |
395 | #define I2OVER15 0x0001 | 395 | #define I2OVER15 0x0001 |
396 | #define I2OVER20 0x0002 | 396 | #define I2OVER20 0x0002 |