diff options
| author | rumble <rumble@NetBSD.org> | 2007-05-08 02:08:17 +0000 |
|---|---|---|
| committer | rumble <rumble@NetBSD.org> | 2007-05-08 02:08:17 +0000 |
| commit | f2bf28e11cfed7ac0fe1dfd211562b5c8ba531d7 (patch) | |
| tree | ed7956933444f6e94e6bab0c4528815db5b41a3a /sys/dev | |
| parent | 1aa70e7d65e395b1f8229ed0cca3330a9660846f (diff) | |
Report whether we're using DMA and what type on attach, since I keep losing
track while testing.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/wd33c93.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/wd33c93.c b/sys/dev/ic/wd33c93.c index 12f1709c803..d8a376f8421 100644 --- a/sys/dev/ic/wd33c93.c +++ b/sys/dev/ic/wd33c93.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd33c93.c,v 1.13 2007/05/08 00:29:30 rumble Exp $ */ +/* $NetBSD: wd33c93.c,v 1.14 2007/05/08 02:08:17 rumble Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -79,7 +79,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wd33c93.c,v 1.13 2007/05/08 00:29:30 rumble Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wd33c93.c,v 1.14 2007/05/08 02:08:17 rumble Exp $"); #include "opt_ddb.h" @@ -220,9 +220,12 @@ wd33c93_attach(struct wd33c93_softc *dev) dev->sc_cfflags = device_cfdata(&dev->sc_dev)->cf_flags; wd33c93_init(dev); - printf(": %s (%d.%d MHz clock, SCSI ID %d)\n", + printf(": %s (%d.%d MHz clock, %s, SCSI ID %d)\n", wd33c93_chip_names[dev->sc_chip], dev->sc_clkfreq / 10, dev->sc_clkfreq % 10, + (dev->sc_dmamode == SBIC_CTL_DMA) ? "DMA" : + (dev->sc_dmamode == SBIC_CTL_DBA_DMA) ? "DBA" : + (dev->sc_dmamode == SBIC_CTL_BURST_DMA) ? "BURST DMA" : "PIO", dev->sc_channel.chan_id); if (dev->sc_chip == SBIC_CHIP_WD33C93B) { printf("%s: microcode revision 0x%02x", |
