xref: /haiku/src/add-ons/accelerants/via/engine/globals.c (revision 4a850ca730d8282b5b924e49e09b4ba4d6db7f54)
1 /*
2 	Copyright 1999, Be Incorporated.   All Rights Reserved.
3 	This file may be used under the terms of the Be Sample Code License.
4 
5 	Other authors:
6 	Mark Watson,
7 	Rudolf Cornelissen 8/2004
8 */
9 
10 #include "std.h"
11 
12 int fd;
13 shared_info *si;
14 area_id shared_info_area;
15 vuint32 *regs;
16 area_id regs_area;
17 display_mode *my_mode_list;
18 area_id	my_mode_list_area;
19 int accelerantIsClone;
20 
21 crtc_validate_timing 	head1_validate_timing;
22 crtc_set_timing 		head1_set_timing;
23 crtc_depth				head1_depth;
24 crtc_dpms				head1_dpms;
25 crtc_dpms_fetch			head1_dpms_fetch;
26 crtc_set_display_pitch	head1_set_display_pitch;
27 crtc_set_display_start	head1_set_display_start;
28 crtc_cursor_init		head1_cursor_init;
29 crtc_cursor_show		head1_cursor_show;
30 crtc_cursor_hide		head1_cursor_hide;
31 crtc_cursor_define		head1_cursor_define;
32 crtc_cursor_position	head1_cursor_position;
33 
34 crtc_validate_timing	head2_validate_timing;
35 crtc_set_timing			head2_set_timing;
36 crtc_depth				head2_depth;
37 crtc_dpms				head2_dpms;
38 crtc_dpms_fetch			head2_dpms_fetch;
39 crtc_set_display_pitch	head2_set_display_pitch;
40 crtc_set_display_start	head2_set_display_start;
41 crtc_cursor_init		head2_cursor_init;
42 crtc_cursor_show		head2_cursor_show;
43 crtc_cursor_hide		head2_cursor_hide;
44 crtc_cursor_define		head2_cursor_define;
45 crtc_cursor_position	head2_cursor_position;
46 
47 dac_mode				head1_mode;
48 dac_palette				head1_palette;
49 dac_set_pix_pll			head1_set_pix_pll;
50 dac_pix_pll_find		head1_pix_pll_find;
51 
52 dac_mode				head2_mode;
53 dac_palette				head2_palette;
54 dac_set_pix_pll			head2_set_pix_pll;
55 dac_pix_pll_find		head2_pix_pll_find;
56 
57 eng_get_set_pci eng_pci_access=
58 	{
59 		VIA_PRIVATE_DATA_MAGIC,
60 		0,
61 		4,
62 		0
63 	};
64 
65 eng_in_out_isa eng_isa_access=
66 	{
67 		VIA_PRIVATE_DATA_MAGIC,
68 		0,
69 		1,
70 		0
71 	};
72