Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Print the revision info from the PCI configurati...
details: https://anonhg.NetBSD.org/src/rev/b8b94440d9e9
branches: trunk
changeset: 486073:b8b94440d9e9
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 12 17:52:07 2000 +0000
description:
Print the revision info from the PCI configuration header. From
Dave Sainty, kern/10025.
diffstat:
sys/dev/pci/pciide.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r e9748ebb5742 -r b8b94440d9e9 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c Fri May 12 17:48:47 2000 +0000
+++ b/sys/dev/pci/pciide.c Fri May 12 17:52:07 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pciide.c,v 1.56 2000/04/01 14:32:23 bouyer Exp $ */
+/* $NetBSD: pciide.c,v 1.57 2000/05/12 17:52:07 thorpej Exp $ */
/*
@@ -463,16 +463,18 @@
struct pciide_softc *sc = (struct pciide_softc *)self;
pcireg_t csr;
char devinfo[256];
+ const char *displaydev;
sc->sc_pp = pciide_lookup_product(pa->pa_id);
if (sc->sc_pp == NULL) {
sc->sc_pp = &default_product_desc;
pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
- printf(": %s (rev. 0x%02x)\n", devinfo,
- PCI_REVISION(pa->pa_class));
- } else {
- printf(": %s\n", sc->sc_pp->ide_name);
- }
+ displaydev = devinfo;
+ } else
+ displaydev = sc->sc_pp->ide_name;
+
+ printf(": %s (rev. 0x%02x)\n", displaydev, PCI_REVISION(pa->pa_class));
+
sc->sc_pc = pa->pa_pc;
sc->sc_tag = pa->pa_tag;
#ifdef WDCDEBUG
Home |
Main Index |
Thread Index |
Old Index