Fix at2_entry_t to reflect what the firmware actually writes (instead
of just deriving from SCSI at_entry_t). In this case, there is no 'suggested sense' for FC cards.
This commit is contained in:
parent
be15bfc091
commit
b0a3ba7e28
@ -1149,13 +1149,10 @@ isp_handle_platform_atio2(struct ispsoftc *isp, at2_entry_t *aep)
|
||||
((fcparam *)isp->isp_param)->isp_loopid;
|
||||
atiop->ccb_h.target_lun = lun;
|
||||
}
|
||||
if (aep->at_status & QLTM_SVALID) {
|
||||
size_t amt = imin(QLTM_SENSELEN, sizeof (atiop->sense_data));
|
||||
atiop->sense_len = amt;
|
||||
MEMCPY(&atiop->sense_data, aep->at_sense, amt);
|
||||
} else {
|
||||
atiop->sense_len = 0;
|
||||
}
|
||||
/*
|
||||
* We don't get 'suggested' sense data as we do with SCSI cards.
|
||||
*/
|
||||
atiop->sense_len = 0;
|
||||
|
||||
atiop->init_id = aep->at_iid;
|
||||
atiop->cdb_len = ATIO2_CDBLEN;
|
||||
|
@ -262,9 +262,8 @@ typedef struct {
|
||||
u_int8_t at_cdb[ATIO2_CDBLEN]; /* received CDB */
|
||||
u_int32_t at_datalen; /* allocated data len */
|
||||
u_int16_t at_scclun; /* SCC Lun or reserved */
|
||||
u_int16_t at_reserved2;
|
||||
u_int16_t at_scsi_status;
|
||||
u_int8_t at_sense[QLTM_SENSELEN];
|
||||
u_int16_t at_reserved2[10];
|
||||
u_int16_t at_oxid;
|
||||
} at2_entry_t;
|
||||
|
||||
#define ATIO2_WWPN_OFFSET 0x2A
|
||||
|
Loading…
Reference in New Issue
Block a user