adt3-S dhd_driver source code [1/1]
[GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_dhd-driver.git] / bcmdhd.100.10.315.x / include / msf.h
1 /*
2 * Common interface to MSF (multi-segment format) definitions.
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 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 * 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: msf.h 619634 2016-02-17 19:01:25Z $
28 */
29
30 #ifndef _WLC_MSF_H_
31 #define _WLC_MSF_H_
32
33 struct wl_segment {
34 uint32 type;
35 uint32 offset;
36 uint32 length;
37 uint32 crc32;
38 uint32 flags;
39 };
40 typedef struct wl_segment wl_segment_t;
41
42 struct wl_segment_info {
43 uint8 magic[4];
44 uint32 hdr_len;
45 uint32 crc32;
46 uint32 file_type;
47 uint32 num_segments;
48 wl_segment_t segments[1];
49 };
50 typedef struct wl_segment_info wl_segment_info_t;
51
52 typedef struct wlc_blob_segment {
53 uint32 type;
54 uint8 *data;
55 uint32 length;
56 } wlc_blob_segment_t;
57
58 /** Segment types in Binary Eventlog Archive file */
59 enum bea_seg_type_e {
60 MSF_SEG_TYP_RTECDC_BIN = 1,
61 MSF_SEG_TYP_LOGSTRS_BIN = 2,
62 MSF_SEG_TYP_FW_SYMBOLS = 3,
63 MSF_SEG_TYP_ROML_BIN = 4
64 };
65
66 #endif /* _WLC_MSF_H */