1 /*
2 * Copyright (c) 2020 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef WLAN_HDD_BOOTUP_MARKER_H
20 #define WLAN_HDD_BOOTUP_MARKER_H
21
22 /**
23 * DOC: wlan_hdd_bootup_marker.h
24 *
25 * WLAN Host Device Driver Bootup Marker header file
26 */
27
28 #include "wlan_hdd_main.h"
29
30 #ifdef WLAN_BOOTUP_MARKER
31 /**
32 * hdd_place_marker() - record bootup marker for some events
33 * @adapter: hdd adapter pointer
34 * @format: The strings of the events
35 * @mac: mac address of peer device
36 *
37 * Return: None
38 */
39 void hdd_place_marker(struct hdd_adapter *adapter,
40 const char *format,
41 uint8_t *mac);
42 #else
43 static inline
hdd_place_marker(struct hdd_adapter * adapter,const char * format,uint8_t * mac)44 void hdd_place_marker(struct hdd_adapter *adapter,
45 const char *format,
46 uint8_t *mac)
47 {
48 }
49 #endif
50 #endif /* WLAN_HDD_BOOTUP_MARKER_H */
51