Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * memconsole.h
 4 *
 5 * Internal headers of the memory based BIOS console.
 6 *
 7 * Copyright 2017 Google Inc.
 8 */
 9
10#ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H
11#define __FIRMWARE_GOOGLE_MEMCONSOLE_H
12
13#include <linux/types.h>
14
15/*
16 * memconsole_setup
17 *
18 * Initialize the memory console, passing the function to handle read accesses.
19 */
20void memconsole_setup(ssize_t (*read_func)(char *, loff_t, size_t));
21
22/*
23 * memconsole_sysfs_init
24 *
25 * Update memory console length and create binary file
26 * for firmware object.
27 */
28int memconsole_sysfs_init(void);
29
30/* memconsole_exit
31 *
32 * Unmap the console buffer.
33 */
34void memconsole_exit(void);
35
36#endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * memconsole.h
 4 *
 5 * Internal headers of the memory based BIOS console.
 6 *
 7 * Copyright 2017 Google Inc.
 8 */
 9
10#ifndef __FIRMWARE_GOOGLE_MEMCONSOLE_H
11#define __FIRMWARE_GOOGLE_MEMCONSOLE_H
12
13#include <linux/types.h>
14
15/*
16 * memconsole_setup
17 *
18 * Initialize the memory console, passing the function to handle read accesses.
19 */
20void memconsole_setup(ssize_t (*read_func)(char *, loff_t, size_t));
21
22/*
23 * memconsole_sysfs_init
24 *
25 * Update memory console length and create binary file
26 * for firmware object.
27 */
28int memconsole_sysfs_init(void);
29
30/* memconsole_exit
31 *
32 * Unmap the console buffer.
33 */
34void memconsole_exit(void);
35
36#endif /* __FIRMWARE_GOOGLE_MEMCONSOLE_H */