1 /* 2 * Header file for DHD daemon to handle timeouts 3 * 4 * Copyright (C) 2020, Broadcom. 5 * 6 * Unless you and Broadcom execute a separate written software license 7 * agreement governing use of this software, this software is licensed to you 8 * under the terms of the GNU General Public License version 2 (the "GPL"), 9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 10 * following added to such license: 11 * 12 * As a special exception, the copyright holders of this software give you 13 * permission to link this software with independent modules, and to copy and 14 * distribute the resulting executable under terms of your choice, provided that 15 * you also meet, for each linked independent module, the terms and conditions of 16 * the license of that module. An independent module is a module which is not 17 * derived from this software. The special exception does not apply to any 18 * modifications of the software. 19 * 20 * 21 * <<Broadcom-WL-IPTag/Dual:>> 22 */ 23 24 #ifndef __BCM_DHDD_H__ 25 #define __BCM_DHDD_H__ 26 27 #include <brcm_nl80211.h> 28 /** 29 * To maintain compatabily when dhd driver and dhd daemon is taken from different branches, 30 * make sure to keep this file same across dhd driver branch and dhd apps branch. 31 * TODO: Make this file as shared between apps and dhd.ko 32 */ 33 34 #define BCM_TO_MAGIC 0x600DB055 35 #define NO_TRAP 0 36 #define DO_TRAP 1 37 38 typedef enum notify_dhd_daemon_reason { 39 REASON_COMMAND_TO, 40 REASON_OQS_TO, 41 REASON_SCAN_TO, 42 REASON_JOIN_TO, 43 REASON_DAEMON_STARTED, 44 REASON_DEVICE_TX_STUCK_WARNING, 45 REASON_DEVICE_TX_STUCK, 46 REASON_UNKOWN 47 } notify_dhd_daemon_reason_t; 48 49 typedef struct bcm_to_info { 50 int magic; 51 int reason; 52 int trap; 53 } bcm_to_info_t; 54 55 #endif /* __BCM_DHDD_H__ */ 56