Go to the documentation of this file.
24 #define MAX_I2O_CONTROLLERS 32
27 #include <linux/types.h>
32 #define I2O_MAGIC_NUMBER 'i'
33 #define I2OGETIOPS _IOR(I2O_MAGIC_NUMBER,0,__u8[MAX_I2O_CONTROLLERS])
34 #define I2OHRTGET _IOWR(I2O_MAGIC_NUMBER,1,struct i2o_cmd_hrtlct)
35 #define I2OLCTGET _IOWR(I2O_MAGIC_NUMBER,2,struct i2o_cmd_hrtlct)
36 #define I2OPARMSET _IOWR(I2O_MAGIC_NUMBER,3,struct i2o_cmd_psetget)
37 #define I2OPARMGET _IOWR(I2O_MAGIC_NUMBER,4,struct i2o_cmd_psetget)
38 #define I2OSWDL _IOWR(I2O_MAGIC_NUMBER,5,struct i2o_sw_xfer)
39 #define I2OSWUL _IOWR(I2O_MAGIC_NUMBER,6,struct i2o_sw_xfer)
40 #define I2OSWDEL _IOWR(I2O_MAGIC_NUMBER,7,struct i2o_sw_xfer)
41 #define I2OVALIDATE _IOR(I2O_MAGIC_NUMBER,8,__u32)
42 #define I2OHTML _IOWR(I2O_MAGIC_NUMBER,9,struct i2o_html)
43 #define I2OEVTREG _IOW(I2O_MAGIC_NUMBER,10,struct i2o_evt_id)
44 #define I2OEVTGET _IOR(I2O_MAGIC_NUMBER,11,struct i2o_evt_info)
45 #define I2OPASSTHRU _IOR(I2O_MAGIC_NUMBER,12,struct i2o_cmd_passthru)
46 #define I2OPASSTHRU32 _IOR(I2O_MAGIC_NUMBER,12,struct i2o_cmd_passthru32)
94 #define I2O_EVT_Q_LEN 32
103 #define I2O_EVT_DATA_SIZE 88
124 #define I2O_BUS_LOCAL 0
125 #define I2O_BUS_ISA 1
126 #define I2O_BUS_EISA 2
128 #define I2O_BUS_PCI 4
129 #define I2O_BUS_PCMCIA 5
130 #define I2O_BUS_NUBUS 6
131 #define I2O_BUS_CARDBUS 7
132 #define I2O_BUS_UNKNOWN 0x80
256 #define I2O_EVT_IND_STATE_CHANGE 0x80000000
257 #define I2O_EVT_IND_GENERAL_WARNING 0x40000000
258 #define I2O_EVT_IND_CONFIGURATION_FLAG 0x20000000
259 #define I2O_EVT_IND_LOCK_RELEASE 0x10000000
260 #define I2O_EVT_IND_CAPABILITY_CHANGE 0x08000000
261 #define I2O_EVT_IND_DEVICE_RESET 0x04000000
262 #define I2O_EVT_IND_EVT_MASK_MODIFIED 0x02000000
263 #define I2O_EVT_IND_FIELD_MODIFIED 0x01000000
264 #define I2O_EVT_IND_VENDOR_EVT 0x00800000
265 #define I2O_EVT_IND_DEVICE_STATE 0x00400000
268 #define I2O_EVT_IND_EXEC_RESOURCE_LIMITS 0x00000001
269 #define I2O_EVT_IND_EXEC_CONNECTION_FAIL 0x00000002
270 #define I2O_EVT_IND_EXEC_ADAPTER_FAULT 0x00000004
271 #define I2O_EVT_IND_EXEC_POWER_FAIL 0x00000008
272 #define I2O_EVT_IND_EXEC_RESET_PENDING 0x00000010
273 #define I2O_EVT_IND_EXEC_RESET_IMMINENT 0x00000020
274 #define I2O_EVT_IND_EXEC_HW_FAIL 0x00000040
275 #define I2O_EVT_IND_EXEC_XCT_CHANGE 0x00000080
276 #define I2O_EVT_IND_EXEC_NEW_LCT_ENTRY 0x00000100
277 #define I2O_EVT_IND_EXEC_MODIFIED_LCT 0x00000200
278 #define I2O_EVT_IND_EXEC_DDM_AVAILABILITY 0x00000400
281 #define I2O_EVT_IND_BSA_VOLUME_LOAD 0x00000001
282 #define I2O_EVT_IND_BSA_VOLUME_UNLOAD 0x00000002
283 #define I2O_EVT_IND_BSA_VOLUME_UNLOAD_REQ 0x00000004
284 #define I2O_EVT_IND_BSA_CAPACITY_CHANGE 0x00000008
285 #define I2O_EVT_IND_BSA_SCSI_SMART 0x00000010
288 #define I2O_EVT_STATE_CHANGE_NORMAL 0x00
289 #define I2O_EVT_STATE_CHANGE_SUSPENDED 0x01
290 #define I2O_EVT_STATE_CHANGE_RESTART 0x02
291 #define I2O_EVT_STATE_CHANGE_NA_RECOVER 0x03
292 #define I2O_EVT_STATE_CHANGE_NA_NO_RECOVER 0x04
293 #define I2O_EVT_STATE_CHANGE_QUIESCE_REQUEST 0x05
294 #define I2O_EVT_STATE_CHANGE_FAILED 0x10
295 #define I2O_EVT_STATE_CHANGE_FAULTED 0x11
297 #define I2O_EVT_GEN_WARNING_NORMAL 0x00
298 #define I2O_EVT_GEN_WARNING_ERROR_THRESHOLD 0x01
299 #define I2O_EVT_GEN_WARNING_MEDIA_FAULT 0x02
301 #define I2O_EVT_CAPABILITY_OTHER 0x01
302 #define I2O_EVT_CAPABILITY_CHANGED 0x02
304 #define I2O_EVT_SENSOR_STATE_CHANGED 0x01
313 #define I2O_CLASS_VERSION_10 0x00
314 #define I2O_CLASS_VERSION_11 0x01
320 #define I2O_CLASS_EXECUTIVE 0x000
321 #define I2O_CLASS_DDM 0x001
322 #define I2O_CLASS_RANDOM_BLOCK_STORAGE 0x010
323 #define I2O_CLASS_SEQUENTIAL_STORAGE 0x011
324 #define I2O_CLASS_LAN 0x020
325 #define I2O_CLASS_WAN 0x030
326 #define I2O_CLASS_FIBRE_CHANNEL_PORT 0x040
327 #define I2O_CLASS_FIBRE_CHANNEL_PERIPHERAL 0x041
328 #define I2O_CLASS_SCSI_PERIPHERAL 0x051
329 #define I2O_CLASS_ATE_PORT 0x060
330 #define I2O_CLASS_ATE_PERIPHERAL 0x061
331 #define I2O_CLASS_FLOPPY_CONTROLLER 0x070
332 #define I2O_CLASS_FLOPPY_DEVICE 0x071
333 #define I2O_CLASS_BUS_ADAPTER 0x080
334 #define I2O_CLASS_PEER_TRANSPORT_AGENT 0x090
335 #define I2O_CLASS_PEER_TRANSPORT 0x091
336 #define I2O_CLASS_END 0xfff
342 #define I2O_CLASS_MATCH_ANYCLASS 0xffffffff
348 #define I2O_SUBCLASS_i960 0x001
349 #define I2O_SUBCLASS_HDM 0x020
350 #define I2O_SUBCLASS_ISM 0x021
354 #define I2O_PARAMS_FIELD_GET 0x0001
355 #define I2O_PARAMS_LIST_GET 0x0002
356 #define I2O_PARAMS_MORE_GET 0x0003
357 #define I2O_PARAMS_SIZE_GET 0x0004
358 #define I2O_PARAMS_TABLE_GET 0x0005
359 #define I2O_PARAMS_FIELD_SET 0x0006
360 #define I2O_PARAMS_LIST_SET 0x0007
361 #define I2O_PARAMS_ROW_ADD 0x0008
362 #define I2O_PARAMS_ROW_DELETE 0x0009
363 #define I2O_PARAMS_TABLE_CLEAR 0x000A
370 #define I2O_SNFORMAT_UNKNOWN 0
371 #define I2O_SNFORMAT_BINARY 1
372 #define I2O_SNFORMAT_ASCII 2
373 #define I2O_SNFORMAT_UNICODE 3
374 #define I2O_SNFORMAT_LAN48_MAC 4
375 #define I2O_SNFORMAT_WAN 5
381 #define I2O_SNFORMAT_LAN64_MAC 6
382 #define I2O_SNFORMAT_DDM 7
383 #define I2O_SNFORMAT_IEEE_REG64 8
384 #define I2O_SNFORMAT_IEEE_REG128 9
385 #define I2O_SNFORMAT_UNKNOWN2 0xff
391 #define ADAPTER_STATE_INITIALIZING 0x01
392 #define ADAPTER_STATE_RESET 0x02
393 #define ADAPTER_STATE_HOLD 0x04
394 #define ADAPTER_STATE_READY 0x05
395 #define ADAPTER_STATE_OPERATIONAL 0x08
396 #define ADAPTER_STATE_FAILED 0x10
397 #define ADAPTER_STATE_FAULTED 0x11
402 #define I2O_SOFTWARE_MODULE_IRTOS 0x11
403 #define I2O_SOFTWARE_MODULE_IOP_PRIVATE 0x22
404 #define I2O_SOFTWARE_MODULE_IOP_CONFIG 0x23
409 #define I2O_VENDOR_DPT 0x001b
414 #define I2O_DPT_SG_FLAG_INTERPRET 0x00010000
415 #define I2O_DPT_SG_FLAG_PHYSICAL 0x00020000
417 #define I2O_DPT_FLASH_FRAG_SIZE 0x10000
418 #define I2O_DPT_FLASH_READ 0x0101
419 #define I2O_DPT_FLASH_WRITE 0x0102