xref: /haiku/src/add-ons/accelerants/nvidia/engine/nv_globals.h (revision f2ced752a08ff5d2618826bcd3ae3976c9f3e92e)
1 extern int fd;
2 extern shared_info *si;
3 extern area_id shared_info_area;
4 extern area_id regs_area;
5 extern vuint32 *regs;
6 extern display_mode *my_mode_list;
7 extern area_id my_mode_list_area;
8 extern int accelerantIsClone;
9 
10 extern nv_get_set_pci nv_pci_access;
11 extern nv_in_out_isa nv_isa_access;
12 
13 
14 typedef status_t (*crtc_validate_timing)(uint16*, uint16*, uint16*, uint16*, uint16*, uint16*, uint16*, uint16*);
15 typedef status_t (*crtc_set_timing)(display_mode);
16 typedef status_t (*crtc_depth)(int);
17 typedef status_t (*crtc_dpms)(bool, bool, bool);
18 typedef status_t (*crtc_dpms_fetch)(bool*, bool*, bool*);
19 typedef status_t (*crtc_set_display_pitch)(void);
20 typedef status_t (*crtc_set_display_start)(uint32, uint8);
21 typedef status_t (*crtc_cursor_init)(void);
22 typedef status_t (*crtc_cursor_show)(void);
23 typedef status_t (*crtc_cursor_hide)(void);
24 typedef status_t (*crtc_cursor_define)(uint8*, uint8*);
25 typedef status_t (*crtc_cursor_position)(uint16, uint16);
26 
27 typedef status_t (*dac_mode)(int, float);
28 typedef status_t (*dac_palette)(uint8[256], uint8[256], uint8[256]);
29 typedef status_t (*dac_set_pix_pll)(display_mode);
30 typedef status_t (*dac_pix_pll_find)(display_mode, float*, uint8*, uint8*, uint8*, uint8);
31 
32 crtc_validate_timing 	head1_validate_timing;
33 crtc_set_timing 		head1_set_timing;
34 crtc_depth				head1_depth;
35 crtc_dpms				head1_dpms;
36 crtc_dpms_fetch			head1_dpms_fetch;
37 crtc_set_display_pitch	head1_set_display_pitch;
38 crtc_set_display_start	head1_set_display_start;
39 crtc_cursor_init		head1_cursor_init;
40 crtc_cursor_show		head1_cursor_show;
41 crtc_cursor_hide		head1_cursor_hide;
42 crtc_cursor_define		head1_cursor_define;
43 crtc_cursor_position	head1_cursor_position;
44 
45 crtc_validate_timing	head2_validate_timing;
46 crtc_set_timing			head2_set_timing;
47 crtc_depth				head2_depth;
48 crtc_dpms				head2_dpms;
49 crtc_dpms_fetch			head2_dpms_fetch;
50 crtc_set_display_pitch	head2_set_display_pitch;
51 crtc_set_display_start	head2_set_display_start;
52 crtc_cursor_init		head2_cursor_init;
53 crtc_cursor_show		head2_cursor_show;
54 crtc_cursor_hide		head2_cursor_hide;
55 crtc_cursor_define		head2_cursor_define;
56 crtc_cursor_position	head2_cursor_position;
57 
58 dac_mode				head1_mode;
59 dac_palette				head1_palette;
60 dac_set_pix_pll			head1_set_pix_pll;
61 dac_pix_pll_find		head1_pix_pll_find;
62 
63 dac_mode				head2_mode;
64 dac_palette				head2_palette;
65 dac_set_pix_pll			head2_set_pix_pll;
66 dac_pix_pll_find		head2_pix_pll_find;
67