1 /* 2 * memconsole.h 3 * 4 * Internal headers of the memory based BIOS console. 5 * 6 * Copyright 2017 Google Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License v2.0 as published by 10 * the Free Software Foundation. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 */ 17 18 #ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H 19 #define __FIRMWARE_GOOGLE_MEMCONSOLE_H 20 21 /* 22 * memconsole_setup 23 * 24 * Initialize the memory console from raw (virtual) base 25 * address and length. 26 */ 27 void memconsole_setup(void *baseaddr, size_t length); 28 29 /* 30 * memconsole_sysfs_init 31 * 32 * Update memory console length and create binary file 33 * for firmware object. 34 */ 35 int memconsole_sysfs_init(void); 36 37 /* memconsole_exit 38 * 39 * Unmap the console buffer. 40 */ 41 void memconsole_exit(void); 42 43 #endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */ 44