Eliminate random warnings.

This commit is contained in:
mycroft 1996-03-29 00:24:58 +00:00
parent 6424af4c10
commit fc8683fbaa
2 changed files with 6 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic7xxx.c,v 1.4 1996/03/28 22:39:08 mycroft Exp $ */
/* $NetBSD: aic7xxx.c,v 1.5 1996/03/29 00:24:58 mycroft Exp $ */
/*
* Generic driver for the aic7xxx based adaptec SCSI controllers
@ -62,13 +62,12 @@ void ahcminphys __P((struct buf *));
int ahc_poll __P((struct ahc_softc *, struct scsi_xfer *, int));
/* Different debugging levels */
#ifdef AHC_DEBUG
#define AHC_SHOWMISC 0x0001
#define AHC_SHOWCMDS 0x0002
#define AHC_SHOWSCBS 0x0004
/*#define AHC_DEBUG /**/
int ahc_debug = AHC_SHOWMISC;
/*#define AHC_MORE_DEBUG /**/
#endif
#ifdef AHC_MORE_DEBUG
#define DEBUGLEVEL -1
@ -628,7 +627,6 @@ ahc_scsirate(offset, period, ahc, target)
struct ahc_softc *ahc;
int target;
{
u_char scsirate;
int i;
for (i = 0; i < ahc_num_syncrates; i++) {
@ -773,7 +771,7 @@ ahcintr(ahc)
break;
case NO_IDENT:
panic("%s: No IDENTIFY message from reconnecting "
"target %d at seqaddr = 0x%lx "
"target %d at seqaddr = 0x%x "
"SAVED_TCL == 0x%x\n",
ahc->sc_dev.dv_xname,
(inb(SELID + iobase) >> 4) & 0xf,
@ -852,7 +850,7 @@ ahcintr(ahc)
*/
#ifdef AHC_DEBUG
if (ahc_debug & AHC_SHOWMISC)
printf("Sending SDTR!!\n");
printf("Sending SDTR!!\n");
#endif
outb(HA_RETURN_1 + iobase, SEND_SDTR);
}
@ -1023,7 +1021,6 @@ ahcintr(ahc)
if (xs->error == XS_NOERROR &&
scb->flags != SCB_CHKSENSE) {
u_char flags;
u_char head;
u_char tail;
struct ahc_dma_seg *sg = scb->ahc_dma;
@ -1394,7 +1391,6 @@ ahc_init(ahc)
ahc->sc_dev.dv_xname, sizeof(struct ahc_scb), SCB_DOWN_SIZE,
sizeof(struct ahc_dma_seg));
#endif /* AHC_DEBUG */
/*printf("%s: reading board settings\n", ahc->sc_dev.dv_xname);/**/
/* Save the IRQ type before we do a chip reset */

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic7xxxvar.h,v 1.2 1996/03/14 02:30:30 cgd Exp $ */
/* $NetBSD: aic7xxxvar.h,v 1.3 1996/03/29 00:25:02 mycroft Exp $ */
/*
* Interface to the generic driver for the aic7xxx based adaptec
@ -26,8 +26,6 @@
#ifndef _AIC7XXX_H_
#define _AIC7XXX_H_
/*#include "ahc.h" /* for NAHC from config */
#define AHC_NSEG 256 /* number of dma segments supported */
#define AHC_SCB_MAX 16 /*