lin
2025-07-31 065ea569db06206874bbfa18eb25ff6121aec09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************
 *Copyright (C) 2021 Seekwave Tech Inc.
 *Filename : skw_sdio.h
 *Authors:seekwave platform
 *
 * This software is licensed under the terms of the the GNU
 * General Public License version 2, as published by the Free
 * Software Foundation, and may be copied, distributed, and
 * modified under those terms.
 *
 * This program is distributed in the hope that it will be usefull,
 * but without any warranty;without even the implied warranty of
 * merchantability or fitness for a partcular purpose. See the
 * GUN General Public License for more details.
 * **************************************************************/
#ifndef __SKW_LOG_H__
#define __SKW_LOG_H__
 
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/workqueue.h>
 
/****************************************************************
 *Description:the skwsdio log define and the skwsdio data debug,
 *Func: skwsdio_log, skwsdio_err, skwsdio_data_pr;
 *Calls:
 *Call By:
 *Input: skwsdio log debug informations
 *Output:
 *Return:
 *Others:
 *Author:JUNWEI.JIANG
 *Date:2022-07-18
 * **************************************************************/
#define skwlog_log(fmt, args...) \
    pr_info("[SKWLOG]:" fmt, ## args)
 
#define skwlog_err(fmt, args...) \
    pr_err("[SKWLOG_ERR]:" fmt, ## args)
 
#define skwlog_warn(fmt, args...) \
    pr_warn("[SKWLOG_WARN]:" fmt, ## args)
 
int skw_modem_log_init(struct sv6160_platform_data *p_data, struct file *fp, void *ucom);
void skw_modem_log_set_assert_status(uint32_t cp_assert);
void skw_modem_dumpmodem_start_rec(void);
void skw_modem_log_start_rec(void);
void skw_modem_log_stop_rec(void);
void skw_modem_log_exit(void);
#endif