Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Generate usb events on attach and detach.
details: https://anonhg.NetBSD.org/src/rev/ca1e594bbdfd
branches: trunk
changeset: 481597:ca1e594bbdfd
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Feb 02 13:20:59 2000 +0000
description:
Generate usb events on attach and detach.
diffstat:
sys/dev/usb/ugen.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 2e2ae9f06bf2 -r ca1e594bbdfd sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c Wed Feb 02 13:19:44 2000 +0000
+++ b/sys/dev/usb/ugen.c Wed Feb 02 13:20:59 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugen.c,v 1.32 2000/01/19 00:23:58 augustss Exp $ */
+/* $NetBSD: ugen.c,v 1.33 2000/02/02 13:20:59 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -208,6 +208,9 @@
}
#endif
+ usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
+ USBDEV(sc->sc_dev));
+
USB_ATTACH_SUCCESS_RETURN;
}
@@ -681,6 +684,9 @@
/* XXX not implemented yet */
#endif
+ usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
+ USBDEV(sc->sc_dev));
+
return (0);
}
Home |
Main Index |
Thread Index |
Old Index