1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Header file for DHD daemon to handle timeouts 4 * 5 * Copyright (C) 1999-2019, Broadcom. 6 * 7 * Unless you and Broadcom execute a separate written software license 8 * agreement governing use of this software, this software is licensed to you 9 * under the terms of the GNU General Public License version 2 (the "GPL"), 10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 11 * following added to such license: 12 * 13 * As a special exception, the copyright holders of this software give you 14 * permission to link this software with independent modules, and to copy and 15 * distribute the resulting executable under terms of your choice, provided that 16 * you also meet, for each linked independent module, the terms and conditions of 17 * the license of that module. An independent module is a module which is not 18 * derived from this software. The special exception does not apply to any 19 * modifications of the software. 20 * 21 * Notwithstanding the above, under no circumstances may you combine this 22 * software in any way with any other Broadcom software provided under a license 23 * other than the GPL, without Broadcom's express prior written consent. 24 * 25 * 26 * <<Broadcom-WL-IPTag/Open:>> 27 * 28 * $Id: dhd_daemon.h 802947 2019-02-05 14:53:08Z $ 29 */ 30 31 #ifndef __BCM_DHDD_H__ 32 #define __BCM_DHDD_H__ 33 34 /** 35 * To maintain compatabily when dhd driver and dhd daemon is taken from different branches, 36 * make sure to keep this file same across dhd driver branch and dhd apps branch. 37 * TODO: 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