summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-29 15:37:36 +0000
committerpeter <peter@FreeBSD.org>2000-01-29 15:37:36 +0000
commitd801231f79922dd1a53a63a9c85eeb41444807c0 (patch)
treeba8c9bcfc290b4fa4dcb9c151998e2a6bbcf13b6
parent89b9b9b4af13c0b604e163a76f6dfa9e52ef6843 (diff)
downloadFreeBSD-src-d801231f79922dd1a53a63a9c85eeb41444807c0.zip
FreeBSD-src-d801231f79922dd1a53a63a9c85eeb41444807c0.tar.gz
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
-rw-r--r--sys/dev/pci/pci.c1
-rw-r--r--sys/i386/isa/isa_compat.c1
-rw-r--r--sys/pci/pci.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 9bbdb36..9c05ac5 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 ca7cf52..3ae09e0 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 9bbdb36..9c05ac5 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;
}
OpenPOWER on IntegriCloud