/* SPDX-License-Identifier: GPL-2.0-only */1/*2* memconsole.h3*4* Internal headers of the memory based BIOS console.5*6* Copyright 2017 Google Inc.7*/89#ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H10#define __FIRMWARE_GOOGLE_MEMCONSOLE_H1112#include <linux/types.h>1314/*15* memconsole_setup16*17* Initialize the memory console, passing the function to handle read accesses.18*/19void memconsole_setup(ssize_t (*read_func)(char *, loff_t, size_t));2021/*22* memconsole_sysfs_init23*24* Update memory console length and create binary file25* for firmware object.26*/27int memconsole_sysfs_init(void);2829/* memconsole_exit30*31* Unmap the console buffer.32*/33void memconsole_exit(void);3435#endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */363738