1 /* 2 * Header file for DHD daemon to handle timeouts 3 * 4 * Copyright (C) 1999-2019, 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 16 * of the license of that module. An independent module is a module which is 17 * not derived from this software. The special exception does not apply to any 18 * modifications of the software. 19 * 20 * Notwithstanding the above, under no circumstances may you combine this 21 * software in any way with any other Broadcom software provided under a license 22 * other than the GPL, without Broadcom's express prior written consent. 23 * 24 * 25 * <<Broadcom-WL-IPTag/Open:>> 26 * 27 * $Id: dhd_daemon.h 802947 2019-02-05 14:53:08Z $ 28 */ 29 30 #ifndef __BCM_DHDD_H__ 31 #define __BCM_DHDD_H__ 32 33 /** 34 * To maintain compatabily when dhd driver and dhd daemon is taken from 35 * different branches, make sure to keep this file same across dhd driver branch 36 * and dhd apps branch. 37 * Make this file as shared between apps and dhd.ko 38 */ 39 40 #define BCM_TO_MAGIC 0x600DB055 41 #define NO_TRAP 0 42 #define DO_TRAP 1 43 44 /* Keep common BCM netlink macros here */ 45 #define BCM_NL_USER 31 46 #define BCM_NL_OXYGEN 30 47 #define BCM_NL_TS 29 48 /* ====== !! ADD NEW NL socket related defines here !! ====== */ 49 50 typedef enum notify_dhd_daemon_reason { 51 REASON_COMMAND_TO, 52 REASON_OQS_TO, 53 REASON_SCAN_TO, 54 REASON_JOIN_TO, 55 REASON_DAEMON_STARTED, 56 REASON_DEVICE_TX_STUCK_WARNING, 57 REASON_DEVICE_TX_STUCK, 58 REASON_UNKOWN 59 } notify_dhd_daemon_reason_t; 60 61 typedef struct bcm_to_info { 62 int magic; 63 int reason; 64 int trap; 65 } bcm_to_info_t; 66 67 #endif /* __BCM_DHDD_H__ */ 68