Lukas Hänel | 28a9ffd | 2012-11-07 13:17:39 +0900 | [diff] [blame] | 1 | /* |
| 2 | * MobiCore driver module.(interface to the secure world SWD) |
| 3 | * |
| 4 | * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> |
Oana Medvesan | eedd9e9 | 2013-02-21 19:39:04 +0100 | [diff] [blame] | 5 | * <-- Copyright Trustonic Limited 2013 --> |
Lukas Hänel | 28a9ffd | 2012-11-07 13:17:39 +0900 | [diff] [blame] | 6 | * |
| 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. */ |
| 16 | struct 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. */ |
| 24 | void mobicore_log_read(void); |
| 25 | long mobicore_log_setup(void); |
| 26 | void mobicore_log_free(void); |
| 27 | |
| 28 | #endif /* _MC_LOGGING_H_ */ |