diff options
author | joe <joe@FreeBSD.org> | 2002-01-02 23:31:08 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-01-02 23:31:08 +0000 |
commit | 3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65 (patch) | |
tree | 8ffee5e9e1aa552ea45ba8ceb50f56433abd3f9f /sys/dev/usb | |
parent | bbfc99065f15d39a43ebe6ba942a6bbda7ce441e (diff) | |
download | FreeBSD-src-3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65.zip FreeBSD-src-3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65.tar.gz |
Revert uio.uio_td back to uio.uio_procp, using a #define in usb_port to
do the right thing on -current.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ugen.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/urio.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/usb.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/usb_port.h | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c index fcb8ec7..9a29509 100644 --- a/sys/dev/usb/ugen.c +++ b/sys/dev/usb/ugen.c @@ -1259,7 +1259,7 @@ ugen_do_ioctl(struct ugen_softc *sc, int endpt, u_long cmd, uio.uio_offset = 0; uio.uio_segflg = UIO_USERSPACE; uio.uio_rw = UIO_READ; - uio.uio_td = p; + uio.uio_procp = p; error = uiomove((void *)cdesc, len, &uio); free(cdesc, M_TEMP); return (error); @@ -1305,7 +1305,7 @@ ugen_do_ioctl(struct ugen_softc *sc, int endpt, u_long cmd, uio.uio_rw = ur->request.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; - uio.uio_td = p; + uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { error = uiomove(ptr, len, &uio); diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index e53cd1c..dc01ef3 100644 --- a/sys/dev/usb/urio.c +++ b/sys/dev/usb/urio.c @@ -585,7 +585,7 @@ urioioctl(dev, cmd, addr, flag, p) uio.uio_rw = req.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; - uio.uio_td = p; + uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { error = uiomove(ptr, len, &uio); diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index bbee3c8..c35d679 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -50,7 +50,6 @@ #include <sys/lock.h> #include <sys/malloc.h> #include <sys/mutex.h> -#include <sys/kthread.h> #if defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/device.h> #elif defined(__FreeBSD__) @@ -60,6 +59,7 @@ #include <sys/filio.h> #include <sys/uio.h> #endif +#include <sys/kthread.h> #include <sys/proc.h> #include <sys/conf.h> #include <sys/poll.h> @@ -474,7 +474,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, usb_proc_ptr p) uio.uio_rw = ur->request.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; - uio.uio_td = p; + uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { error = uiomove(ptr, len, &uio); diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 52313a1..21cb986 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -294,6 +294,8 @@ __CONCAT(dname,_detach)(self, flags) \ typedef struct thread *usb_proc_ptr; +#define uio_procp uio_td + /* XXX Change this when FreeBSD has memset */ #define memcpy(d, s, l) bcopy((s),(d),(l)) #define memset(d, v, l) bzero((d),(l)) |