mic: vop: Fix use-after-free on remove
[linux/fpc-iii.git] / drivers / firmware / google / memconsole.h
blobff1592dc7d1a4bf4886446c31f0d376356945c19
1 /*
2 * memconsole.h
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>
24 * memconsole_setup
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);
38 /* memconsole_exit
40 * Unmap the console buffer.
42 void memconsole_exit(void);
44 #endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */