diff options
author | kato <kato@FreeBSD.org> | 1999-08-23 13:42:22 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-08-23 13:42:22 +0000 |
commit | 4d774b3f0b993f07c047eb1883e3a2d2ba0f46d9 (patch) | |
tree | 6a90e0fdbafee98aa1499fe615e7cfdd1f856cf7 /sys | |
parent | d8cb917b88e94351fbc67336601b7ee79a91f410 (diff) | |
download | FreeBSD-src-4d774b3f0b993f07c047eb1883e3a2d2ba0f46d9.zip FreeBSD-src-4d774b3f0b993f07c047eb1883e3a2d2ba0f46d9.tar.gz |
Merge from sys/i386/isa/npx.c revision 1.76.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/npx.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c index 6e5d85d..d44207e 100644 --- a/sys/pc98/pc98/npx.c +++ b/sys/pc98/pc98/npx.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)npx.c 7.2 (Berkeley) 5/12/91 - * $Id: npx.c,v 1.48 1999/05/17 12:38:28 kato Exp $ + * $Id: npx.c,v 1.49 1999/07/26 12:22:41 kato Exp $ */ #include "npx.h" @@ -130,6 +130,7 @@ typedef u_char bool_t; static int npx_attach __P((device_t dev)); void npx_intr __P((void *)); +static void npx_identify __P((driver_t *driver, device_t parent)); static int npx_probe __P((device_t dev)); static int npx_probe1 __P((device_t dev)); #ifdef I586_CPU @@ -204,6 +205,21 @@ __asm(" \n\ /* + * Identify routine. Create a connection point on our parent for probing. + */ +static void +npx_identify(driver, parent) + driver_t *driver; + device_t parent; +{ + device_t child; + + child = BUS_ADD_CHILD(parent, 0, "npx", 0); + if (child == NULL) + panic("npx_identify"); +} + +/* * Probe routine. Initialize cr0 to give correct behaviour for [f]wait * whether the device exists or not (XXX should be elsewhere). Set flags * to tell npxattach() what to do. Modify device struct if npx doesn't @@ -965,6 +981,7 @@ timezero(funcname, func) static device_method_t npx_methods[] = { /* Device interface */ + DEVMETHOD(device_identify, npx_identify), DEVMETHOD(device_probe, npx_probe), DEVMETHOD(device_attach, npx_attach), DEVMETHOD(device_detach, bus_generic_detach), |