summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>2000-07-15 13:16:28 +0000
committerhm <hm@FreeBSD.org>2000-07-15 13:16:28 +0000
commit0eaece4ce759f0641320fa29646cd6f088ef74de (patch)
tree7c489136b2d09d66daa65e6aedb86f0a4945805f /sys/i386/isa/pcvt
parent21e0575454680b0c46c42626af327fe67c7845ed (diff)
downloadFreeBSD-src-0eaece4ce759f0641320fa29646cd6f088ef74de.zip
FreeBSD-src-0eaece4ce759f0641320fa29646cd6f088ef74de.tar.gz
have pcvt's non-console probe and attach routines called again in case
it is configured in the kernel.
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 379b9d2..74134bd 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -48,7 +48,7 @@
* pcvt_drv.c VT220 Driver Main Module / OS - Interface
* ---------------------------------------------------------
*
- * Last Edit-Date: [Thu Apr 6 09:44:24 2000]
+ * Last Edit-Date: [Sat Jul 15 15:06:06 2000]
*
* $FreeBSD$
*
@@ -114,8 +114,10 @@ static struct cdevsw vt_cdevsw = {
static int pcvt_probe(device_t dev);
static int pcvt_attach(device_t dev);
+static void pcvt_identify (driver_t *driver, device_t parent);
static device_method_t pcvt_methods[] = {
+ DEVMETHOD(device_identify, pcvt_identify),
DEVMETHOD(device_probe, pcvt_probe),
DEVMETHOD(device_attach, pcvt_attach),
DEVMETHOD(bus_print_child, bus_generic_print_child),
@@ -133,6 +135,15 @@ static devclass_t pcvt_devclass;
DRIVER_MODULE(pcvt, isa, pcvt_driver, pcvt_devclass, 0, 0);
/*---------------------------------------------------------------------------*
+ * driver identify
+ *---------------------------------------------------------------------------*/
+static void
+pcvt_identify (driver_t *driver, device_t parent)
+{
+ BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, "vt", 0);
+}
+
+/*---------------------------------------------------------------------------*
* driver probe
*---------------------------------------------------------------------------*/
static int
OpenPOWER on IntegriCloud