trace: move struct definition out of header

Moves trace struct definition out of header.
It isn't used anywhere besides trace unit.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2020-03-17 16:47:09 +01:00 committed by Tomasz Lauda
parent a133d5d52a
commit 1df122dad1
2 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,6 @@
#endif
#include <sof/common.h>
#include <sof/sof.h>
#include <sof/spinlock.h>
#include <sof/trace/preproc.h>
#include <config.h>
#include <stdint.h>
@ -29,12 +28,7 @@
#endif
struct sof;
struct trace {
uint32_t pos ; /* trace position */
uint32_t enable;
spinlock_t lock; /* locking mechanism */
};
struct trace;
/* bootloader trace values */
#define TRACE_BOOT_LDR_ENTRY 0x100

View File

@ -23,6 +23,12 @@
#include <user/trace.h>
#include <stdint.h>
struct trace {
uint32_t pos ; /* trace position */
uint32_t enable;
spinlock_t lock; /* locking mechanism */
};
/* calculates total message size, both header and payload in bytes */
#define MESSAGE_SIZE(args_num) \
(sizeof(struct log_entry_header) + args_num * sizeof(uint32_t))