1*86d7f5d3SJohn Marino /* $DragonFly: src/sys/netbt/bt_input.c,v 1.2 2008/03/18 13:41:42 hasso Exp $ */
2*86d7f5d3SJohn Marino /* $OpenBSD: bt_input.c,v 1.5 2007/06/24 20:55:27 uwe Exp $ */
3*86d7f5d3SJohn Marino
4*86d7f5d3SJohn Marino /*
5*86d7f5d3SJohn Marino * Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
6*86d7f5d3SJohn Marino *
7*86d7f5d3SJohn Marino * Permission to use, copy, modify, and distribute this software for any
8*86d7f5d3SJohn Marino * purpose with or without fee is hereby granted, provided that the above
9*86d7f5d3SJohn Marino * copyright notice and this permission notice appear in all copies.
10*86d7f5d3SJohn Marino *
11*86d7f5d3SJohn Marino * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12*86d7f5d3SJohn Marino * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13*86d7f5d3SJohn Marino * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14*86d7f5d3SJohn Marino * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15*86d7f5d3SJohn Marino * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16*86d7f5d3SJohn Marino * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17*86d7f5d3SJohn Marino * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18*86d7f5d3SJohn Marino */
19*86d7f5d3SJohn Marino
20*86d7f5d3SJohn Marino #include <sys/param.h>
21*86d7f5d3SJohn Marino #include <sys/socket.h>
22*86d7f5d3SJohn Marino #include <sys/queue.h>
23*86d7f5d3SJohn Marino #include <sys/bus.h>
24*86d7f5d3SJohn Marino
25*86d7f5d3SJohn Marino #include <net/netisr.h>
26*86d7f5d3SJohn Marino
27*86d7f5d3SJohn Marino #include <sys/mplock2.h>
28*86d7f5d3SJohn Marino
29*86d7f5d3SJohn Marino #include <netbt/hci.h>
30*86d7f5d3SJohn Marino
31*86d7f5d3SJohn Marino void
btintr(netmsg_t msg)32*86d7f5d3SJohn Marino btintr(netmsg_t msg)
33*86d7f5d3SJohn Marino {
34*86d7f5d3SJohn Marino struct hci_unit *unit;
35*86d7f5d3SJohn Marino
36*86d7f5d3SJohn Marino get_mplock();
37*86d7f5d3SJohn Marino TAILQ_FOREACH(unit, &hci_unit_list, hci_next) {
38*86d7f5d3SJohn Marino hci_intr(unit);
39*86d7f5d3SJohn Marino }
40*86d7f5d3SJohn Marino rel_mplock();
41*86d7f5d3SJohn Marino }
42