1 /* Copyright (C) 2007-2008 The Android Open Source Project 2 ** 3 ** This software is licensed under the terms of the GNU General Public 4 ** License version 2, as published by the Free Software Foundation, and 5 ** may be copied, distributed, and modified under those terms. 6 ** 7 ** This program is distributed in the hope that it will be useful, 8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 ** GNU General Public License for more details. 11 */ 12 #ifndef _android_kmsg_h 13 #define _android_kmsg_h 14 15 #include "qemu-common.h" 16 17 /* this chardriver is used to read the kernel messages coming 18 * from the first serial port (i.e. /dev/ttyS0) and store them 19 * in memory for later... 20 */ 21 22 typedef enum { 23 ANDROID_KMSG_SAVE_MESSAGES = (1 << 0), 24 ANDROID_KMSG_PRINT_MESSAGES = (1 << 1), 25 } AndroidKmsgFlags; 26 27 extern void android_kmsg_init( AndroidKmsgFlags flags ); 28 29 extern CharDriverState* android_kmsg_get_cs( void ); 30 31 #endif /* _android_kmsg_h */ 32