Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/gehenna-devsw]: src/sys/dev/usb Add the character device switch.
details: https://anonhg.NetBSD.org/src/rev/c87e6ea29818
branches: gehenna-devsw
changeset: 527064:c87e6ea29818
user: gehenna <gehenna%NetBSD.org@localhost>
date: Thu May 16 11:29:15 2002 +0000
description:
Add the character device switch.
diffstat:
sys/dev/usb/usb.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 65984ce48a09 -r c87e6ea29818 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Thu May 16 11:27:59 2002 +0000
+++ b/sys/dev/usb/usb.c Thu May 16 11:29:15 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.c,v 1.70 2002/05/09 21:54:32 augustss Exp $ */
+/* $NetBSD: usb.c,v 1.70.2.1 2002/05/16 11:29:15 gehenna Exp $ */
/*
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.70 2002/05/09 21:54:32 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.70.2.1 2002/05/16 11:29:15 gehenna Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -104,7 +104,16 @@
TAILQ_HEAD(, usb_task) usb_all_tasks;
-cdev_decl(usb);
+dev_type_open(usbopen);
+dev_type_close(usbclose);
+dev_type_read(usbread);
+dev_type_ioctl(usbioctl);
+dev_type_poll(usbpoll);
+
+const struct cdevsw usb_cdevsw = {
+ usbopen, usbclose, usbread, nowrite, usbioctl,
+ nostop, notty, usbpoll, nommap,
+};
Static void usb_discover(void *);
Static void usb_create_event_thread(void *);
Home |
Main Index |
Thread Index |
Old Index