#define EE_WIDE_SCSI BIT(7)
-typedef struct SCCBMgr_tar_info *PSCCBMgr_tar_info;
-typedef struct SCCBMgr_tar_info {
+struct sccb_mgr_tar_info {
struct sccb * TarSelQ_Head;
struct sccb * TarSelQ_Tail;
unsigned char TarReserved[2]; /* for alignment */
unsigned char LunDiscQ_Idx[MAX_LUN];
unsigned char TarLUNBusy[MAX_LUN];
-} SCCBMGR_TAR_INFO;
+};
typedef struct NVRAMInfo {
unsigned char niModel; /* Model No. of card */
static void FPT_stsyncn(unsigned long port, unsigned char p_card);
static void FPT_sisyncr(unsigned long port,unsigned char sync_pulse, unsigned char offset);
static void FPT_sssyncv(unsigned long p_port, unsigned char p_id, unsigned char p_sync_value,
- PSCCBMgr_tar_info currTar_Info);
+ struct sccb_mgr_tar_info * currTar_Info);
static void FPT_sresb(unsigned long port, unsigned char p_card);
static void FPT_sxfrp(unsigned long p_port, unsigned char p_card);
static void FPT_schkdd(unsigned long port, unsigned char p_card);
-static SCCBMGR_TAR_INFO FPT_sccbMgrTbl[MAX_CARDS][MAX_SCSI_TAR] = { { { 0 } } };
+static struct sccb_mgr_tar_info FPT_sccbMgrTbl[MAX_CARDS][MAX_SCSI_TAR] = { { { 0 } } };
static SCCBCARD FPT_BL_Card[MAX_CARDS] = { { 0 } };
static SCCBSCAM_INFO FPT_scamInfo[MAX_SCSI_TAR] = { { { 0 } } };
static NVRAMINFO FPT_nvRamInfo[MAX_MB_CARDS] = { { 0 } };
CALL_BK_FN callback;
unsigned char TID;
struct sccb * pSaveSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
ioport = ((PSCCBcard) pCurrCard)->ioPort;
PSCCBcard pCurrCard, unsigned short p_int)
{
unsigned char temp, ScamFlg;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
PNVRamInfo pCurrNvRam;
{
unsigned char lun, qtag;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currTar_Info = &FPT_sccbMgrTbl[p_card][target];
unsigned long cdb_reg;
PSCCBcard CurrCard;
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
unsigned char lastTag, lun;
CurrCard = &FPT_BL_Card[p_card];
unsigned char our_target, message, lun = 0, tag, msgRetryCount;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
struct sccb * currSCCB;
{
struct sccb * currSCCB;
PSCCBcard CurrCard;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
CurrCard = &FPT_BL_Card[p_card];
currSCCB = CurrCard->currentSCCB;
static unsigned char FPT_sisyncn(unsigned long port, unsigned char p_card, unsigned char syncFlag)
{
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID];
{
unsigned char sync_msg,offset,sync_reg,our_sync_msg;
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID];
static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card)
{
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID];
{
unsigned char width;
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID];
*
*---------------------------------------------------------------------*/
static void FPT_sssyncv(unsigned long p_port, unsigned char p_id, unsigned char p_sync_value,
- PSCCBMgr_tar_info currTar_Info)
+ struct sccb_mgr_tar_info * currTar_Info)
{
unsigned char index;
{
unsigned char scsiID, i;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
WR_HARPOON(port+hp_page_ctrl,
(RD_HARPOON(port+hp_page_ctrl) | G_INT_DISABLE));
static void FPT_sinits(struct sccb * p_sccb, unsigned char p_card)
{
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
if((p_sccb->TargID > MAX_SCSI_TAR) || (p_sccb->Lun > MAX_LUN))
{
{
unsigned char message,scsiID;
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
static void FPT_queueSearchSelect(PSCCBcard pCurrCard, unsigned char p_card)
{
unsigned char scan_ptr, lun;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
struct sccb * pOldSccb;
scan_ptr = pCurrCard->scanIndex;
static void FPT_queueSelectFail(PSCCBcard pCurrCard, unsigned char p_card)
{
unsigned char thisTarg;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
if (pCurrCard->currentSCCB != NULL)
{
unsigned char i, SCSIcmd;
CALL_BK_FN callback;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
SCSIcmd = p_sccb->Cdb[0];
*---------------------------------------------------------------------*/
static void FPT_queueDisconnect(struct sccb * p_sccb, unsigned char p_card)
{
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID];
{
unsigned char qtag,thisTarg;
struct sccb * currSCCB;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currSCCB = FPT_BL_Card[p_card].currentSCCB;
if(currSCCB != NULL)
unsigned char error_code)
{
unsigned char qtag;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currTar_Info = &FPT_sccbMgrTbl[p_card][thisTarg];
static void FPT_queueAddSccb(struct sccb * p_SCCB, unsigned char p_card)
{
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currTar_Info = &FPT_sccbMgrTbl[p_card][p_SCCB->TargID];
p_SCCB->Sccb_forwardlink = NULL;
static unsigned char FPT_queueFindSccb(struct sccb * p_SCCB, unsigned char p_card)
{
struct sccb * q_ptr;
- PSCCBMgr_tar_info currTar_Info;
+ struct sccb_mgr_tar_info * currTar_Info;
currTar_Info = &FPT_sccbMgrTbl[p_card][p_SCCB->TargID];