ioport = pCardInfo->si_baseaddr;
if (RD_HARPOON(ioport + hp_vendor_id_0) != ORION_VEND_0)
- return ((int)FAILURE);
+ return (int)FAILURE;
if ((RD_HARPOON(ioport + hp_vendor_id_1) != ORION_VEND_1))
- return ((int)FAILURE);
+ return (int)FAILURE;
if ((RD_HARPOON(ioport + hp_device_id_0) != ORION_DEV_0))
- return ((int)FAILURE);
+ return (int)FAILURE;
if ((RD_HARPOON(ioport + hp_device_id_1) != ORION_DEV_1))
- return ((int)FAILURE);
+ return (int)FAILURE;
if (RD_HARPOON(ioport + hp_rev_num) != 0x0f) {
device. */
if (RD_HARPOON(ioport + hp_sub_device_id_0) & 0x0f)
- return ((int)FAILURE);
+ return (int)FAILURE;
}
if (first_time) {
pCurrNvRam->niBaseAddr = ioport;
FPT_RNVRamData(pCurrNvRam);
} else
- return ((int)FAILURE);
+ return (int)FAILURE;
}
} else
pCurrNvRam = NULL;
pCardInfo->si_present = 0x01;
- return (0);
+ return 0;
}
/*---------------------------------------------------------------------
if (thisCard == MAX_CARDS) {
- return (FAILURE);
+ return FAILURE;
}
if (FPT_BL_Card[thisCard].ioPort == ioport) {
(unsigned char)(RD_HARPOON((ioport + hp_semaphore)) |
SCCB_MGR_PRESENT));
- return ((unsigned long)CurrCard);
+ return (unsigned long)CurrCard;
}
static void FlashPoint_ReleaseHostAdapter(unsigned long pCurrCard)
static unsigned char FPT_RdStack(unsigned long portBase, unsigned char index)
{
WR_HARPOON(portBase + hp_stack_addr, index);
- return (RD_HARPOON(portBase + hp_stack_data));
+ return RD_HARPOON(portBase + hp_stack_data);
}
static void FPT_WrStack(unsigned long portBase, unsigned char index,
static unsigned char FPT_ChkIfChipInitialized(unsigned long ioPort)
{
if ((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4))
- return (0);
+ return 0;
if ((RD_HARPOON(ioPort + hp_clkctrl_0) & CLKCTRL_DEFAULT)
!= CLKCTRL_DEFAULT)
- return (0);
+ return 0;
if ((RD_HARPOON(ioPort + hp_seltimeout) == TO_250ms) ||
(RD_HARPOON(ioPort + hp_seltimeout) == TO_290ms))
- return (1);
- return (0);
+ return 1;
+ return 0;
}
callback = p_Sccb->SccbCallback;
callback(p_Sccb);
- return (0);
+ return 0;
}
else {
if (((struct sccb_card *)pCurrCard)->currentSCCB ==
p_Sccb) {
p_Sccb->SccbStatus = SCCB_ABORT;
- return (0);
+ return 0;
}
}
}
MENABLE_INT(ioport);
- return (0);
+ return 0;
} else {
currTar_Info =
&FPT_sccbMgrTbl[thisCard][p_Sccb->
LunDiscQ_Idx[p_Sccb->Lun]]
== p_Sccb) {
p_Sccb->SccbStatus = SCCB_ABORT;
- return (0);
+ return 0;
}
}
}
}
}
- return (-1);
+ return -1;
}
/*---------------------------------------------------------------------
ioport = ((struct sccb_card *)pCurrCard)->ioPort;
if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) {
- return (1);
+ return 1;
}
else
- return (0);
+ return 0;
}
/*---------------------------------------------------------------------
if (result) {
MENABLE_INT(ioport);
- return (result);
+ return result;
}
}
MENABLE_INT(ioport);
- return (0);
+ return 0;
}
/*---------------------------------------------------------------------
FPT_scini(p_card, pCurrCard->ourId, 0);
- return (0xFF);
+ return 0xFF;
}
else if (p_int & FIFO) {
WRW_HARPOON((p_port + hp_intstat), SCAM_SEL);
}
- return (0x00);
+ return 0x00;
}
/*---------------------------------------------------------------------
}
if (TimeOutLoop > 20000) {
WRW_HARPOON((port + hp_intstat), PARITY);
- return (message);
+ return message;
}
if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) !=
S_MSGI_PH) {
WRW_HARPOON((port + hp_intstat), PARITY);
- return (message);
+ return message;
}
WR_HARPOON(port + hp_portctrl_0, SCSI_PORT);
WR_HARPOON(port + hp_xferstat, 0);
WR_HARPOON(port + hp_fiforead, 0);
WR_HARPOON(port + hp_fifowrite, 0);
- return (message);
+ return message;
}
/*---------------------------------------------------------------------
(AUTO_IMMED + CMD_ONLY_STRT));
}
- return (1);
+ return 1;
}
else {
currTar_Info->TarStatus |= (unsigned char)SYNC_SUPPORTED;
currTar_Info->TarEEValue &= ~EE_SYNC_MASK;
- return (0);
+ return 0;
}
}
~(unsigned char)TAR_WIDE_MASK) |
(unsigned char)WIDE_ENABLED);
- return (1);
+ return 1;
}
else {
WIDE_NEGOCIATED);
currTar_Info->TarEEValue &= ~EE_WIDE_SCSI;
- return (0);
+ return 0;
}
}
RD_HARPOON(p_port + hp_int_status); /*Clear command complete */
if (RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) {
- return (1);
+ return 1;
}
else {
- return (0);
+ return 0;
}
}
}
if (RD_HARPOON(p_port + hp_scsisig) & SCSI_SEL)
- return (0);
+ return 0;
if (RD_HARPOON(p_port + hp_scsidata_0) != 00)
- return (0);
+ return 0;
WR_HARPOON(p_port + hp_scsisig,
(RD_HARPOON(p_port + hp_scsisig) | SCSI_BSY));
WR_HARPOON(p_port + hp_scsisig,
(RD_HARPOON(p_port + hp_scsisig) &
~SCSI_BSY));
- return (0);
+ return 0;
}
WR_HARPOON(p_port + hp_scsisig,
WR_HARPOON(p_port + hp_scsisig,
(RD_HARPOON(p_port + hp_scsisig) &
~(SCSI_BSY | SCSI_SEL)));
- return (0);
+ return 0;
}
}
FPT_Wait(p_port, TO_250ms);
- return (1);
+ return 1;
}
/*---------------------------------------------------------------------
FPT_scwirod(p_port, BIT(6)); /*Wait for DB6 to be released. */
- return (ret_data);
+ return ret_data;
}
/*---------------------------------------------------------------------
}
if ((ret_data & 0x1C) == 0x10)
- return (0x00); /*End of isolation stage, we won! */
+ return 0x00; /*End of isolation stage, we won! */
if (ret_data & 0x1C)
- return (0xFF);
+ return 0xFF;
if ((defer) && (!(ret_data & 0x1F)))
- return (0x01); /*End of isolation stage, we lost. */
+ return 0x01; /*End of isolation stage, we lost. */
} /*bit loop */
} /*byte loop */
if (defer)
- return (0x01); /*We lost */
+ return 0x01; /*We lost */
else
- return (0); /*We WON! Yeeessss! */
+ return 0; /*We WON! Yeeessss! */
}
/*---------------------------------------------------------------------
ret_data = FPT_scxferc(p_port, 0);
if (ret_data & 0xFC)
- return (0xFF);
+ return 0xFF;
else {
}
*/
if (byte_cnt)
- return (0x00);
+ return 0x00;
else
- return (0xFF);
+ return 0xFF;
}
} /*bit loop */
} /*byte loop */
- return (0);
+ return 0;
}
/*---------------------------------------------------------------------
}
if (p_quintet & 0x18)
- return (0);
+ return 0;
else
- return (1);
+ return 1;
}
/*---------------------------------------------------------------------
(RD_HARPOON(p_port + hp_page_ctrl) &
~G_INT_DISABLE));
- return (0); /*No legacy device */
+ return 0; /*No legacy device */
}
else {
(RD_HARPOON(p_port + hp_page_ctrl) &
~G_INT_DISABLE));
- return (1); /*Found one of them oldies! */
+ return 1; /*Found one of them oldies! */
}
}
if (match) {
FPT_scamInfo[i].state = ID_ASSIGNED;
- return (i);
+ return i;
}
}
if (FPT_BL_Card[p_card].pNvRamInfo == NULL)
FPT_BL_Card[p_card].globalFlags |=
F_UPDATE_EEPROM;
- return (match);
+ return match;
}
}
if (p_id_string[0] & BIT(7)) {
- return (CLR_PRIORITY);
+ return CLR_PRIORITY;
}
if (p_id_string[0] & BIT(5))
if (FPT_BL_Card[p_card].pNvRamInfo == NULL)
FPT_BL_Card[p_card].globalFlags |=
F_UPDATE_EEPROM;
- return (match);
+ return match;
}
}
}
- return (NO_ID_AVAIL);
+ return NO_ID_AVAIL;
}
/*---------------------------------------------------------------------
currTar_Info->TarSelQ_Cnt--;
- return (1);
+ return 1;
}
else {
}
}
- return (0);
+ return 0;
}
ee_data2 = FPT_utilEEReadOrg(p_port, ee_addr);
if (ee_data1 == ee_data2)
- return (ee_data1);
+ return ee_data1;
ee_data1 = ee_data2;
i++;
} while (i < 4);
- return (ee_data1);
+ return ee_data1;
}
/*---------------------------------------------------------------------
WR_HARPOON(p_port + hp_ee_ctrl, (ee_value | SEE_MS)); /*Turn off CS */
WR_HARPOON(p_port + hp_ee_ctrl, ee_value); /*Turn off Master Select */
- return (ee_data);
+ return ee_data;
}
/*---------------------------------------------------------------------
ch >>= 1;
}
}
- return (crc);
+ return crc;
}
static unsigned char FPT_CalcLrc(unsigned char buffer[])
lrc = 0;
for (i = 0; i < ID_STRING_LENGTH; i++)
lrc ^= buffer[i];
- return (lrc);
+ return lrc;
}
/*