diff options
author | joe <joe@FreeBSD.org> | 2002-01-02 16:33:53 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-01-02 16:33:53 +0000 |
commit | b7218f93dc375ffb8587a39aec1dd9673e1cdd0d (patch) | |
tree | 8e42e13bc7d524abcb88c0d18fe353eb8239fdb2 /sys/dev/usb/urio.c | |
parent | 205784642b3c46f1f017271c18a02c23a15089b8 (diff) | |
download | FreeBSD-src-b7218f93dc375ffb8587a39aec1dd9673e1cdd0d.zip FreeBSD-src-b7218f93dc375ffb8587a39aec1dd9673e1cdd0d.tar.gz |
NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)
to hide the distinction between struct proc and struct thread.
Diffstat (limited to 'sys/dev/usb/urio.c')
-rw-r--r-- | sys/dev/usb/urio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index 878aaaf..e53cd1c 100644 --- a/sys/dev/usb/urio.c +++ b/sys/dev/usb/urio.c @@ -292,11 +292,11 @@ USB_ATTACH(urio) int -urioopen(dev, flag, mode, td) +urioopen(dev, flag, mode, p) dev_t dev; int flag; int mode; - struct thread *td; + usb_proc_ptr p; { #if (USBDI >= 1) struct urio_softc * sc; @@ -336,11 +336,11 @@ urioopen(dev, flag, mode, td) } int -urioclose(dev, flag, mode, td) +urioclose(dev, flag, mode, p) dev_t dev; int flag; int mode; - struct thread *td; + usb_proc_ptr p; { #if (USBDI >= 1) struct urio_softc * sc; @@ -510,12 +510,12 @@ uriowrite(dev, uio, flag) int -urioioctl(dev, cmd, addr, flag, td) +urioioctl(dev, cmd, addr, flag, p) dev_t dev; u_long cmd; caddr_t addr; int flag; - struct thread *td; + usb_proc_ptr p; { #if (USBDI >= 1) struct urio_softc * sc; @@ -585,7 +585,7 @@ urioioctl(dev, cmd, addr, flag, td) uio.uio_rw = req.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; - uio.uio_td = td; + uio.uio_td = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { error = uiomove(ptr, len, &uio); |