xref: /haiku/src/add-ons/kernel/drivers/graphics/vesa/vesa_private.h (revision a1163de83ea633463a79de234b8742ee106531b2)
1 /*
2  * Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef VESA_PRIVATE_H
6 #define VESA_PRIVATE_H
7 
8 
9 #include <Drivers.h>
10 #include <Accelerant.h>
11 #include <PCI.h>
12 
13 
14 #define DEVICE_NAME				"vesa"
15 #define VESA_ACCELERANT_NAME	"vesa.accelerant"
16 
17 
18 struct vesa_get_supported_modes;
19 struct vesa_mode;
20 
21 struct vesa_info {
22 	uint32			cookie_magic;
23 	int32			open_count;
24 	int32			id;
25 	pci_info*		pci;
26 	struct vesa_shared_info* shared_info;
27 	area_id			shared_area;
28 	vesa_mode*		modes;
29 	uint32			vbe_dpms_capabilities;
30 };
31 
32 extern status_t vesa_init(vesa_info& info);
33 extern void vesa_uninit(vesa_info& info);
34 extern status_t vesa_set_display_mode(vesa_info& info, uint32 mode);
35 extern status_t vesa_get_dpms_mode(vesa_info& info, uint32& mode);
36 extern status_t vesa_set_dpms_mode(vesa_info& info, uint32 mode);
37 
38 #endif	/* VESA_PRIVATE_H */
39