unsigned char TarLUNBusy[MAX_LUN];
};
-typedef struct NVRAMInfo {
+struct nvram_info {
unsigned char niModel; /* Model No. of card */
unsigned char niCardNo; /* Card no. */
unsigned long niBaseAddr; /* Port Address of card */
unsigned char niAdapId; /* Host Adapter ID - Byte 24 of eerpom map */
unsigned char niSyncTbl[MAX_SCSI_TAR / 2]; /* Sync/Wide byte of targets */
unsigned char niScamTbl[MAX_SCSI_TAR][4]; /* Compressed Scam name string of Targets */
-}NVRAMINFO;
+};
-typedef NVRAMINFO *PNVRamInfo;
#define MODEL_LT 1
#define MODEL_DL 2
unsigned char scanIndex;
unsigned char globalFlags;
unsigned char ourId;
- PNVRamInfo pNvRamInfo;
+ struct nvram_info * pNvRamInfo;
struct sccb * discQ_Tbl[QUEUE_DEPTH];
}SCCBCARD;
unsigned char error_code);
static void FPT_sinits(struct sccb * p_sccb, unsigned char p_card);
-static void FPT_RNVRamData(PNVRamInfo pNvRamInfo);
+static void FPT_RNVRamData(struct nvram_info * pNvRamInfo);
static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card);
static void FPT_stwidn(unsigned long port, unsigned char p_card);
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 } };
+static struct nvram_info FPT_nvRamInfo[MAX_MB_CARDS] = { { 0 } };
static unsigned char FPT_mbCards = 0;
unsigned char i,j,id,ScamFlg;
unsigned short temp,temp2,temp3,temp4,temp5,temp6;
unsigned long ioport;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
ioport = pCardInfo->si_baseaddr;
static unsigned long FlashPoint_HardwareResetHostAdapter(struct sccb_mgr_info * pCardInfo)
{
PSCCBcard CurrCard = NULL;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
unsigned char i,j,thisCard, ScamFlg;
unsigned short temp,sync_bit_map,id;
unsigned long ioport;
unsigned long regOffset;
unsigned long scamData;
unsigned long *pScamTbl;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
pCurrNvRam = ((PSCCBcard)pCurrCard)->pNvRamInfo;
}
-static void FPT_RNVRamData(PNVRamInfo pNvRamInfo)
+static void FPT_RNVRamData(struct nvram_info * pNvRamInfo)
{
unsigned char i;
unsigned long portBase;
{
unsigned char temp, ScamFlg;
struct sccb_mgr_tar_info * currTar_Info;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
if (RD_HARPOON(p_port+hp_ext_status) &
unsigned char i,k,ScamFlg ;
PSCCBcard currCard;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
currCard = &FPT_BL_Card[p_card];
p_port = currCard->ioPort;
unsigned char i,k,scam_id;
unsigned char crcBytes[3];
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
unsigned short * pCrcBytes;
pCurrNvRam = FPT_BL_Card[p_card].pNvRamInfo;
{
unsigned char i,k,max_id;
unsigned short ee_data;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
pCurrNvRam = FPT_BL_Card[p_card].pNvRamInfo;