summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-07-11 03:11:18 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-07-11 03:11:18 +0000
commit8d6b707377566caf9917a253cb058f2a38d856d5 (patch)
tree11bb9c6a0e7a678df9d7e63a88809b70652d2eeb /sys/dev/usb
parentafd32f33f1cba48b48ca63850b7c1fda22488128 (diff)
Please be more portable in usb land
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ucom.c6
-rw-r--r--sys/dev/usb/uhid.c6
-rw-r--r--sys/dev/usb/usb.c6
3 files changed, 15 insertions, 3 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index ba5017983de..03f87deabb5 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ucom.c,v 1.13 2002/07/10 21:41:50 mickey Exp $ */
+/* $OpenBSD: ucom.c,v 1.14 2002/07/11 03:11:17 nate Exp $ */
/* $NetBSD: ucom.c,v 1.42 2002/03/17 19:41:04 atatat Exp $ */
/*
@@ -143,6 +143,10 @@ struct ucom_softc {
#endif
};
+#if defined(__NetBSD__)
+cdev_decl(ucom);
+#endif
+
Static void ucom_cleanup(struct ucom_softc *);
Static void ucom_hwiflow(struct ucom_softc *);
Static int ucomparam(struct tty *, struct termios *);
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index ee28037c5cc..8131f4aa2f2 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.20 2002/07/10 21:41:50 mickey Exp $ */
+/* $OpenBSD: uhid.c,v 1.21 2002/07/11 03:11:17 nate Exp $ */
/* $NetBSD: uhid.c,v 1.51 2002/03/17 18:02:53 augustss Exp $ */
/*
@@ -101,6 +101,10 @@ struct uhid_softc {
#define UHID_CHUNK 128 /* chunk size for read */
#define UHID_BSIZE 1020 /* buffer size */
+#if defined(__NetBSD__)
+cdev_decl(uhid);
+#endif
+
Static void uhid_intr(struct uhidev *, void *, u_int len);
Static int uhid_do_read(struct uhid_softc *, struct uio *uio, int);
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 00804d71234..b6f325ab0af 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.21 2002/07/10 21:41:51 mickey Exp $ */
+/* $OpenBSD: usb.c,v 1.22 2002/07/11 03:11:17 nate Exp $ */
/* $NetBSD: usb.c,v 1.53 2001/01/23 17:04:30 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.c,v 1.20 1999/11/17 22:33:46 n_hibma Exp $ */
@@ -103,6 +103,10 @@ struct usb_softc {
char sc_dying;
};
+#if defined(__NetBSD__)
+cdev_decl(usb);
+#endif
+
Static void usb_discover(void *);
Static void usb_create_event_thread(void *);
Static void usb_event_thread(void *);