4 * Internal headers of the memory based BIOS console.
6 * Copyright 2017 Google Inc.
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.
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.
18 #ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H
19 #define __FIRMWARE_GOOGLE_MEMCONSOLE_H
21 #include <linux/types.h>
26 * Initialize the memory console, passing the function to handle read accesses.
28 void memconsole_setup(ssize_t (*read_func
)(char *, loff_t
, size_t));
31 * memconsole_sysfs_init
33 * Update memory console length and create binary file
34 * for firmware object.
36 int memconsole_sysfs_init(void);
40 * Unmap the console buffer.
42 void memconsole_exit(void);
44 #endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */