M7350/kernel/drivers/gud/MobiCoreDriver/logging.h

52 lines
1.2 KiB
C
Raw Normal View History

2024-09-09 08:57:42 +00:00
/*
* Copyright (c) 2013-2015 TRUSTONIC LIMITED
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _MC_LOGGING_H_
#define _MC_LOGGING_H_
#include "platform.h" /* CONFIG_TRUSTONIC_TEE_NO_TRACES */
/* MobiCore internal trace log setup. */
#ifndef CONFIG_TRUSTONIC_TEE_NO_TRACES
void mc_logging_run(void);
int mc_logging_init(void);
void mc_logging_exit(void);
int mc_logging_start(void);
void mc_logging_stop(void);
#else /* !CONFIG_TRUSTONIC_TEE_NO_TRACES */
static inline void mc_logging_run(void)
{
}
static inline long mc_logging_init(void)
{
return 0;
}
static inline void mc_logging_exit(void)
{
}
static inline int mc_logging_start(void)
{
return 0;
}
static inline void mc_logging_stop(void)
{
}
#endif /* CONFIG_TRUSTONIC_TEE_NO_TRACES */
#endif /* _MC_LOGGING_H_ */