]> err.no Git - linux-2.6/blobdiff - include/linux/i2o-dev.h
Merge git://git.skbuff.net/gitroot/yoshfuji/linux-2.6-git-rfc3542
[linux-2.6] / include / linux / i2o-dev.h
index 3414325bdcfdbaecdba30ff2d527b838ed05fd21..36fd18cdad2897f6f0f3ff38ad4770db29227c13 100644 (file)
@@ -32,7 +32,6 @@ typedef unsigned int u32;
 
 #endif                         /* __KERNEL__ */
 
-
 /*
  * I2O Control IOCTLs and structures
  */
@@ -121,6 +120,10 @@ struct i2o_evt_get {
        int lost;
 };
 
+typedef struct i2o_sg_io_hdr {
+       unsigned int flags;     /* see I2O_DPT_SG_IO_FLAGS */
+} i2o_sg_io_hdr_t;
+
 /**************************************************************************
  * HRT related constants and structures
  **************************************************************************/
@@ -333,7 +336,7 @@ typedef struct _i2o_status_block {
 #define I2O_CLASS_ATE_PERIPHERAL               0x061
 #define I2O_CLASS_FLOPPY_CONTROLLER            0x070
 #define I2O_CLASS_FLOPPY_DEVICE                0x071
-#define I2O_CLASS_BUS_ADAPTER_PORT             0x080
+#define I2O_CLASS_BUS_ADAPTER                  0x080
 #define I2O_CLASS_PEER_TRANSPORT_AGENT         0x090
 #define I2O_CLASS_PEER_TRANSPORT               0x091
 #define        I2O_CLASS_END                           0xfff
@@ -399,4 +402,26 @@ typedef struct _i2o_status_block {
 #define ADAPTER_STATE_FAILED                   0x10
 #define ADAPTER_STATE_FAULTED                  0x11
 
+/*
+ *     Software module types
+ */
+#define I2O_SOFTWARE_MODULE_IRTOS              0x11
+#define I2O_SOFTWARE_MODULE_IOP_PRIVATE                0x22
+#define I2O_SOFTWARE_MODULE_IOP_CONFIG         0x23
+
+/*
+ *     Vendors
+ */
+#define I2O_VENDOR_DPT                         0x001b
+
+/*
+ * DPT / Adaptec specific values for i2o_sg_io_hdr flags.
+ */
+#define I2O_DPT_SG_FLAG_INTERPRET              0x00010000
+#define I2O_DPT_SG_FLAG_PHYSICAL               0x00020000
+
+#define I2O_DPT_FLASH_FRAG_SIZE                        0x10000
+#define I2O_DPT_FLASH_READ                     0x0101
+#define I2O_DPT_FLASH_WRITE                    0x0102
+
 #endif                         /* _I2O_DEV_H */