Eliminate usb_thread_t.
This commit is contained in:
parent
0f5a2cb6b7
commit
4f9929e80f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170617
@ -321,7 +321,7 @@ ucomclose(struct tty *tp)
|
||||
}
|
||||
|
||||
static int
|
||||
ucomioctl(struct tty *tp, u_long cmd, void *data, int flag, usb_proc_ptr p)
|
||||
ucomioctl(struct tty *tp, u_long cmd, void *data, int flag, struct thread *p)
|
||||
{
|
||||
struct ucom_softc *sc;
|
||||
int error;
|
||||
|
@ -97,7 +97,7 @@ struct ucom_callback {
|
||||
#define UCOM_SET_RTS 2
|
||||
#define UCOM_SET_BREAK 3
|
||||
int (*ucom_param)(void *, int, struct termios *);
|
||||
int (*ucom_ioctl)(void *, int, u_long, caddr_t, int, usb_proc_ptr);
|
||||
int (*ucom_ioctl)(void *, int, u_long, caddr_t, int, struct thread *);
|
||||
int (*ucom_open)(void *, int);
|
||||
void (*ucom_close)(void *, int);
|
||||
void (*ucom_read)(void *, int, u_char **, u_int32_t *);
|
||||
|
@ -169,7 +169,7 @@ USB_ATTACH(ufm)
|
||||
|
||||
|
||||
int
|
||||
ufmopen(struct cdev *dev, int flag, int mode, usb_proc_ptr td)
|
||||
ufmopen(struct cdev *dev, int flag, int mode, struct thread *td)
|
||||
{
|
||||
struct ufm_softc *sc;
|
||||
|
||||
@ -190,7 +190,7 @@ ufmopen(struct cdev *dev, int flag, int mode, usb_proc_ptr td)
|
||||
}
|
||||
|
||||
int
|
||||
ufmclose(struct cdev *dev, int flag, int mode, usb_proc_ptr td)
|
||||
ufmclose(struct cdev *dev, int flag, int mode, struct thread *td)
|
||||
{
|
||||
struct ufm_softc *sc;
|
||||
|
||||
@ -311,7 +311,7 @@ ufm_get_stat(struct ufm_softc *sc, caddr_t addr)
|
||||
}
|
||||
|
||||
int
|
||||
ufmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr td)
|
||||
ufmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
|
||||
{
|
||||
struct ufm_softc *sc;
|
||||
|
||||
|
@ -173,7 +173,7 @@ static void uhid_intr(usbd_xfer_handle, usbd_private_handle,
|
||||
static int uhid_do_read(struct uhid_softc *, struct uio *uio, int);
|
||||
static int uhid_do_write(struct uhid_softc *, struct uio *uio, int);
|
||||
static int uhid_do_ioctl(struct uhid_softc *, u_long, caddr_t, int,
|
||||
usb_proc_ptr);
|
||||
struct thread *);
|
||||
|
||||
USB_DECLARE_DRIVER(uhid);
|
||||
|
||||
@ -428,7 +428,7 @@ uhid_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
|
||||
}
|
||||
|
||||
int
|
||||
uhidopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
uhidopen(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
struct uhid_softc *sc;
|
||||
usbd_status err;
|
||||
@ -471,7 +471,7 @@ uhidopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
uhidclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
uhidclose(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
struct uhid_softc *sc;
|
||||
|
||||
@ -623,7 +623,7 @@ uhidwrite(struct cdev *dev, struct uio *uio, int flag)
|
||||
|
||||
int
|
||||
uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr, int flag,
|
||||
usb_proc_ptr p)
|
||||
struct thread *p)
|
||||
{
|
||||
struct usb_ctl_report_desc *rd;
|
||||
struct usb_ctl_report *re;
|
||||
@ -737,7 +737,7 @@ uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr, int flag,
|
||||
}
|
||||
|
||||
int
|
||||
uhidioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p)
|
||||
uhidioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *p)
|
||||
{
|
||||
struct uhid_softc *sc;
|
||||
int error;
|
||||
@ -752,7 +752,7 @@ uhidioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
uhidpoll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
uhidpoll(struct cdev *dev, int events, struct thread *p)
|
||||
{
|
||||
struct uhid_softc *sc;
|
||||
int revents = 0;
|
||||
|
@ -434,7 +434,7 @@ int ulptusein = 1;
|
||||
* Reset the printer, then wait until it's selected and not busy.
|
||||
*/
|
||||
int
|
||||
ulptopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
ulptopen(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
u_char flags = ULPTFLAGS(dev);
|
||||
struct ulpt_softc *sc;
|
||||
@ -562,7 +562,7 @@ ulpt_statusmsg(u_char status, struct ulpt_softc *sc)
|
||||
}
|
||||
|
||||
int
|
||||
ulptclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
ulptclose(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
struct ulpt_softc *sc;
|
||||
|
||||
@ -748,7 +748,7 @@ ulpt_tick(void *xsc)
|
||||
}
|
||||
|
||||
int
|
||||
ulptioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
|
||||
ulptioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *p)
|
||||
{
|
||||
int error = 0;
|
||||
|
||||
|
@ -187,7 +187,7 @@ static void umodem_rts(struct umodem_softc *, int);
|
||||
static void umodem_break(struct umodem_softc *, int);
|
||||
static void umodem_set_line_state(struct umodem_softc *);
|
||||
static int umodem_param(void *, int, struct termios *);
|
||||
static int umodem_ioctl(void *, int, u_long, caddr_t, int, usb_proc_ptr );
|
||||
static int umodem_ioctl(void *, int, u_long, caddr_t, int, struct thread *);
|
||||
static int umodem_open(void *, int portno);
|
||||
static void umodem_close(void *, int portno);
|
||||
static void umodem_intr(usbd_xfer_handle, usbd_private_handle, usbd_status);
|
||||
@ -614,7 +614,7 @@ umodem_param(void *addr, int portno, struct termios *t)
|
||||
|
||||
int
|
||||
umodem_ioctl(void *addr, int portno, u_long cmd, caddr_t data, int flag,
|
||||
usb_proc_ptr p)
|
||||
struct thread *p)
|
||||
{
|
||||
struct umodem_softc *sc = addr;
|
||||
int error = 0;
|
||||
|
@ -618,7 +618,7 @@ ums_disable(priv)
|
||||
}
|
||||
|
||||
static int
|
||||
ums_open(struct cdev *dev, int flag, int fmt, usb_proc_ptr p)
|
||||
ums_open(struct cdev *dev, int flag, int fmt, struct thread *p)
|
||||
{
|
||||
struct ums_softc *sc;
|
||||
|
||||
@ -628,7 +628,7 @@ ums_open(struct cdev *dev, int flag, int fmt, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
static int
|
||||
ums_close(struct cdev *dev, int flag, int fmt, usb_proc_ptr p)
|
||||
ums_close(struct cdev *dev, int flag, int fmt, struct thread *p)
|
||||
{
|
||||
struct ums_softc *sc;
|
||||
|
||||
@ -714,7 +714,7 @@ ums_read(struct cdev *dev, struct uio *uio, int flag)
|
||||
}
|
||||
|
||||
static int
|
||||
ums_poll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
ums_poll(struct cdev *dev, int events, struct thread *p)
|
||||
{
|
||||
struct ums_softc *sc;
|
||||
int revents = 0;
|
||||
@ -740,7 +740,7 @@ ums_poll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
ums_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p)
|
||||
ums_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *p)
|
||||
{
|
||||
struct ums_softc *sc;
|
||||
int error = 0;
|
||||
|
@ -986,7 +986,7 @@ uplcom_get_status(void *addr, int portno, u_char *lsr, u_char *msr)
|
||||
#if 0 /* TODO */
|
||||
static int
|
||||
uplcom_ioctl(void *addr, int portno, u_long cmd, caddr_t data, int flag,
|
||||
usb_proc_ptr p)
|
||||
struct thread *p)
|
||||
{
|
||||
struct uplcom_softc *sc = addr;
|
||||
int error = 0;
|
||||
|
@ -270,7 +270,7 @@ USB_ATTACH(urio)
|
||||
|
||||
|
||||
int
|
||||
urioopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
urioopen(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
#if (USBDI >= 1)
|
||||
struct urio_softc * sc;
|
||||
@ -310,7 +310,7 @@ urioopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
urioclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
urioclose(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
#if (USBDI >= 1)
|
||||
struct urio_softc * sc;
|
||||
@ -474,7 +474,7 @@ uriowrite(struct cdev *dev, struct uio *uio, int flag)
|
||||
|
||||
|
||||
int
|
||||
urioioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p)
|
||||
urioioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *p)
|
||||
{
|
||||
#if (USBDI >= 1)
|
||||
struct urio_softc * sc;
|
||||
|
@ -519,7 +519,7 @@ usbctlprint(void *aux, const char *pnp)
|
||||
#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
|
||||
|
||||
int
|
||||
usbopen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
usbopen(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
int unit = USBUNIT(dev);
|
||||
struct usb_softc *sc;
|
||||
@ -575,7 +575,7 @@ usbread(struct cdev *dev, struct uio *uio, int flag)
|
||||
}
|
||||
|
||||
int
|
||||
usbclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
usbclose(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
int unit = USBUNIT(dev);
|
||||
|
||||
@ -588,7 +588,7 @@ usbclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
usbioctl(struct cdev *devt, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
|
||||
usbioctl(struct cdev *devt, u_long cmd, caddr_t data, int flag, struct thread *p)
|
||||
{
|
||||
struct usb_softc *sc;
|
||||
int unit = USBUNIT(devt);
|
||||
@ -704,7 +704,7 @@ usbioctl(struct cdev *devt, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
usbpoll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
usbpoll(struct cdev *dev, int events, struct thread *p)
|
||||
{
|
||||
int revents, mask, s;
|
||||
int unit = USBUNIT(dev);
|
||||
|
@ -73,8 +73,6 @@ MALLOC_DECLARE(M_USBHC);
|
||||
|
||||
#define USBGETSOFTC(bdev) (device_get_softc(bdev))
|
||||
|
||||
typedef struct thread *usb_proc_ptr;
|
||||
|
||||
#define usb_kthread_create1(f, s, p, a0, a1) \
|
||||
kthread_create((f), (s), (p), RFHIGHPID, 0, (a0), (a1))
|
||||
#define usb_kthread_create2(f, s, p, a0) \
|
||||
|
@ -383,7 +383,7 @@ USB_ATTACH(uscanner)
|
||||
}
|
||||
|
||||
int
|
||||
uscanneropen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
uscanneropen(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
struct uscanner_softc *sc;
|
||||
int unit = USCANNERUNIT(dev);
|
||||
@ -446,7 +446,7 @@ uscanneropen(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
}
|
||||
|
||||
int
|
||||
uscannerclose(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
uscannerclose(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
struct uscanner_softc *sc;
|
||||
|
||||
@ -676,7 +676,7 @@ USB_DETACH(uscanner)
|
||||
}
|
||||
|
||||
int
|
||||
uscannerpoll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
uscannerpoll(struct cdev *dev, int events, struct thread *p)
|
||||
{
|
||||
struct uscanner_softc *sc;
|
||||
int revents = 0;
|
||||
|
@ -920,7 +920,7 @@ uvscom_get_status(void *addr, int portno, u_char *lsr, u_char *msr)
|
||||
#if 0 /* TODO */
|
||||
static int
|
||||
uvscom_ioctl(void *addr, int portno, u_long cmd, caddr_t data, int flag,
|
||||
usb_proc_ptr p)
|
||||
struct thread *p)
|
||||
{
|
||||
struct uvscom_softc *sc = addr;
|
||||
int error = 0;
|
||||
|
@ -269,7 +269,7 @@ USB_DETACH(ubtbcmfw)
|
||||
*/
|
||||
|
||||
static int
|
||||
ubtbcmfw_open(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
ubtbcmfw_open(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
ubtbcmfw_softc_p sc = NULL;
|
||||
int error = 0;
|
||||
@ -321,7 +321,7 @@ ubtbcmfw_open(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
*/
|
||||
|
||||
static int
|
||||
ubtbcmfw_close(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
|
||||
ubtbcmfw_close(struct cdev *dev, int flag, int mode, struct thread *p)
|
||||
{
|
||||
ubtbcmfw_softc_p sc = NULL;
|
||||
|
||||
@ -487,7 +487,8 @@ ubtbcmfw_write(struct cdev *dev, struct uio *uio, int flag)
|
||||
*/
|
||||
|
||||
static int
|
||||
ubtbcmfw_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
|
||||
ubtbcmfw_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
|
||||
struct thread *p)
|
||||
{
|
||||
ubtbcmfw_softc_p sc = NULL;
|
||||
int error = 0;
|
||||
@ -524,7 +525,7 @@ ubtbcmfw_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, usb_proc_pt
|
||||
*/
|
||||
|
||||
static int
|
||||
ubtbcmfw_poll(struct cdev *dev, int events, usb_proc_ptr p)
|
||||
ubtbcmfw_poll(struct cdev *dev, int events, struct thread *p)
|
||||
{
|
||||
ubtbcmfw_softc_p sc = NULL;
|
||||
int revents = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user