patch-2.4.9 linux/drivers/scsi/aic7xxx/aic7770.c
Next file: linux/drivers/scsi/aic7xxx/aic7770_linux.c
Previous file: linux/drivers/scsi/aic7xxx/Makefile
Back to the patch index
Back to the overall index
- Lines: 102
- Date:
Sun Aug 12 17:37:53 2001
- Orig file:
v2.4.8/linux/drivers/scsi/aic7xxx/aic7770.c
- Orig date:
Fri May 4 15:16:28 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/scsi/aic7xxx/aic7770.c linux/drivers/scsi/aic7xxx/aic7770.c
@@ -15,7 +15,7 @@
* derived from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
- * GNU Public License ("GPL").
+ * GNU General Public License ("GPL").
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: //depot/src/aic7xxx/aic7770.c#11 $
+ * $Id: //depot/src/aic7xxx/aic7770.c#12 $
*
* $FreeBSD: src/sys/dev/aic7xxx/aic7770.c,v 1.1 2000/09/16 20:02:27 gibbs Exp $
*/
@@ -90,14 +90,12 @@
int
aic7770_config(struct ahc_softc *ahc, struct aic7770_identity *entry)
{
- struct ahc_probe_config probe_config;
int error;
u_int hostconf;
u_int irq;
u_int intdef;
- ahc_init_probe_config(&probe_config);
- error = entry->setup(ahc->dev_softc, &probe_config);
+ error = entry->setup(ahc);
if (error != 0)
return (error);
@@ -105,8 +103,8 @@
if (error != 0)
return (error);
- probe_config.description = entry->name;
- error = ahc_softc_init(ahc, &probe_config);
+ ahc->description = entry->name;
+ error = ahc_softc_init(ahc);
error = ahc_reset(ahc);
if (error != 0)
@@ -131,7 +129,7 @@
if ((intdef & EDGE_TRIG) != 0)
ahc->flags |= AHC_EDGE_INTERRUPT;
- switch (probe_config.chip & (AHC_EISA|AHC_VL)) {
+ switch (ahc->chip & (AHC_EISA|AHC_VL)) {
case AHC_EISA:
{
u_int biosctrl;
@@ -312,34 +310,33 @@
}
static int
-ahc_aic7770_VL_setup(ahc_dev_softc_t dev, struct ahc_probe_config *probe_config)
+ahc_aic7770_VL_setup(struct ahc_softc *ahc)
{
int error;
- error = ahc_aic7770_setup(dev, probe_config);
- probe_config->chip |= AHC_VL;
+ error = ahc_aic7770_setup(ahc);
+ ahc->chip |= AHC_VL;
return (error);
}
static int
-ahc_aic7770_EISA_setup(ahc_dev_softc_t dev,
- struct ahc_probe_config *probe_config)
+ahc_aic7770_EISA_setup(struct ahc_softc *ahc)
{
int error;
- error = ahc_aic7770_setup(dev, probe_config);
- probe_config->chip |= AHC_EISA;
+ error = ahc_aic7770_setup(ahc);
+ ahc->chip |= AHC_EISA;
return (error);
}
static int
-ahc_aic7770_setup(ahc_dev_softc_t dev, struct ahc_probe_config *probe_config)
+ahc_aic7770_setup(struct ahc_softc *ahc)
{
- probe_config->channel = 'A';
- probe_config->channel_b = 'B';
- probe_config->chip = AHC_AIC7770;
- probe_config->features = AHC_AIC7770_FE;
- probe_config->bugs |= AHC_TMODE_WIDEODD_BUG;
- probe_config->flags |= AHC_PAGESCBS;
+ ahc->channel = 'A';
+ ahc->channel_b = 'B';
+ ahc->chip = AHC_AIC7770;
+ ahc->features = AHC_AIC7770_FE;
+ ahc->bugs |= AHC_TMODE_WIDEODD_BUG;
+ ahc->flags |= AHC_PAGESCBS;
return (0);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)