2019-06-01 03:43:36 +08:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*
|
|
|
|
* Copyright(c) 2018 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
|
|
|
|
* Artur Kloniecki <arturx.kloniecki@linux.intel.com>
|
|
|
|
*/
|
|
|
|
|
2018-10-02 15:36:44 +08:00
|
|
|
/*
|
2019-06-01 03:43:36 +08:00
|
|
|
* debug log converter interface.
|
|
|
|
*/
|
|
|
|
|
2018-10-02 15:36:44 +08:00
|
|
|
#include <stdio.h>
|
2019-05-31 21:04:48 +08:00
|
|
|
#include <user/trace.h>
|
|
|
|
#include <ipc/info.h>
|
2018-11-27 17:43:06 +08:00
|
|
|
#include <rimage/file_format.h>
|
2018-10-02 15:36:44 +08:00
|
|
|
|
2018-12-04 00:45:42 +08:00
|
|
|
#define KNRM "\x1B[0m"
|
|
|
|
#define KRED "\x1B[31m"
|
2018-10-02 15:36:44 +08:00
|
|
|
|
|
|
|
struct convert_config {
|
|
|
|
const char *out_file;
|
|
|
|
const char *in_file;
|
|
|
|
FILE *out_fd;
|
|
|
|
FILE *in_fd;
|
|
|
|
double clock;
|
|
|
|
int trace;
|
|
|
|
const char *ldc_file;
|
|
|
|
FILE* ldc_fd;
|
2018-10-08 20:18:08 +08:00
|
|
|
int input_std;
|
2018-10-24 21:17:33 +08:00
|
|
|
int version_fw;
|
|
|
|
char *version_file;
|
|
|
|
FILE *version_fd;
|
2018-12-04 00:45:42 +08:00
|
|
|
int use_colors;
|
2019-01-09 18:03:57 +08:00
|
|
|
int serial_fd;
|
2019-03-29 23:15:04 +08:00
|
|
|
int raw_output;
|
2018-10-02 15:36:44 +08:00
|
|
|
};
|
|
|
|
|
2019-01-09 17:44:41 +08:00
|
|
|
int convert(const struct convert_config *config);
|