diff options
author | 2007-06-04 10:34:04 +0000 | |
---|---|---|
committer | 2007-06-04 10:34:04 +0000 | |
commit | 000788eb7579405feb359e0120f4fd5aa1792666 (patch) | |
tree | 8c41675ab13c2f9c155fdbd0e6c3c876a9da2c7c /sys/dev/usb/uhid.c | |
parent | do not shuffle dev 4 under the carpet; make svnd work again; uncookie (diff) | |
download | wireguard-openbsd-000788eb7579405feb359e0120f4fd5aa1792666.tar.xz wireguard-openbsd-000788eb7579405feb359e0120f4fd5aa1792666.zip |
Last part of FreeBSD/NetBSD sepcific code removal.
ok jsg@
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r-- | sys/dev/usb/uhid.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 7118c4307ca..e00dd185405 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhid.c,v 1.32 2007/05/27 04:00:25 jsg Exp $ */ +/* $OpenBSD: uhid.c,v 1.33 2007/06/04 10:34:04 mbalmer Exp $ */ /* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -101,21 +101,6 @@ struct uhid_softc { #define UHID_CHUNK 128 /* chunk size for read */ #define UHID_BSIZE 1020 /* buffer size */ -#if defined(__NetBSD__) -dev_type_open(uhidopen); -dev_type_close(uhidclose); -dev_type_read(uhidread); -dev_type_write(uhidwrite); -dev_type_ioctl(uhidioctl); -dev_type_poll(uhidpoll); -dev_type_kqfilter(uhidkqfilter); - -const struct cdevsw uhid_cdevsw = { - uhidopen, uhidclose, uhidread, uhidwrite, uhidioctl, - nostop, notty, uhidpoll, nommap, uhidkqfilter, -}; -#endif - Static void uhid_intr(struct uhidev *, void *, u_int len); Static int uhid_do_read(struct uhid_softc *, struct uio *uio, int); @@ -200,13 +185,9 @@ uhid_detach(struct device *self, int flags) } /* locate the major number */ -#if defined(__NetBSD__) - maj = cdevsw_lookup_major(&uhid_cdevsw); -#elif defined(__OpenBSD__) for (maj = 0; maj < nchrdev; maj++) if (cdevsw[maj].d_open == uhidopen) break; -#endif /* Nuke the vnodes for any open instances (calls close). */ mn = self->dv_unit; |