2 * Copyright (c) 2005-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2013 Qualcomm Atheros, Inc.
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include <linux/module.h>
19 #include <linux/firmware.h>
30 unsigned int ath10k_debug_mask;
31 static bool uart_print;
32 static unsigned int ath10k_p2p;
33 module_param_named(debug_mask, ath10k_debug_mask, uint, 0644);
34 module_param(uart_print, bool, 0644);
35 module_param_named(p2p, ath10k_p2p, uint, 0644);
36 MODULE_PARM_DESC(debug_mask, "Debugging mask");
37 MODULE_PARM_DESC(uart_print, "Uart target debugging");
38 MODULE_PARM_DESC(p2p, "Enable ath10k P2P support");
40 static const struct ath10k_hw_params ath10k_hw_params_list[] = {
42 .id = QCA988X_HW_2_0_VERSION,
43 .name = "qca988x hw2.0",
44 .patch_load_addr = QCA988X_HW_2_0_PATCH_LOAD_ADDR,
46 .dir = QCA988X_HW_2_0_FW_DIR,
47 .fw = QCA988X_HW_2_0_FW_FILE,
48 .otp = QCA988X_HW_2_0_OTP_FILE,
49 .board = QCA988X_HW_2_0_BOARD_DATA_FILE,
54 static void ath10k_send_suspend_complete(struct ath10k *ar)
56 ath10k_dbg(ATH10K_DBG_BOOT, "boot suspend complete\n");
58 ar->is_target_paused = true;
59 wake_up(&ar->event_queue);
62 static int ath10k_init_connect_htc(struct ath10k *ar)
66 status = ath10k_wmi_connect_htc_service(ar);
71 status = ath10k_htc_start(&ar->htc);
75 /* Wait for WMI event to be ready */
76 status = ath10k_wmi_wait_for_service_ready(ar);
78 ath10k_warn("wmi service ready event not received");
83 ath10k_dbg(ATH10K_DBG_BOOT, "boot wmi ready\n");
87 ath10k_htc_stop(&ar->htc);
92 static int ath10k_init_configure_target(struct ath10k *ar)
97 /* tell target which HTC version it is used*/
98 ret = ath10k_bmi_write32(ar, hi_app_host_interest,
99 HTC_PROTOCOL_VERSION);
101 ath10k_err("settings HTC version failed\n");
105 /* set the firmware mode to STA/IBSS/AP */
106 ret = ath10k_bmi_read32(ar, hi_option_flag, ¶m_host);
108 ath10k_err("setting firmware mode (1/2) failed\n");
112 /* TODO following parameters need to be re-visited. */
114 param_host |= (1 << HI_OPTION_NUM_DEV_SHIFT);
116 /* FIXME: Why FW_MODE_AP ??.*/
117 param_host |= (HI_OPTION_FW_MODE_AP << HI_OPTION_FW_MODE_SHIFT);
118 /* mac_addr_method */
119 param_host |= (1 << HI_OPTION_MAC_ADDR_METHOD_SHIFT);
120 /* firmware_bridge */
121 param_host |= (0 << HI_OPTION_FW_BRIDGE_SHIFT);
123 param_host |= (0 << HI_OPTION_FW_SUBMODE_SHIFT);
125 ret = ath10k_bmi_write32(ar, hi_option_flag, param_host);
127 ath10k_err("setting firmware mode (2/2) failed\n");
131 /* We do all byte-swapping on the host */
132 ret = ath10k_bmi_write32(ar, hi_be, 0);
134 ath10k_err("setting host CPU BE mode failed\n");
138 /* FW descriptor/Data swap flags */
139 ret = ath10k_bmi_write32(ar, hi_fw_swap, 0);
142 ath10k_err("setting FW data/desc swap flags failed\n");
149 static const struct firmware *ath10k_fetch_fw_file(struct ath10k *ar,
154 const struct firmware *fw;
158 return ERR_PTR(-ENOENT);
163 snprintf(filename, sizeof(filename), "%s/%s", dir, file);
164 ret = request_firmware(&fw, filename, ar->dev);
171 static int ath10k_push_board_ext_data(struct ath10k *ar)
173 u32 board_data_size = QCA988X_BOARD_DATA_SZ;
174 u32 board_ext_data_size = QCA988X_BOARD_EXT_DATA_SZ;
175 u32 board_ext_data_addr;
178 ret = ath10k_bmi_read32(ar, hi_board_ext_data, &board_ext_data_addr);
180 ath10k_err("could not read board ext data addr (%d)\n", ret);
184 ath10k_dbg(ATH10K_DBG_BOOT,
185 "boot push board extended data addr 0x%x\n",
186 board_ext_data_addr);
188 if (board_ext_data_addr == 0)
191 if (ar->board_len != (board_data_size + board_ext_data_size)) {
192 ath10k_err("invalid board (ext) data sizes %zu != %d+%d\n",
193 ar->board_len, board_data_size, board_ext_data_size);
197 ret = ath10k_bmi_write_memory(ar, board_ext_data_addr,
198 ar->board_data + board_data_size,
199 board_ext_data_size);
201 ath10k_err("could not write board ext data (%d)\n", ret);
205 ret = ath10k_bmi_write32(ar, hi_board_ext_data_config,
206 (board_ext_data_size << 16) | 1);
208 ath10k_err("could not write board ext data bit (%d)\n", ret);
215 static int ath10k_download_board_data(struct ath10k *ar)
217 u32 board_data_size = QCA988X_BOARD_DATA_SZ;
221 ret = ath10k_push_board_ext_data(ar);
223 ath10k_err("could not push board ext data (%d)\n", ret);
227 ret = ath10k_bmi_read32(ar, hi_board_data, &address);
229 ath10k_err("could not read board data addr (%d)\n", ret);
233 ret = ath10k_bmi_write_memory(ar, address, ar->board_data,
234 min_t(u32, board_data_size,
237 ath10k_err("could not write board data (%d)\n", ret);
241 ret = ath10k_bmi_write32(ar, hi_board_data_initialized, 1);
243 ath10k_err("could not write board data bit (%d)\n", ret);
251 static int ath10k_download_and_run_otp(struct ath10k *ar)
253 u32 address = ar->hw_params.patch_load_addr;
257 /* OTP is optional */
259 if (!ar->otp_data || !ar->otp_len)
262 ret = ath10k_bmi_fast_download(ar, address, ar->otp_data, ar->otp_len);
264 ath10k_err("could not write otp (%d)\n", ret);
269 ret = ath10k_bmi_execute(ar, address, &exec_param);
271 ath10k_err("could not execute otp (%d)\n", ret);
279 static int ath10k_download_fw(struct ath10k *ar)
284 address = ar->hw_params.patch_load_addr;
286 ret = ath10k_bmi_fast_download(ar, address, ar->firmware_data,
289 ath10k_err("could not write fw (%d)\n", ret);
297 static void ath10k_core_free_firmware_files(struct ath10k *ar)
299 if (ar->board && !IS_ERR(ar->board))
300 release_firmware(ar->board);
302 if (ar->otp && !IS_ERR(ar->otp))
303 release_firmware(ar->otp);
305 if (ar->firmware && !IS_ERR(ar->firmware))
306 release_firmware(ar->firmware);
309 ar->board_data = NULL;
317 ar->firmware_data = NULL;
318 ar->firmware_len = 0;
321 static int ath10k_core_fetch_firmware_api_1(struct ath10k *ar)
325 if (ar->hw_params.fw.fw == NULL) {
326 ath10k_err("firmware file not defined\n");
330 if (ar->hw_params.fw.board == NULL) {
331 ath10k_err("board data file not defined");
335 ar->board = ath10k_fetch_fw_file(ar,
336 ar->hw_params.fw.dir,
337 ar->hw_params.fw.board);
338 if (IS_ERR(ar->board)) {
339 ret = PTR_ERR(ar->board);
340 ath10k_err("could not fetch board data (%d)\n", ret);
344 ar->board_data = ar->board->data;
345 ar->board_len = ar->board->size;
347 ar->firmware = ath10k_fetch_fw_file(ar,
348 ar->hw_params.fw.dir,
349 ar->hw_params.fw.fw);
350 if (IS_ERR(ar->firmware)) {
351 ret = PTR_ERR(ar->firmware);
352 ath10k_err("could not fetch firmware (%d)\n", ret);
356 ar->firmware_data = ar->firmware->data;
357 ar->firmware_len = ar->firmware->size;
359 /* OTP may be undefined. If so, don't fetch it at all */
360 if (ar->hw_params.fw.otp == NULL)
363 ar->otp = ath10k_fetch_fw_file(ar,
364 ar->hw_params.fw.dir,
365 ar->hw_params.fw.otp);
366 if (IS_ERR(ar->otp)) {
367 ret = PTR_ERR(ar->otp);
368 ath10k_err("could not fetch otp (%d)\n", ret);
372 ar->otp_data = ar->otp->data;
373 ar->otp_len = ar->otp->size;
378 ath10k_core_free_firmware_files(ar);
382 static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name)
384 size_t magic_len, len, ie_len;
385 int ie_id, i, index, bit, ret;
386 struct ath10k_fw_ie *hdr;
390 /* first fetch the firmware file (firmware-*.bin) */
391 ar->firmware = ath10k_fetch_fw_file(ar, ar->hw_params.fw.dir, name);
392 if (IS_ERR(ar->firmware)) {
393 ath10k_err("Could not fetch firmware file '%s': %ld\n",
394 name, PTR_ERR(ar->firmware));
395 return PTR_ERR(ar->firmware);
398 data = ar->firmware->data;
399 len = ar->firmware->size;
401 /* magic also includes the null byte, check that as well */
402 magic_len = strlen(ATH10K_FIRMWARE_MAGIC) + 1;
404 if (len < magic_len) {
405 ath10k_err("firmware image too small to contain magic: %zu\n",
411 if (memcmp(data, ATH10K_FIRMWARE_MAGIC, magic_len) != 0) {
412 ath10k_err("Invalid firmware magic\n");
417 /* jump over the padding */
418 magic_len = ALIGN(magic_len, 4);
424 while (len > sizeof(struct ath10k_fw_ie)) {
425 hdr = (struct ath10k_fw_ie *)data;
427 ie_id = le32_to_cpu(hdr->id);
428 ie_len = le32_to_cpu(hdr->len);
431 data += sizeof(*hdr);
434 ath10k_err("Invalid length for FW IE %d (%zu < %zu)\n",
441 case ATH10K_FW_IE_FW_VERSION:
442 if (ie_len > sizeof(ar->hw->wiphy->fw_version) - 1)
445 memcpy(ar->hw->wiphy->fw_version, data, ie_len);
446 ar->hw->wiphy->fw_version[ie_len] = '\0';
448 ath10k_dbg(ATH10K_DBG_BOOT,
449 "found fw version %s\n",
450 ar->hw->wiphy->fw_version);
452 case ATH10K_FW_IE_TIMESTAMP:
453 if (ie_len != sizeof(u32))
456 timestamp = (__le32 *)data;
458 ath10k_dbg(ATH10K_DBG_BOOT, "found fw timestamp %d\n",
459 le32_to_cpup(timestamp));
461 case ATH10K_FW_IE_FEATURES:
462 ath10k_dbg(ATH10K_DBG_BOOT,
463 "found firmware features ie (%zd B)\n",
466 for (i = 0; i < ATH10K_FW_FEATURE_COUNT; i++) {
473 if (data[index] & (1 << bit))
474 __set_bit(i, ar->fw_features);
477 ath10k_dbg_dump(ATH10K_DBG_BOOT, "features", "",
479 sizeof(ar->fw_features));
481 case ATH10K_FW_IE_FW_IMAGE:
482 ath10k_dbg(ATH10K_DBG_BOOT,
483 "found fw image ie (%zd B)\n",
486 ar->firmware_data = data;
487 ar->firmware_len = ie_len;
490 case ATH10K_FW_IE_OTP_IMAGE:
491 ath10k_dbg(ATH10K_DBG_BOOT,
492 "found otp image ie (%zd B)\n",
496 ar->otp_len = ie_len;
500 ath10k_warn("Unknown FW IE: %u\n",
501 le32_to_cpu(hdr->id));
505 /* jump over the padding */
506 ie_len = ALIGN(ie_len, 4);
512 if (!ar->firmware_data || !ar->firmware_len) {
513 ath10k_warn("No ATH10K_FW_IE_FW_IMAGE found from %s, skipping\n",
519 /* now fetch the board file */
520 if (ar->hw_params.fw.board == NULL) {
521 ath10k_err("board data file not defined");
526 ar->board = ath10k_fetch_fw_file(ar,
527 ar->hw_params.fw.dir,
528 ar->hw_params.fw.board);
529 if (IS_ERR(ar->board)) {
530 ret = PTR_ERR(ar->board);
531 ath10k_err("could not fetch board data (%d)\n", ret);
535 ar->board_data = ar->board->data;
536 ar->board_len = ar->board->size;
541 ath10k_core_free_firmware_files(ar);
545 static int ath10k_core_fetch_firmware_files(struct ath10k *ar)
549 ret = ath10k_core_fetch_firmware_api_n(ar, ATH10K_FW_API2_FILE);
555 ret = ath10k_core_fetch_firmware_api_1(ar);
562 ath10k_dbg(ATH10K_DBG_BOOT, "using fw api %d\n", ar->fw_api);
567 static int ath10k_init_download_firmware(struct ath10k *ar)
571 ret = ath10k_download_board_data(ar);
575 ret = ath10k_download_and_run_otp(ar);
579 ret = ath10k_download_fw(ar);
586 static int ath10k_init_uart(struct ath10k *ar)
591 * Explicitly setting UART prints to zero as target turns it on
592 * based on scratch registers.
594 ret = ath10k_bmi_write32(ar, hi_serial_enable, 0);
596 ath10k_warn("could not disable UART prints (%d)\n", ret);
601 ath10k_info("UART prints disabled\n");
605 ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, 7);
607 ath10k_warn("could not enable UART prints (%d)\n", ret);
611 ret = ath10k_bmi_write32(ar, hi_serial_enable, 1);
613 ath10k_warn("could not enable UART prints (%d)\n", ret);
617 /* Set the UART baud rate to 19200. */
618 ret = ath10k_bmi_write32(ar, hi_desired_baud_rate, 19200);
620 ath10k_warn("could not set the baud rate (%d)\n", ret);
624 ath10k_info("UART prints enabled\n");
628 static int ath10k_init_hw_params(struct ath10k *ar)
630 const struct ath10k_hw_params *uninitialized_var(hw_params);
633 for (i = 0; i < ARRAY_SIZE(ath10k_hw_params_list); i++) {
634 hw_params = &ath10k_hw_params_list[i];
636 if (hw_params->id == ar->target_version)
640 if (i == ARRAY_SIZE(ath10k_hw_params_list)) {
641 ath10k_err("Unsupported hardware version: 0x%x\n",
646 ar->hw_params = *hw_params;
648 ath10k_info("Hardware name %s version 0x%x\n",
649 ar->hw_params.name, ar->target_version);
654 static void ath10k_core_restart(struct work_struct *work)
656 struct ath10k *ar = container_of(work, struct ath10k, restart_work);
658 mutex_lock(&ar->conf_mutex);
661 case ATH10K_STATE_ON:
663 ar->state = ATH10K_STATE_RESTARTING;
664 ieee80211_restart_hw(ar->hw);
666 case ATH10K_STATE_OFF:
667 /* this can happen if driver is being unloaded */
668 ath10k_warn("cannot restart a device that hasn't been started\n");
670 case ATH10K_STATE_RESTARTING:
671 case ATH10K_STATE_RESTARTED:
672 ar->state = ATH10K_STATE_WEDGED;
674 case ATH10K_STATE_WEDGED:
675 ath10k_warn("device is wedged, will not restart\n");
679 mutex_unlock(&ar->conf_mutex);
682 struct ath10k *ath10k_core_create(void *hif_priv, struct device *dev,
683 const struct ath10k_hif_ops *hif_ops)
687 ar = ath10k_mac_create();
691 ar->ath_common.priv = ar;
692 ar->ath_common.hw = ar->hw;
694 ar->p2p = !!ath10k_p2p;
697 ar->hif.priv = hif_priv;
698 ar->hif.ops = hif_ops;
700 init_completion(&ar->scan.started);
701 init_completion(&ar->scan.completed);
702 init_completion(&ar->scan.on_channel);
704 init_completion(&ar->install_key_done);
705 init_completion(&ar->vdev_setup_done);
707 setup_timer(&ar->scan.timeout, ath10k_reset_scan, (unsigned long)ar);
709 ar->workqueue = create_singlethread_workqueue("ath10k_wq");
713 mutex_init(&ar->conf_mutex);
714 spin_lock_init(&ar->data_lock);
716 INIT_LIST_HEAD(&ar->peers);
717 init_waitqueue_head(&ar->peer_mapping_wq);
719 init_completion(&ar->offchan_tx_completed);
720 INIT_WORK(&ar->offchan_tx_work, ath10k_offchan_tx_work);
721 skb_queue_head_init(&ar->offchan_tx_queue);
723 INIT_WORK(&ar->wmi_mgmt_tx_work, ath10k_mgmt_over_wmi_tx_work);
724 skb_queue_head_init(&ar->wmi_mgmt_tx_queue);
726 init_waitqueue_head(&ar->event_queue);
728 INIT_WORK(&ar->restart_work, ath10k_core_restart);
733 ath10k_mac_destroy(ar);
736 EXPORT_SYMBOL(ath10k_core_create);
738 void ath10k_core_destroy(struct ath10k *ar)
740 ath10k_debug_destroy(ar);
742 flush_workqueue(ar->workqueue);
743 destroy_workqueue(ar->workqueue);
745 ath10k_mac_destroy(ar);
747 EXPORT_SYMBOL(ath10k_core_destroy);
749 int ath10k_core_start(struct ath10k *ar)
753 lockdep_assert_held(&ar->conf_mutex);
755 ath10k_bmi_start(ar);
757 if (ath10k_init_configure_target(ar)) {
762 status = ath10k_init_download_firmware(ar);
766 status = ath10k_init_uart(ar);
770 ar->htc.htc_ops.target_send_suspend_complete =
771 ath10k_send_suspend_complete;
773 status = ath10k_htc_init(ar);
775 ath10k_err("could not init HTC (%d)\n", status);
779 status = ath10k_bmi_done(ar);
783 status = ath10k_wmi_attach(ar);
785 ath10k_err("WMI attach failed: %d\n", status);
789 status = ath10k_htc_wait_target(&ar->htc);
793 status = ath10k_htt_attach(ar);
795 ath10k_err("could not attach htt (%d)\n", status);
799 status = ath10k_init_connect_htc(ar);
803 ath10k_info("firmware %s booted\n", ar->hw->wiphy->fw_version);
805 status = ath10k_wmi_cmd_init(ar);
807 ath10k_err("could not send WMI init command (%d)\n", status);
808 goto err_disconnect_htc;
811 status = ath10k_wmi_wait_for_unified_ready(ar);
813 ath10k_err("wmi unified ready event not received\n");
815 goto err_disconnect_htc;
818 status = ath10k_htt_attach_target(&ar->htt);
820 goto err_disconnect_htc;
822 status = ath10k_debug_start(ar);
824 goto err_disconnect_htc;
826 ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1;
827 INIT_LIST_HEAD(&ar->arvifs);
832 ath10k_htc_stop(&ar->htc);
834 ath10k_htt_detach(&ar->htt);
836 ath10k_wmi_detach(ar);
840 EXPORT_SYMBOL(ath10k_core_start);
842 void ath10k_core_stop(struct ath10k *ar)
844 lockdep_assert_held(&ar->conf_mutex);
846 ath10k_debug_stop(ar);
847 ath10k_htc_stop(&ar->htc);
848 ath10k_htt_detach(&ar->htt);
849 ath10k_wmi_detach(ar);
851 EXPORT_SYMBOL(ath10k_core_stop);
853 /* mac80211 manages fw/hw initialization through start/stop hooks. However in
854 * order to know what hw capabilities should be advertised to mac80211 it is
855 * necessary to load the firmware (and tear it down immediately since start
856 * hook will try to init it again) before registering */
857 static int ath10k_core_probe_fw(struct ath10k *ar)
859 struct bmi_target_info target_info;
862 ret = ath10k_hif_power_up(ar);
864 ath10k_err("could not start pci hif (%d)\n", ret);
868 memset(&target_info, 0, sizeof(target_info));
869 ret = ath10k_bmi_get_target_info(ar, &target_info);
871 ath10k_err("could not get target info (%d)\n", ret);
872 ath10k_hif_power_down(ar);
876 ar->target_version = target_info.version;
877 ar->hw->wiphy->hw_version = target_info.version;
879 ret = ath10k_init_hw_params(ar);
881 ath10k_err("could not get hw params (%d)\n", ret);
882 ath10k_hif_power_down(ar);
886 ret = ath10k_core_fetch_firmware_files(ar);
888 ath10k_err("could not fetch firmware files (%d)\n", ret);
889 ath10k_hif_power_down(ar);
893 mutex_lock(&ar->conf_mutex);
895 ret = ath10k_core_start(ar);
897 ath10k_err("could not init core (%d)\n", ret);
898 ath10k_core_free_firmware_files(ar);
899 ath10k_hif_power_down(ar);
900 mutex_unlock(&ar->conf_mutex);
904 ath10k_core_stop(ar);
906 mutex_unlock(&ar->conf_mutex);
908 ath10k_hif_power_down(ar);
912 static int ath10k_core_check_chip_id(struct ath10k *ar)
914 u32 hw_revision = MS(ar->chip_id, SOC_CHIP_ID_REV);
916 ath10k_dbg(ATH10K_DBG_BOOT, "boot chip_id 0x%08x hw_revision 0x%x\n",
917 ar->chip_id, hw_revision);
919 /* Check that we are not using hw1.0 (some of them have same pci id
920 * as hw2.0) before doing anything else as ath10k crashes horribly
921 * due to missing hw1.0 workarounds. */
922 switch (hw_revision) {
923 case QCA988X_HW_1_0_CHIP_ID_REV:
924 ath10k_err("ERROR: qca988x hw1.0 is not supported\n");
927 case QCA988X_HW_2_0_CHIP_ID_REV:
928 /* known hardware revision, continue normally */
932 ath10k_warn("Warning: hardware revision unknown (0x%x), expect problems\n",
940 int ath10k_core_register(struct ath10k *ar, u32 chip_id)
944 ar->chip_id = chip_id;
946 status = ath10k_core_check_chip_id(ar);
948 ath10k_err("Unsupported chip id 0x%08x\n", ar->chip_id);
952 status = ath10k_core_probe_fw(ar);
954 ath10k_err("could not probe fw (%d)\n", status);
958 status = ath10k_mac_register(ar);
960 ath10k_err("could not register to mac80211 (%d)\n", status);
964 status = ath10k_debug_create(ar);
966 ath10k_err("unable to initialize debugfs\n");
967 goto err_unregister_mac;
973 ath10k_mac_unregister(ar);
975 ath10k_core_free_firmware_files(ar);
978 EXPORT_SYMBOL(ath10k_core_register);
980 void ath10k_core_unregister(struct ath10k *ar)
982 /* We must unregister from mac80211 before we stop HTC and HIF.
983 * Otherwise we will fail to submit commands to FW and mac80211 will be
984 * unhappy about callback failures. */
985 ath10k_mac_unregister(ar);
987 ath10k_core_free_firmware_files(ar);
989 EXPORT_SYMBOL(ath10k_core_unregister);
991 MODULE_AUTHOR("Qualcomm Atheros");
992 MODULE_DESCRIPTION("Core module for QCA988X PCIe devices.");
993 MODULE_LICENSE("Dual BSD/GPL");