blob: 27a5ef3c2900a1435d6cbf4c76db3abb578d5405 [file] [log] [blame]
/** MobiCore driver module.(interface to the secure world SWD)
* <!-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __MC_LOGGING_H
#define __MC_LOGGING_H
/** MobiCore internal trace buffer structure. */
struct mc_trace_buf {
uint32_t version; /**< version of trace buffer */
uint32_t length; /**< length of allocated buffer(includes header) */
uint32_t write_pos; /**< last write position */
char buff[1]; /**< start of the log buffer */
};
/*** MobiCore internal trace log setup. */
void mobicore_log_read(void);
long mobicore_log_setup(void);
void mobicore_log_free(void);
#endif /* __MC_LOGGING_H */