From fc80937e0bd5dd6780089a9fc8b1cefa546b3737 Mon Sep 17 00:00:00 2001 From: Hellmuth Michaelis Date: Sat, 15 Jul 2000 13:16:28 +0000 Subject: [PATCH] have pcvt's non-console probe and attach routines called again in case it is configured in the kernel. --- sys/i386/isa/pcvt/pcvt_drv.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 379b9d2163f7..74134bdeb301 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), @@ -132,6 +134,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 *---------------------------------------------------------------------------*/