Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22631
b: refs/heads/master
c: ce313db
h: refs/heads/master
i:
  22629: 1eb4f50
  22627: 55bc37a
  22623: 45d3aed
v: v3
  • Loading branch information
James Bottomley committed Mar 12, 2006
1 parent 1c9ead6 commit 535893a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 45 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: 597705aa7fbf3e600283f4a870fb700385eacb13
refs/heads/master: ce313db240862d809c736c5b1dfc759817fc7ca9
44 changes: 0 additions & 44 deletions trunk/drivers/message/fusion/mptscsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -2786,50 +2786,6 @@ mptscsih_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target,
/*
* SCSI Config Page functionality ...
*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/* mptscsih_setDevicePage1Flags - add Requested and Configuration fields flags
* based on width, factor and offset parameters.
* @width: bus width
* @factor: sync factor
* @offset: sync offset
* @requestedPtr: pointer to requested values (updated)
* @configurationPtr: pointer to configuration values (updated)
* @flags: flags to block WDTR or SDTR negotiation
*
* Return: None.
*
* Remark: Called by writeSDP1 and _dv_params
*/
static void
mptscsih_setDevicePage1Flags (u8 width, u8 factor, u8 offset, int *requestedPtr, int *configurationPtr, u8 flags)
{
u8 nowide = flags & MPT_TARGET_NO_NEGO_WIDE;
u8 nosync = flags & MPT_TARGET_NO_NEGO_SYNC;

*configurationPtr = 0;
*requestedPtr = width ? MPI_SCSIDEVPAGE1_RP_WIDE : 0;
*requestedPtr |= (offset << 16) | (factor << 8);

if (width && offset && !nowide && !nosync) {
if (factor < MPT_ULTRA160) {
*requestedPtr |= (MPI_SCSIDEVPAGE1_RP_IU + MPI_SCSIDEVPAGE1_RP_DT);
if ((flags & MPT_TARGET_NO_NEGO_QAS) == 0)
*requestedPtr |= MPI_SCSIDEVPAGE1_RP_QAS;
if (flags & MPT_TAPE_NEGO_IDP)
*requestedPtr |= 0x08000000;
} else if (factor < MPT_ULTRA2) {
*requestedPtr |= MPI_SCSIDEVPAGE1_RP_DT;
}
}

if (nowide)
*configurationPtr |= MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED;

if (nosync)
*configurationPtr |= MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED;

return;
}

/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/* mptscsih_writeIOCPage4 - write IOC Page 4
Expand Down

0 comments on commit 535893a

Please sign in to comment.