mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
d95236782b
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license v2 0 as published by the free software foundation 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 23 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141901.115786599@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 lines
719 B
C
37 lines
719 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* memconsole.h
|
|
*
|
|
* Internal headers of the memory based BIOS console.
|
|
*
|
|
* Copyright 2017 Google Inc.
|
|
*/
|
|
|
|
#ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H
|
|
#define __FIRMWARE_GOOGLE_MEMCONSOLE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* memconsole_setup
|
|
*
|
|
* Initialize the memory console, passing the function to handle read accesses.
|
|
*/
|
|
void memconsole_setup(ssize_t (*read_func)(char *, loff_t, size_t));
|
|
|
|
/*
|
|
* memconsole_sysfs_init
|
|
*
|
|
* Update memory console length and create binary file
|
|
* for firmware object.
|
|
*/
|
|
int memconsole_sysfs_init(void);
|
|
|
|
/* memconsole_exit
|
|
*
|
|
* Unmap the console buffer.
|
|
*/
|
|
void memconsole_exit(void);
|
|
|
|
#endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */
|