xref: /haiku/headers/private/kernel/frame_buffer_console.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef KERNEL_FRAME_BUFFER_CONSOLE_H
6 #define KERNEL_FRAME_BUFFER_CONSOLE_H
7 
8 #include <console.h>
9 
10 struct kernel_args;
11 
12 
13 #define FRAME_BUFFER_CONSOLE_MODULE_NAME "console/frame_buffer/v1"
14 #define FRAME_BUFFER_BOOT_INFO "frame_buffer/v1"
15 
16 struct frame_buffer_boot_info {
17 	area_id	area;
18 	addr_t	frame_buffer;
19 	int32	width;
20 	int32	height;
21 	int32	depth;
22 	int32	bytes_per_row;
23 };
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 bool frame_buffer_console_available(void);
30 status_t frame_buffer_console_init(struct kernel_args *args);
31 status_t frame_buffer_console_init_post_modules(struct kernel_args *args);
32 
33 status_t _user_frame_buffer_update(addr_t baseAddress, int32 width, int32 height,
34 			int32 depth, int32 bytesPerRow);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif	/* KERNEL_FRAME_BUFFER_CONSOLE_H */
41