/* * Copyright (C) 2015 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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 _GZ_LOG_H_ #define _GZ_LOG_H_ /* * Ring buffer that supports one secure producer thread and one * linux side consumer thread. */ struct log_rb { uint32_t alloc; uint32_t put; uint32_t sz; char data[0]; } __packed; #define TRUSTY_LOG_API_VERSION (1) void get_gz_log_buffer(unsigned long *addr, unsigned long *paddr, unsigned long *size, unsigned long *start); #endif