hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
/**
 ******************************************************************************
 *
 * rwnx_fw_trace.h
 *
 * Copyright (C) RivieraWaves 2017-2019
 *
 ******************************************************************************
 */
 
#ifndef _RWNX_FW_TRACE_H_
#define _RWNX_FW_TRACE_H_
 
#include <linux/mutex.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
 
#define FW_LOG_SIZE (10240)
 
struct rwnx_fw_log_buf {
   uint8_t *data;
   uint8_t *start;
   uint8_t *end;
   uint8_t *dataend;
   uint32_t size;
};
 
struct rwnx_fw_log {
   struct rwnx_fw_log_buf buf;
   spinlock_t lock;
};
 
int rwnx_fw_log_init(struct rwnx_fw_log *fw_log);
void rwnx_fw_log_deinit(struct rwnx_fw_log *fw_log);
#endif /* _RWNX_FW_TRACE_H_ */