aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_bsg.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2011-06-24 23:27:13 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-06-29 18:23:29 -0400
commit5a54b1d576d1880eb249e906e0c8e2ffe64506d3 (patch)
tree642890240be4d1fed626ff591296f7cb59338132 /drivers/scsi/bfa/bfad_bsg.h
parent51e569aa1f0c10bd71af05e76e4ba0e42c51e4ab (diff)
[SCSI] bfa: Added support for flash configuration
- Added flash sub-module. - Implemented the interface to read/erase/update flash partition. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad_bsg.h')
-rw-r--r--drivers/scsi/bfa/bfad_bsg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.h b/drivers/scsi/bfa/bfad_bsg.h
index faafd35f88ae..6bece6c1d876 100644
--- a/drivers/scsi/bfa/bfad_bsg.h
+++ b/drivers/scsi/bfa/bfad_bsg.h
@@ -67,6 +67,10 @@ enum {
67 IOCMD_CEE_RESET_STATS, 67 IOCMD_CEE_RESET_STATS,
68 IOCMD_SFP_MEDIA, 68 IOCMD_SFP_MEDIA,
69 IOCMD_SFP_SPEED, 69 IOCMD_SFP_SPEED,
70 IOCMD_FLASH_GET_ATTR,
71 IOCMD_FLASH_ERASE_PART,
72 IOCMD_FLASH_UPDATE_PART,
73 IOCMD_FLASH_READ_PART,
70}; 74};
71 75
72struct bfa_bsg_gen_s { 76struct bfa_bsg_gen_s {
@@ -336,6 +340,23 @@ struct bfa_bsg_sfp_speed_s {
336 enum bfa_port_speed speed; 340 enum bfa_port_speed speed;
337}; 341};
338 342
343struct bfa_bsg_flash_attr_s {
344 bfa_status_t status;
345 u16 bfad_num;
346 u16 rsvd;
347 struct bfa_flash_attr_s attr;
348};
349
350struct bfa_bsg_flash_s {
351 bfa_status_t status;
352 u16 bfad_num;
353 u8 instance;
354 u8 rsvd;
355 enum bfa_flash_part_type type;
356 int bufsz;
357 u64 buf_ptr;
358};
359
339struct bfa_bsg_fcpt_s { 360struct bfa_bsg_fcpt_s {
340 bfa_status_t status; 361 bfa_status_t status;
341 u16 vf_id; 362 u16 vf_id;