OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Atheros Communications Inc. | 2 * Copyright (c) 2010 Atheros Communications Inc. |
3 * | 3 * |
4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
7 * | 7 * |
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 goto err; | 238 goto err; |
239 | 239 |
240 /* | 240 /* |
241 * Setup required credits before initializing HTC. | 241 * Setup required credits before initializing HTC. |
242 * This is a bit hacky, but, since queuing is done in | 242 * This is a bit hacky, but, since queuing is done in |
243 * the HIF layer, shouldn't matter much. | 243 * the HIF layer, shouldn't matter much. |
244 */ | 244 */ |
245 | 245 |
246 switch(devid) { | 246 switch(devid) { |
247 case 0x7010: | 247 case 0x7010: |
| 248 case 0x7015: |
248 case 0x9018: | 249 case 0x9018: |
249 priv->htc->credits = 45; | 250 priv->htc->credits = 45; |
250 break; | 251 break; |
251 default: | 252 default: |
252 priv->htc->credits = 33; | 253 priv->htc->credits = 33; |
253 } | 254 } |
254 | 255 |
255 ret = htc_init(priv->htc); | 256 ret = htc_init(priv->htc); |
256 if (ret) | 257 if (ret) |
257 goto err; | 258 goto err; |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 } | 907 } |
907 module_init(ath9k_htc_init); | 908 module_init(ath9k_htc_init); |
908 | 909 |
909 static void __exit ath9k_htc_exit(void) | 910 static void __exit ath9k_htc_exit(void) |
910 { | 911 { |
911 ath9k_hif_usb_exit(); | 912 ath9k_hif_usb_exit(); |
912 ath9k_htc_debug_remove_root(); | 913 ath9k_htc_debug_remove_root(); |
913 printk(KERN_INFO "ath9k_htc: Driver unloaded\n"); | 914 printk(KERN_INFO "ath9k_htc: Driver unloaded\n"); |
914 } | 915 } |
915 module_exit(ath9k_htc_exit); | 916 module_exit(ath9k_htc_exit); |
OLD | NEW |