From cebf86fa3fc19ac8630afaa0d207c9ab034a9ee0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 29 Jan 2000 15:37:36 +0000 Subject: [PATCH] Put a FYI in the compatability shims so that people are aware that they are using an old unconverted driver. Most (if not all) of the drivers for common hardware are newbus these days. However, we don't want to encourage people to take the easy way out and write new drivers using the shims. This is just passive "encouragement". Reviewed by: phk --- sys/dev/pci/pci.c | 1 + sys/i386/isa/isa_compat.c | 1 + sys/pci/pci.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 9bbdb36d2a3..9c05ac5b8f3 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -903,6 +903,7 @@ pci_compat_attach(device_t dev) *dvp->pd_count = unit; if (dvp->pd_attach) dvp->pd_attach(cfg, unit); + device_printf(dev, "driver is using old-style compatability shims\n"); return 0; } diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c index ca7cf521032..3ae09e0d8bc 100644 --- a/sys/i386/isa/isa_compat.c +++ b/sys/i386/isa/isa_compat.c @@ -259,6 +259,7 @@ isa_compat_attach(device_t dev) printf("isa_compat_attach: failed to setup intr: %d\n", error); } + device_printf(dev, "driver is using old-style compatability shims\n"); return 0; } diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 9bbdb36d2a3..9c05ac5b8f3 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -903,6 +903,7 @@ pci_compat_attach(device_t dev) *dvp->pd_count = unit; if (dvp->pd_attach) dvp->pd_attach(cfg, unit); + device_printf(dev, "driver is using old-style compatability shims\n"); return 0; }