--- Gnu-Mach/linux/src/drivers/scsi/FlashPoint.c 2020/09/02 04:41:40 1.1 +++ Gnu-Mach/linux/src/drivers/scsi/FlashPoint.c 2020/09/02 04:48:57 1.1.1.2 @@ -163,9 +163,9 @@ * * Description: Common shared global defines. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ #ifndef __GLOBALS_H__ @@ -402,9 +402,9 @@ extern void OS_OutPortLong(unsigned * Description: Common shared SCCB Interface defines and SCCB * Manager specifics defines. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -720,9 +720,9 @@ typedef struct _SCCB { * Description: This module contains SCCB/UCB Manager implementation * specific stuff. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -877,9 +877,9 @@ typedef struct _SCCB { * * Description: Definitions for Target related structures * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -1076,9 +1076,9 @@ typedef struct SCCBscam_info { * * Description: Register definitions for HARPOON ASIC. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -1208,9 +1208,9 @@ typedef struct SCCBscam_info { * * Description: Definitions for EEPROM related structures * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -1293,9 +1293,9 @@ typedef struct SCCBscam_info { * * Description: Register definitions for HARPOON ASIC. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -2326,7 +2326,6 @@ void Debug_Load(UCHAR p_card, UCHAR p_bu extern unsigned int SccbGlobalFlags; -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" /*---------------------------------------------------------------------- * * @@ -2340,9 +2339,9 @@ extern unsigned int SccbGlobalFlags; * Description: Functions relating to handling of the SCCB interface * between the device driver and the HARPOON. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -3757,17 +3756,17 @@ STATIC int SetDevSyncRate(PSCCBcard pCur } if(currTar_Info->TarEEValue && EE_SYNC_MASK == syncVal) return(0); - currTar_Info->TarEEValue = (currTar_Info->TarEEValue & !EE_SYNC_MASK) + currTar_Info->TarEEValue = (!(EE_SYNC_MASK & currTar_Info->TarEEValue)) | syncVal; syncOffset = (SYNC_RATE_TBL + scsiID) / 2; temp2.tempw = utilEERead(ioPort, syncOffset); if(scsiID & 0x01) { - temp2.tempb[0] = (temp2.tempb[0] & !EE_SYNC_MASK) | syncVal; + temp2.tempb[0] = (!(EE_SYNC_MASK & temp2.tempb[0])) | syncVal; } else { - temp2.tempb[1] = (temp2.tempb[1] & !EE_SYNC_MASK) | syncVal; + temp2.tempb[1] = (!(EE_SYNC_MASK & temp2.tempb[1])) | syncVal; } utilEEWriteOnOff(ioPort, 1); utilEEWrite(ioPort, temp2.tempw, syncOffset); @@ -3846,7 +3845,7 @@ int SetDevWideMode(PSCCBcard pCurrCard,P } else { - if(!currTar_Info->TarEEValue & EE_WIDE_SCSI) + if(!(currTar_Info->TarEEValue & EE_WIDE_SCSI)) { return(0); } @@ -3855,18 +3854,18 @@ int SetDevWideMode(PSCCBcard pCurrCard,P scsiWideMode = 0; } } - currTar_Info->TarEEValue = (currTar_Info->TarEEValue & !EE_WIDE_SCSI) + currTar_Info->TarEEValue = (!(EE_WIDE_SCSI & currTar_Info->TarEEValue)) | scsiWideMode; syncOffset = (SYNC_RATE_TBL + scsiID) / 2; temp2.tempw = utilEERead(ioPort, syncOffset); if(scsiID & 0x01) { - temp2.tempb[0] = (temp2.tempb[0] & !EE_WIDE_SCSI) | scsiWideMode; + temp2.tempb[0] = (!(EE_WIDE_SCSI & temp2.tempb[0])) | scsiWideMode; } else { - temp2.tempb[1] = (temp2.tempb[1] & !EE_WIDE_SCSI) | scsiWideMode; + temp2.tempb[1] = (!(EE_WIDE_SCSI & temp2.tempb[1])) | scsiWideMode; } utilEEWriteOnOff(ioPort, 1); utilEEWrite(ioPort, temp2.tempw, syncOffset); @@ -5352,7 +5351,7 @@ void Debug_Load(UCHAR p_card, UCHAR p_bu } #endif -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -5366,9 +5365,9 @@ void Debug_Load(UCHAR p_card, UCHAR p_bu * Description: Functions relating to handling of the SCCB interface * between the device driver and the HARPOON. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -5424,7 +5423,7 @@ UCHAR debug_int[MAX_CARDS][debug_size UCHAR debug_index[MAX_CARDS] = { 0 }; UCHAR reserved_1[3] = { 0 }; #endif -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -5439,9 +5438,9 @@ UCHAR reserved_1[3] = { 0 }; * selection/reselection, sync negotiation, message-in * decoding. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -7518,7 +7517,6 @@ void sinits(PSCCB p_sccb, UCHAR p_card) } -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" /*---------------------------------------------------------------------- * * @@ -7533,9 +7531,9 @@ void sinits(PSCCB p_sccb, UCHAR p_card) * the target asserts request (and the automation is not * enabled to handle the situation). * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -8267,7 +8265,6 @@ void phaseBusFree(ULONG port, UCHAR p_ca -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" /*---------------------------------------------------------------------- * * @@ -8281,9 +8278,9 @@ void phaseBusFree(ULONG port, UCHAR p_ca * Description: Functions relating to programming the automation of * the HARPOON. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -8659,7 +8656,7 @@ void autoCmdCmplt(ULONG p_port, UCHAR p_ queueCmdComplete(&BL_Card[p_card], currSCCB, p_card); } -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -8672,9 +8669,9 @@ void autoCmdCmplt(ULONG p_port, UCHAR p_ * * Description: Functions to start, stop, and abort BusMaster operations. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -9351,7 +9348,7 @@ void hostDataXferRestart(PSCCB currSCCB) currSCCB->Sccb_XferCnt = currSCCB->DataLength - currSCCB->Sccb_ATC; } } -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -9366,9 +9363,9 @@ void hostDataXferRestart(PSCCB currSCCB) * and the determination of the SCSI IDs to be assigned * to all perspective SCSI targets. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -10581,7 +10578,7 @@ void scsavdi(UCHAR p_card, ULONG p_port) utilEEWrite(p_port, sum_data, EEPROM_CHECK_SUM/2); utilEEWriteOnOff(p_port,0); /* Turn off write access */ } -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -10595,9 +10592,9 @@ void scsavdi(UCHAR p_card, ULONG p_port) * Description: Diagnostic funtions for testing the integrity of * the HARPOON. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ @@ -11026,7 +11023,7 @@ void DiagEEPROM(ULONG p_port) } -#ident "$Id: FlashPoint.c,v 1.1 2020/09/02 04:41:40 root Exp $" + /*---------------------------------------------------------------------- * * @@ -11040,9 +11037,9 @@ void DiagEEPROM(ULONG p_port) * Description: Utility functions relating to queueing and EEPROM * manipulation and any other garbage functions. * - * $Date: 2020/09/02 04:41:40 $ + * $Date: 2020/09/02 04:48:57 $ * - * $Revision: 1.1 $ + * $Revision: 1.1.1.2 $ * *----------------------------------------------------------------------*/ /*#include */