aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptscsih.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index ff83e21e1000..a2183103b8c3 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -2786,50 +2786,6 @@ mptscsih_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target,
2786/* 2786/*
2787 * SCSI Config Page functionality ... 2787 * SCSI Config Page functionality ...
2788 */ 2788 */
2789/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
2790/* mptscsih_setDevicePage1Flags - add Requested and Configuration fields flags
2791 * based on width, factor and offset parameters.
2792 * @width: bus width
2793 * @factor: sync factor
2794 * @offset: sync offset
2795 * @requestedPtr: pointer to requested values (updated)
2796 * @configurationPtr: pointer to configuration values (updated)
2797 * @flags: flags to block WDTR or SDTR negotiation
2798 *
2799 * Return: None.
2800 *
2801 * Remark: Called by writeSDP1 and _dv_params
2802 */
2803static void
2804mptscsih_setDevicePage1Flags (u8 width, u8 factor, u8 offset, int *requestedPtr, int *configurationPtr, u8 flags)
2805{
2806 u8 nowide = flags & MPT_TARGET_NO_NEGO_WIDE;
2807 u8 nosync = flags & MPT_TARGET_NO_NEGO_SYNC;
2808
2809 *configurationPtr = 0;
2810 *requestedPtr = width ? MPI_SCSIDEVPAGE1_RP_WIDE : 0;
2811 *requestedPtr |= (offset << 16) | (factor << 8);
2812
2813 if (width && offset && !nowide && !nosync) {
2814 if (factor < MPT_ULTRA160) {
2815 *requestedPtr |= (MPI_SCSIDEVPAGE1_RP_IU + MPI_SCSIDEVPAGE1_RP_DT);
2816 if ((flags & MPT_TARGET_NO_NEGO_QAS) == 0)
2817 *requestedPtr |= MPI_SCSIDEVPAGE1_RP_QAS;
2818 if (flags & MPT_TAPE_NEGO_IDP)
2819 *requestedPtr |= 0x08000000;
2820 } else if (factor < MPT_ULTRA2) {
2821 *requestedPtr |= MPI_SCSIDEVPAGE1_RP_DT;
2822 }
2823 }
2824
2825 if (nowide)
2826 *configurationPtr |= MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED;
2827
2828 if (nosync)
2829 *configurationPtr |= MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED;
2830
2831 return;
2832}
2833 2789
2834/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2790/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
2835/* mptscsih_writeIOCPage4 - write IOC Page 4 2791/* mptscsih_writeIOCPage4 - write IOC Page 4