| @@ -1,39 +1,39 @@ | | | @@ -1,39 +1,39 @@ |
1 | /* $NetBSD: if_urtwn.c,v 1.33 2014/07/20 14:02:53 nonaka Exp $ */ | | 1 | /* $NetBSD: if_urtwn.c,v 1.34 2014/07/25 15:07:03 nonaka Exp $ */ |
2 | /* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */ | | 2 | /* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */ |
3 | | | 3 | |
4 | /*- | | 4 | /*- |
5 | * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> | | 5 | * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> |
6 | * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> | | 6 | * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> |
7 | * | | 7 | * |
8 | * Permission to use, copy, modify, and distribute this software for any | | 8 | * Permission to use, copy, modify, and distribute this software for any |
9 | * purpose with or without fee is hereby granted, provided that the above | | 9 | * purpose with or without fee is hereby granted, provided that the above |
10 | * copyright notice and this permission notice appear in all copies. | | 10 | * copyright notice and this permission notice appear in all copies. |
11 | * | | 11 | * |
12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | | 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
13 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | | 13 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
14 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | | 14 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
15 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | | 15 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
16 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | | 16 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
17 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | | 17 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
18 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | | 18 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
19 | */ | | 19 | */ |
20 | | | 20 | |
21 | /*- | | 21 | /*- |
22 | * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. | | 22 | * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. |
23 | */ | | 23 | */ |
24 | | | 24 | |
25 | #include <sys/cdefs.h> | | 25 | #include <sys/cdefs.h> |
26 | __KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.33 2014/07/20 14:02:53 nonaka Exp $"); | | 26 | __KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.34 2014/07/25 15:07:03 nonaka Exp $"); |
27 | | | 27 | |
28 | #ifdef _KERNEL_OPT | | 28 | #ifdef _KERNEL_OPT |
29 | #include "opt_inet.h" | | 29 | #include "opt_inet.h" |
30 | #endif | | 30 | #endif |
31 | | | 31 | |
32 | #include <sys/param.h> | | 32 | #include <sys/param.h> |
33 | #include <sys/sockio.h> | | 33 | #include <sys/sockio.h> |
34 | #include <sys/sysctl.h> | | 34 | #include <sys/sysctl.h> |
35 | #include <sys/mbuf.h> | | 35 | #include <sys/mbuf.h> |
36 | #include <sys/kernel.h> | | 36 | #include <sys/kernel.h> |
37 | #include <sys/socket.h> | | 37 | #include <sys/socket.h> |
38 | #include <sys/systm.h> | | 38 | #include <sys/systm.h> |
39 | #include <sys/malloc.h> | | 39 | #include <sys/malloc.h> |
| @@ -154,26 +154,27 @@ static const struct urtwn_dev { | | | @@ -154,26 +154,27 @@ static const struct urtwn_dev { |
154 | URTWN_DEV(REALTEK, RTL8188RU_2), | | 154 | URTWN_DEV(REALTEK, RTL8188RU_2), |
155 | URTWN_DEV(REALTEK, RTL8191CU), | | 155 | URTWN_DEV(REALTEK, RTL8191CU), |
156 | URTWN_DEV(REALTEK, RTL8192CE), | | 156 | URTWN_DEV(REALTEK, RTL8192CE), |
157 | URTWN_DEV(REALTEK, RTL8192CU), | | 157 | URTWN_DEV(REALTEK, RTL8192CU), |
158 | URTWN_DEV(SITECOMEU, RTL8188CU), | | 158 | URTWN_DEV(SITECOMEU, RTL8188CU), |
159 | URTWN_DEV(SITECOMEU, RTL8188CU_2), | | 159 | URTWN_DEV(SITECOMEU, RTL8188CU_2), |
160 | URTWN_DEV(SITECOMEU, RTL8192CU), | | 160 | URTWN_DEV(SITECOMEU, RTL8192CU), |
161 | URTWN_DEV(SITECOMEU, RTL8192CUR2), | | 161 | URTWN_DEV(SITECOMEU, RTL8192CUR2), |
162 | URTWN_DEV(TRENDNET, RTL8188CU), | | 162 | URTWN_DEV(TRENDNET, RTL8188CU), |
163 | URTWN_DEV(TRENDNET, RTL8192CU), | | 163 | URTWN_DEV(TRENDNET, RTL8192CU), |
164 | URTWN_DEV(ZYXEL, RTL8192CU), | | 164 | URTWN_DEV(ZYXEL, RTL8192CU), |
165 | | | 165 | |
166 | /* URTWN_RTL8188E */ | | 166 | /* URTWN_RTL8188E */ |
| | | 167 | URTWN_RTL8188E_DEV(ELECOM, WDC150SU2M), |
167 | URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV), | | 168 | URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV), |
168 | URTWN_RTL8188E_DEV(REALTEK, RTL8188EU), | | 169 | URTWN_RTL8188E_DEV(REALTEK, RTL8188EU), |
169 | }; | | 170 | }; |
170 | #undef URTWN_DEV | | 171 | #undef URTWN_DEV |
171 | #undef URTWN_RTL8188E_DEV | | 172 | #undef URTWN_RTL8188E_DEV |
172 | | | 173 | |
173 | static int urtwn_match(device_t, cfdata_t, void *); | | 174 | static int urtwn_match(device_t, cfdata_t, void *); |
174 | static void urtwn_attach(device_t, device_t, void *); | | 175 | static void urtwn_attach(device_t, device_t, void *); |
175 | static int urtwn_detach(device_t, int); | | 176 | static int urtwn_detach(device_t, int); |
176 | static int urtwn_activate(device_t, enum devact); | | 177 | static int urtwn_activate(device_t, enum devact); |
177 | | | 178 | |
178 | CFATTACH_DECL_NEW(urtwn, sizeof(struct urtwn_softc), urtwn_match, | | 179 | CFATTACH_DECL_NEW(urtwn, sizeof(struct urtwn_softc), urtwn_match, |
179 | urtwn_attach, urtwn_detach, urtwn_activate); | | 180 | urtwn_attach, urtwn_detach, urtwn_activate); |