From: Alexey Dobriyan <adobriyan@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH 12/15] FlashPoint: untypedef struct NVRAMInfo
Date: Wed, 06 Jul 2005 23:11:28 +0000 [thread overview]
Message-ID: <200507070311.29043.adobriyan@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4521 bytes --]
* struct NVRAMInfo => struct nvram_info
* PNVRamInfo => struct nvram_info *
* NVRAMINFO => struct nvram_info
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/scsi/FlashPoint.c | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
Index: linux-flashpoint/drivers/scsi/FlashPoint.c
===================================================================
--- linux-flashpoint.orig/drivers/scsi/FlashPoint.c 2005-07-07 00:03:53.000000000 +0400
+++ linux-flashpoint/drivers/scsi/FlashPoint.c 2005-07-07 00:15:12.000000000 +0400
@@ -285,7 +285,7 @@ struct sccb_mgr_tar_info {
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 */
@@ -295,9 +295,8 @@ typedef struct NVRAMInfo {
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
@@ -318,7 +317,7 @@ typedef struct SCCBcard {
unsigned char scanIndex;
unsigned char globalFlags;
unsigned char ourId;
- PNVRamInfo pNvRamInfo;
+ struct nvram_info * pNvRamInfo;
struct sccb * discQ_Tbl[QUEUE_DEPTH];
}SCCBCARD;
@@ -987,7 +986,7 @@ static void FPT_queueFlushTargSccb(unsi
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);
@@ -1083,7 +1082,7 @@ static void FPT_autoLoadDefaultMap(unsi
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;
@@ -1113,7 +1112,7 @@ static int FlashPoint_ProbeHostAdapter(s
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;
@@ -1387,7 +1386,7 @@ static int FlashPoint_ProbeHostAdapter(s
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;
@@ -1572,7 +1571,7 @@ static void FlashPoint_ReleaseHostAdapte
unsigned long regOffset;
unsigned long scamData;
unsigned long *pScamTbl;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
pCurrNvRam = ((PSCCBcard)pCurrCard)->pNvRamInfo;
@@ -1601,7 +1600,7 @@ static void FlashPoint_ReleaseHostAdapte
}
-static void FPT_RNVRamData(PNVRamInfo pNvRamInfo)
+static void FPT_RNVRamData(struct nvram_info * pNvRamInfo)
{
unsigned char i;
unsigned long portBase;
@@ -2161,7 +2160,7 @@ static unsigned char FPT_SccbMgr_bad_isr
{
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) &
@@ -5701,7 +5700,7 @@ static void FPT_scini(unsigned char p_ca
unsigned char i,k,ScamFlg ;
PSCCBcard currCard;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
currCard = &FPT_BL_Card[p_card];
p_port = currCard->ioPort;
@@ -5992,7 +5991,7 @@ static void FPT_scasid(unsigned char p_c
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;
@@ -6453,7 +6452,7 @@ static void FPT_inisci(unsigned char p_c
{
unsigned char i,k,max_id;
unsigned short ee_data;
- PNVRamInfo pCurrNvRam;
+ struct nvram_info * pCurrNvRam;
pCurrNvRam = FPT_BL_Card[p_card].pNvRamInfo;
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
reply other threads:[~2005-07-06 23:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507070311.29043.adobriyan@gmail.com \
--to=adobriyan@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.