Deleted Added
full compact
usb_process.c (185950) usb_process.c (187994)
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_process.c 185950 2008-12-11 23:17:48Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_process.c 187994 2009-02-02 00:49:39Z alfred $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 169 unchanged lines hidden (view full) ---

179uint8_t
180usb2_proc_setup(struct usb2_process *up, struct mtx *p_mtx, uint8_t prio)
181{
182 up->up_mtx = p_mtx;
183 up->up_prio = prio;
184
185 TAILQ_INIT(&up->up_qhead);
186
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 169 unchanged lines hidden (view full) ---

179uint8_t
180usb2_proc_setup(struct usb2_process *up, struct mtx *p_mtx, uint8_t prio)
181{
182 up->up_mtx = p_mtx;
183 up->up_prio = prio;
184
185 TAILQ_INIT(&up->up_qhead);
186
187 usb2_cv_init(&up->up_cv, "WMSG");
188 usb2_cv_init(&up->up_drain, "DMSG");
187 usb2_cv_init(&up->up_cv, "wmsg");
188 usb2_cv_init(&up->up_drain, "dmsg");
189
190 if (USB_THREAD_CREATE(&usb2_process, up,
189
190 if (USB_THREAD_CREATE(&usb2_process, up,
191 &up->up_ptr, "USBPROC")) {
191 &up->up_ptr, "usbproc")) {
192 DPRINTFN(0, "Unable to create USB process.");
193 up->up_ptr = NULL;
194 goto error;
195 }
196 return (0);
197
198error:
199 usb2_proc_unsetup(up);

--- 276 unchanged lines hidden ---
192 DPRINTFN(0, "Unable to create USB process.");
193 up->up_ptr = NULL;
194 goto error;
195 }
196 return (0);
197
198error:
199 usb2_proc_unsetup(up);

--- 276 unchanged lines hidden ---