kbdmux.c (188603) | kbdmux.c (190857) |
---|---|
1/* 2 * kbdmux.c 3 */ 4 5/*- 6 * Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: kbdmux.c,v 1.4 2005/07/14 17:38:35 max Exp $ | 1/* 2 * kbdmux.c 3 */ 4 5/*- 6 * Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: kbdmux.c,v 1.4 2005/07/14 17:38:35 max Exp $ |
31 * $FreeBSD: head/sys/dev/kbdmux/kbdmux.c 188603 2009-02-13 23:36:08Z thompsa $ | 31 * $FreeBSD: head/sys/dev/kbdmux/kbdmux.c 190857 2009-04-08 20:52:30Z emax $ |
32 */ 33 34#include "opt_compat.h" 35#include "opt_kbd.h" 36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/clist.h> --- 59 unchanged lines hidden (view full) --- 99 taskqueue_enqueue(taskqueue_swi_giant, &(s)->ks_task) 100#else 101#define KBDMUX_LOCK_DECL_GLOBAL 102 103#define KBDMUX_LOCK_INIT(s) 104 105#define KBDMUX_LOCK_DESTROY(s) 106 | 32 */ 33 34#include "opt_compat.h" 35#include "opt_kbd.h" 36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/clist.h> --- 59 unchanged lines hidden (view full) --- 99 taskqueue_enqueue(taskqueue_swi_giant, &(s)->ks_task) 100#else 101#define KBDMUX_LOCK_DECL_GLOBAL 102 103#define KBDMUX_LOCK_INIT(s) 104 105#define KBDMUX_LOCK_DESTROY(s) 106 |
107#define KBDMUX_LOCK(s) \ 108 mtx_lock(&Giant) 109#define KBDMUX_UNLOCK(s) \ 110 mtx_unlock(&Giant) | 107#define KBDMUX_LOCK(s) 108 109#define KBDMUX_UNLOCK(s) 110 |
111#define KBDMUX_LOCK_ASSERT(s, w) 112 113#define KBDMUX_SLEEP(s, f, d, t) \ 114 tsleep(&(s)->f, PCATCH | (PZERO + 1), (d), (t)) 115#define KBDMUX_CALLOUT_INIT(s) \ 116 callout_init(&(s)->ks_timo, 0) 117#define KBDMUX_QUEUE_INTR(s) \ 118 taskqueue_enqueue(taskqueue_swi_giant, &(s)->ks_task) --- 1251 unchanged lines hidden --- | 111#define KBDMUX_LOCK_ASSERT(s, w) 112 113#define KBDMUX_SLEEP(s, f, d, t) \ 114 tsleep(&(s)->f, PCATCH | (PZERO + 1), (d), (t)) 115#define KBDMUX_CALLOUT_INIT(s) \ 116 callout_init(&(s)->ks_timo, 0) 117#define KBDMUX_QUEUE_INTR(s) \ 118 taskqueue_enqueue(taskqueue_swi_giant, &(s)->ks_task) --- 1251 unchanged lines hidden --- |