aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_bsg.h
diff options
context:
space:
mode:
authorJoe Carnuccio <joe.carnuccio@qlogic.com>2012-08-22 14:20:56 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-14 13:28:45 -0400
commit9ebb5d9c69f1f5721f9f6f49e501c674c1e184ae (patch)
treec08ecb3ae2b128bbb5996b651623366ad6756c66 /drivers/scsi/qla2xxx/qla_bsg.h
parent650f528f3581344df96f9b372a7c803919aa7d6f (diff)
[SCSI] qla2xxx: Add I2C BSG interface.
Add BSG interface to generically access I2C attached devices. Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_bsg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.h b/drivers/scsi/qla2xxx/qla_bsg.h
index 70caa63a8930..1a0ab375ce43 100644
--- a/drivers/scsi/qla2xxx/qla_bsg.h
+++ b/drivers/scsi/qla2xxx/qla_bsg.h
@@ -19,6 +19,8 @@
19#define QL_VND_SET_FRU_VERSION 0x0B 19#define QL_VND_SET_FRU_VERSION 0x0B
20#define QL_VND_READ_FRU_STATUS 0x0C 20#define QL_VND_READ_FRU_STATUS 0x0C
21#define QL_VND_WRITE_FRU_STATUS 0x0D 21#define QL_VND_WRITE_FRU_STATUS 0x0D
22#define QL_VND_WRITE_I2C 0x10
23#define QL_VND_READ_I2C 0x11
22 24
23/* BSG Vendor specific subcode returns */ 25/* BSG Vendor specific subcode returns */
24#define EXT_STATUS_OK 0 26#define EXT_STATUS_OK 0
@@ -183,4 +185,12 @@ struct qla_status_reg {
183 uint8_t reserved[7]; 185 uint8_t reserved[7];
184} __packed; 186} __packed;
185 187
188struct qla_i2c_access {
189 uint16_t device;
190 uint16_t offset;
191 uint16_t option;
192 uint16_t length;
193 uint8_t buffer[0x40];
194} __packed;
195
186#endif 196#endif