blob: ddb60fb35bdb3e8e003d5768b2236374e507db14 [file] [log] [blame]
Lukas Hänel28a9ffd2012-11-07 13:17:39 +09001/*
2 * MobiCore driver module.(interface to the secure world SWD)
3 *
4 * <-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
Oana Medvesaneedd9e92013-02-21 19:39:04 +01005 * <-- Copyright Trustonic Limited 2013 -->
Lukas Hänel28a9ffd2012-11-07 13:17:39 +09006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#ifndef _MC_LOGGING_H_
13#define _MC_LOGGING_H_
14
15/* MobiCore internal trace buffer structure. */
16struct mc_trace_buf {
17 uint32_t version; /* version of trace buffer */
18 uint32_t length; /* length of allocated buffer(includes header) */
19 uint32_t write_pos; /* last write position */
20 char buff[1]; /* start of the log buffer */
21};
22
23/* MobiCore internal trace log setup. */
24void mobicore_log_read(void);
25long mobicore_log_setup(void);
26void mobicore_log_free(void);
27
28#endif /* _MC_LOGGING_H_ */