diff options
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_seq.c')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_seq.c | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c index c750fbf7013b..f4272ac4c685 100644 --- a/drivers/scsi/aic94xx/aic94xx_seq.c +++ b/drivers/scsi/aic94xx/aic94xx_seq.c | |||
@@ -60,7 +60,7 @@ static u16 last_scb_site_no; | |||
60 | * | 60 | * |
61 | * Return 0 on success, negative on failure. | 61 | * Return 0 on success, negative on failure. |
62 | */ | 62 | */ |
63 | int asd_pause_cseq(struct asd_ha_struct *asd_ha) | 63 | static int asd_pause_cseq(struct asd_ha_struct *asd_ha) |
64 | { | 64 | { |
65 | int count = PAUSE_TRIES; | 65 | int count = PAUSE_TRIES; |
66 | u32 arp2ctl; | 66 | u32 arp2ctl; |
@@ -87,7 +87,7 @@ int asd_pause_cseq(struct asd_ha_struct *asd_ha) | |||
87 | * | 87 | * |
88 | * Return 0 on success, negative on error. | 88 | * Return 0 on success, negative on error. |
89 | */ | 89 | */ |
90 | int asd_unpause_cseq(struct asd_ha_struct *asd_ha) | 90 | static int asd_unpause_cseq(struct asd_ha_struct *asd_ha) |
91 | { | 91 | { |
92 | u32 arp2ctl; | 92 | u32 arp2ctl; |
93 | int count = PAUSE_TRIES; | 93 | int count = PAUSE_TRIES; |
@@ -115,7 +115,7 @@ int asd_unpause_cseq(struct asd_ha_struct *asd_ha) | |||
115 | * | 115 | * |
116 | * Return 0 on success, negative on error. | 116 | * Return 0 on success, negative on error. |
117 | */ | 117 | */ |
118 | static inline int asd_seq_pause_lseq(struct asd_ha_struct *asd_ha, int lseq) | 118 | static int asd_seq_pause_lseq(struct asd_ha_struct *asd_ha, int lseq) |
119 | { | 119 | { |
120 | u32 arp2ctl; | 120 | u32 arp2ctl; |
121 | int count = PAUSE_TRIES; | 121 | int count = PAUSE_TRIES; |
@@ -143,7 +143,7 @@ static inline int asd_seq_pause_lseq(struct asd_ha_struct *asd_ha, int lseq) | |||
143 | * | 143 | * |
144 | * Return 0 on success, negative on failure. | 144 | * Return 0 on success, negative on failure. |
145 | */ | 145 | */ |
146 | int asd_pause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask) | 146 | static int asd_pause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask) |
147 | { | 147 | { |
148 | int lseq; | 148 | int lseq; |
149 | int err = 0; | 149 | int err = 0; |
@@ -164,7 +164,7 @@ int asd_pause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask) | |||
164 | * | 164 | * |
165 | * Return 0 on success, negative on error. | 165 | * Return 0 on success, negative on error. |
166 | */ | 166 | */ |
167 | static inline int asd_seq_unpause_lseq(struct asd_ha_struct *asd_ha, int lseq) | 167 | static int asd_seq_unpause_lseq(struct asd_ha_struct *asd_ha, int lseq) |
168 | { | 168 | { |
169 | u32 arp2ctl; | 169 | u32 arp2ctl; |
170 | int count = PAUSE_TRIES; | 170 | int count = PAUSE_TRIES; |
@@ -186,27 +186,6 @@ static inline int asd_seq_unpause_lseq(struct asd_ha_struct *asd_ha, int lseq) | |||
186 | } | 186 | } |
187 | 187 | ||
188 | 188 | ||
189 | /** | ||
190 | * asd_unpause_lseq - unpause the link sequencer(s) | ||
191 | * @asd_ha: pointer to host adapter structure | ||
192 | * @lseq_mask: mask of link sequencers of interest | ||
193 | * | ||
194 | * Return 0 on success, negative on failure. | ||
195 | */ | ||
196 | int asd_unpause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask) | ||
197 | { | ||
198 | int lseq; | ||
199 | int err = 0; | ||
200 | |||
201 | for_each_sequencer(lseq_mask, lseq_mask, lseq) { | ||
202 | err = asd_seq_unpause_lseq(asd_ha, lseq); | ||
203 | if (err) | ||
204 | return err; | ||
205 | } | ||
206 | |||
207 | return err; | ||
208 | } | ||
209 | |||
210 | /* ---------- Downloading CSEQ/LSEQ microcode ---------- */ | 189 | /* ---------- Downloading CSEQ/LSEQ microcode ---------- */ |
211 | 190 | ||
212 | static int asd_verify_cseq(struct asd_ha_struct *asd_ha, const u8 *_prog, | 191 | static int asd_verify_cseq(struct asd_ha_struct *asd_ha, const u8 *_prog, |