Quiet the ahc driver down a bit by only enabling some of less useful
messages #if defined(DEBUG) in the NetBSD case.
This commit is contained in:
parent
33dec3a69a
commit
c4366945e5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ahc_isa.c,v 1.1 1996/08/05 21:14:29 soda Exp $ */
|
||||
/* $NetBSD: ahc_isa.c,v 1.2 1996/08/28 23:47:27 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Product specific probe and attach routines for:
|
||||
|
@ -362,12 +362,14 @@ ahc_isa_attach(parent, self, aux)
|
|||
|
||||
ahc_construct(ahc, bc, ioh, type, AHC_FNONE);
|
||||
|
||||
#ifdef DEBUG
|
||||
/*
|
||||
* Tell the user what type of interrupts we're using.
|
||||
* usefull for debugging irq problems
|
||||
*/
|
||||
printf( "%s: Using %s Interrupts\n", ahc_name(ahc),
|
||||
ahc->pause & IRQMS ? "Level Sensitive" : "Edge Triggered");
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Now that we know we own the resources we need, do the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ahc_eisa.c,v 1.6 1996/08/05 21:18:56 soda Exp $ */
|
||||
/* $NetBSD: ahc_eisa.c,v 1.7 1996/08/28 23:46:18 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Product specific probe and attach routines for:
|
||||
|
@ -189,7 +189,15 @@ aic7770probe(void)
|
|||
|
||||
#elif defined(__NetBSD__)
|
||||
|
||||
/*
|
||||
* Under normal circumstances, these messages are unnecessary
|
||||
* and not terribly cosmetic.
|
||||
*/
|
||||
#ifdef DEBUG
|
||||
#define bootverbose 1
|
||||
#else
|
||||
#define bootverbose 0
|
||||
#endif
|
||||
|
||||
int ahc_eisa_irq __P((bus_chipset_tag_t, bus_io_handle_t));
|
||||
int ahc_eisa_match __P((struct device *, void *, void *));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aic7xxx.c,v 1.12 1996/08/28 19:00:58 cgd Exp $ */
|
||||
/* $NetBSD: aic7xxx.c,v 1.13 1996/08/28 23:39:40 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Generic driver for the aic7xxx based adaptec SCSI controllers
|
||||
|
@ -2057,9 +2057,11 @@ ahc_init(ahc)
|
|||
|
||||
if(scsi_conf & RESET_SCSI) {
|
||||
/* Reset the bus */
|
||||
#if !defined(__NetBSD__) || (defined(__NetBSD__) && defined(DEBUG))
|
||||
if(bootverbose)
|
||||
printf("%s: Reseting Channel B\n",
|
||||
ahc_name(ahc));
|
||||
#endif
|
||||
AHC_OUTB(ahc, SCSISEQ, SCSIRSTO);
|
||||
DELAY(1000);
|
||||
AHC_OUTB(ahc, SCSISEQ, 0);
|
||||
|
@ -2084,8 +2086,10 @@ ahc_init(ahc)
|
|||
|
||||
if(scsi_conf & RESET_SCSI) {
|
||||
/* Reset the bus */
|
||||
#if !defined(__NetBSD__) || (defined(__NetBSD__) && defined(DEBUG))
|
||||
if(bootverbose)
|
||||
printf("%s: Reseting Channel A\n", ahc_name(ahc));
|
||||
#endif
|
||||
|
||||
AHC_OUTB(ahc, SCSISEQ, SCSIRSTO);
|
||||
DELAY(1000);
|
||||
|
@ -2226,14 +2230,18 @@ ahc_init(ahc)
|
|||
* Load the Sequencer program and Enable the adapter
|
||||
* in "fast" mode.
|
||||
*/
|
||||
#if !defined(__NetBSD__) || (defined(__NetBSD__) && defined(DEBUG))
|
||||
if(bootverbose)
|
||||
printf("%s: Downloading Sequencer Program...",
|
||||
ahc_name(ahc));
|
||||
#endif
|
||||
|
||||
ahc_loadseq(ahc);
|
||||
|
||||
#if !defined(__NetBSD__) || (defined(__NetBSD__) && defined(DEBUG))
|
||||
if(bootverbose)
|
||||
printf("Done\n");
|
||||
#endif
|
||||
|
||||
AHC_OUTB(ahc, SEQCTL, FASTMODE);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ahc_pci.c,v 1.4 1996/07/14 20:13:08 cgd Exp $ */
|
||||
/* $NetBSD: ahc_pci.c,v 1.5 1996/08/28 23:44:56 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Product specific probe and attach routines for:
|
||||
|
@ -75,7 +75,16 @@
|
|||
#include <dev/ic/aic7xxxvar.h>
|
||||
#include <dev/ic/smc93cx6var.h>
|
||||
|
||||
/*
|
||||
* Under normal circumstances, these messages are unnecessary
|
||||
* and not terribly cosmetic.
|
||||
*/
|
||||
#ifdef DEBUG
|
||||
#define bootverbose 1
|
||||
#else
|
||||
#define bootverbose 0
|
||||
#endif
|
||||
|
||||
#define PCI_BASEADR0 PCI_MAPREG_START
|
||||
|
||||
#endif /* defined(__NetBSD__) */
|
||||
|
|
Loading…
Reference in New Issue