Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189487
b: refs/heads/master
c: cad454b
h: refs/heads/master
i:
  189485: b076fff
  189483: 2e29d8c
  189479: 566f3bb
  189471: ab240d5
v: v3
  • Loading branch information
Santosh Vernekar authored and James Bottomley committed Mar 27, 2010
1 parent fd7051e commit b61356a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d88a714bfefa7aed7b9cb6c3721707fcd056b472
refs/heads/master: cad454b12a23c24fd7f409402cf51434655e76c1
18 changes: 15 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -1592,18 +1592,30 @@ struct nvram_81xx {

/* Offset 384. */
uint8_t reserved_21[16];
uint16_t reserved_22[8];
uint16_t reserved_22[3];

/*
* BIT 0 = Extended BB credits for LR
* BIT 1 = Virtual Fabric Enable
* BIT 2 = Enhanced Features Unused
* BIT 3-7 = Enhanced Features Reserved
*/
/* Enhanced Features */
uint8_t enhanced_features;

uint8_t reserved_23;
uint16_t reserved_24[4];

/* Offset 416. */
uint16_t reserved_23[32];
uint16_t reserved_25[32];

/* Offset 480. */
uint8_t model_name[16];

/* Offset 496. */
uint16_t feature_mask_l;
uint16_t feature_mask_h;
uint16_t reserved_24[2];
uint16_t reserved_26[2];

uint16_t subsystem_vendor_id;
uint16_t subsystem_device_id;
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/scsi/qla2xxx/qla_mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ qla2x00_load_ram(scsi_qla_host_t *vha, dma_addr_t req_dma, uint32_t risc_addr,
return rval;
}

#define EXTENDED_BB_CREDITS BIT_0
/*
* qla2x00_execute_fw
* Start adapter firmware.
Expand Down Expand Up @@ -371,7 +372,12 @@ qla2x00_execute_fw(scsi_qla_host_t *vha, uint32_t risc_addr)
mcp->mb[1] = MSW(risc_addr);
mcp->mb[2] = LSW(risc_addr);
mcp->mb[3] = 0;
mcp->mb[4] = 0;
if (IS_QLA81XX(ha)) {
struct nvram_81xx *nv = ha->nvram;
mcp->mb[4] = (nv->enhanced_features &
EXTENDED_BB_CREDITS);
} else
mcp->mb[4] = 0;
mcp->out_mb |= MBX_4|MBX_3|MBX_2|MBX_1;
mcp->in_mb |= MBX_1;
} else {
Expand Down

0 comments on commit b61356a

Please sign in to comment.