4
4
/* in drmmode_display.c */
5
5
Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp);
6
Bool drmmode_is_rotate_pixmap(PixmapPtr, struct nouveau_bo **);
7
6
void drmmode_adjust_frame(ScrnInfoPtr pScrn, int x, int y, int flags);
8
7
void drmmode_remove_fb(ScrnInfoPtr pScrn);
9
8
Bool drmmode_cursor_init(ScreenPtr pScreen);
11
/* in nouveau_calc.c */
12
void nouveau_calc_arb(ScrnInfoPtr pScrn, int vclk, int bpp, int *burst, int *lwm);
13
int nouveau_calc_pll_mnp(ScrnInfoPtr pScrn, struct pll_lims *pll_lim, int clk,
14
struct nouveau_pll_vals *pv);
9
void drmmode_fbcon_copy(ScrnInfoPtr pScrn);
16
11
/* in nv_accel_common.c */
17
12
Bool NVAccelCommonInit(ScrnInfoPtr pScrn);
37
26
void NVSetPortDefaults (ScrnInfoPtr pScrn, NVPortPrivPtr pPriv);
38
27
unsigned int nv_window_belongs_to_crtc(ScrnInfoPtr, int, int, int, int);
41
void RivaEnterLeave(ScrnInfoPtr pScrn, Bool enter);
42
void NVCommonSetup(ScrnInfoPtr pScrn);
45
Bool NVCursorInitRandr12(ScreenPtr pScreen);
46
void nv_crtc_show_cursor(xf86CrtcPtr crtc);
47
void nv_crtc_hide_cursor(xf86CrtcPtr crtc);
48
void nv_crtc_set_cursor_position(xf86CrtcPtr crtc, int x, int y);
49
void nv_crtc_set_cursor_colors(xf86CrtcPtr crtc, int bg, int fg);
50
void nv_crtc_load_cursor_image(xf86CrtcPtr crtc, CARD8 *image);
51
void nv_crtc_load_cursor_argb(xf86CrtcPtr crtc, CARD32 *image);
52
void nv_cursor_convert_cursor(uint32_t *src, void *dst, int src_stride,
53
int dst_stride, int bpp, uint32_t fg, uint32_t bg);
56
30
void NVSync(ScrnInfoPtr pScrn);
57
31
Bool NVInitDma(ScrnInfoPtr pScrn);
71
45
/* in nv_shadow.c */
72
46
void NVRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
75
int NVParseBios(ScrnInfoPtr pScrn);
76
int call_lvds_script(ScrnInfoPtr pScrn, struct dcb_entry *dcbent, int head, enum LVDS_script script, int pxclk);
77
bool nouveau_bios_fp_mode(ScrnInfoPtr pScrn, DisplayModeRec *mode);
78
int nouveau_bios_parse_lvds_table(ScrnInfoPtr pScrn, int pxclk, bool *dl, bool *if_is_24bit);
79
int run_tmds_table(ScrnInfoPtr pScrn, struct dcb_entry *dcbent, int head, int pxclk);
80
int get_pll_limits(ScrnInfoPtr pScrn, uint32_t limit_match, struct pll_lims *pll_lim);
81
uint8_t * nouveau_bios_embedded_edid(ScrnInfoPtr pScrn);
82
int nouveau_bios_run_display_table(ScrnInfoPtr, struct dcb_entry *, int pxclk);
85
void nv_crtc_set_digital_vibrance(xf86CrtcPtr crtc, int level);
86
void nv_crtc_set_image_sharpening(xf86CrtcPtr crtc, int level);
87
void NVCrtcSetBase(xf86CrtcPtr crtc, int x, int y);
88
void nv_crtc_init(ScrnInfoPtr pScrn, int crtc_num);
91
void nv_encoder_restore(ScrnInfoPtr pScrn, struct nouveau_encoder *nv_encoder);
92
void nv_encoder_save(ScrnInfoPtr pScrn, struct nouveau_encoder *nv_encoder);
93
void NvSetupOutputs(ScrnInfoPtr pScrn);
96
void NVWriteVgaSeq(NVPtr pNv, int head, uint8_t index, uint8_t value);
97
uint8_t NVReadVgaSeq(NVPtr pNv, int head, uint8_t index);
98
void NVWriteVgaGr(NVPtr pNv, int head, uint8_t index, uint8_t value);
99
uint8_t NVReadVgaGr(NVPtr pNv, int head, uint8_t index);
100
void NVSetOwner(NVPtr pNv, int owner);
101
int nouveau_hw_get_current_head(ScrnInfoPtr pScrn);
102
void NVBlankScreen(NVPtr pNv, int head, bool blank);
103
void nouveau_hw_setpll(ScrnInfoPtr pScrn, uint32_t reg1,
104
struct nouveau_pll_vals *pv);
105
int nouveau_hw_get_pllvals(ScrnInfoPtr pScrn, enum pll_types plltype,
106
struct nouveau_pll_vals *pllvals);
107
int nouveau_hw_pllvals_to_clk(struct nouveau_pll_vals *pllvals);
108
int nouveau_hw_get_clock(ScrnInfoPtr pScrn, enum pll_types plltype);
109
void nouveau_hw_save_vga_fonts(ScrnInfoPtr pScrn, bool save);
110
void nouveau_hw_save_state(ScrnInfoPtr pScrn, int head,
111
struct nouveau_mode_state *state);
112
void nouveau_hw_load_state(ScrnInfoPtr pScrn, int head,
113
struct nouveau_mode_state *state);
114
void nouveau_hw_load_state_palette(NVPtr pNv, int head,
115
struct nouveau_mode_state *state);
118
int NV_I2CInit(ScrnInfoPtr pScrn, I2CBusPtr *bus_ptr, struct dcb_i2c_entry *dcb_i2c, char *name);
120
48
/* in nv04_video_overlay.c */
121
49
void NV04PutOverlayImage(ScrnInfoPtr, struct nouveau_bo *, int, int, int,
122
50
BoxPtr, int, int, int, int, short, short, short,
126
54
void NV04StopOverlay(ScrnInfoPtr);
128
56
/* in nv04_video_blitter.c */
129
void NVPutBlitImage(ScrnInfoPtr, struct nouveau_bo *, int, int, int, BoxPtr,
57
Bool NVPutBlitImage(ScrnInfoPtr, struct nouveau_bo *, int, int, int, BoxPtr,
130
58
int, int, int, int, short, short, short, short, short,
131
59
short, RegionPtr, PixmapPtr);
132
60
int NVSetBlitPortAttribute(ScrnInfoPtr, Atom, INT32, pointer);
212
140
Bool NV50EXAUploadSIFC(const char *src, int src_pitch,
213
141
PixmapPtr pdPix, int x, int y, int w, int h, int cpp);
215
/* in nv50_display.c */
216
Bool NV50DispPreInit(ScrnInfoPtr);
217
Bool NV50DispInit(ScrnInfoPtr);
218
void NV50DispShutdown(ScrnInfoPtr);
220
/* in nv50_cursor.c */
221
Bool NV50CursorInit(ScreenPtr);
222
Bool NV50CursorAcquire(ScrnInfoPtr);
223
void NV50CursorRelease(ScrnInfoPtr);
226
void NV50DisplayCommand(ScrnInfoPtr pScrn, uint32_t addr, uint32_t value);
227
void NV50CrtcCommand(nouveauCrtcPtr crtc, uint32_t addr, uint32_t value);
228
void NV50CrtcInit(ScrnInfoPtr pScrn);
229
void NV50CrtcDestroy(ScrnInfoPtr pScrn);
231
/* in nv50_output.c */
232
int NV50OrOffset(nouveauOutputPtr output);
233
void NV50OutputSetup(ScrnInfoPtr pScrn);
234
void NV50OutputDestroy(ScrnInfoPtr pScrn);
237
void NV50DacSetFunctionPointers(nouveauOutputPtr output);
240
void NV50SorSetFunctionPointers(nouveauOutputPtr output);
242
/* nv50_connector.c */
243
void NV50ConnectorInit(ScrnInfoPtr pScrn);
244
void NV50ConnectorDestroy(ScrnInfoPtr pScrn);
247
void nv50_crtc_init(ScrnInfoPtr pScrn, int crtc_num);
248
void nv50_output_create(ScrnInfoPtr pScrn);
249
int nv_scaling_mode_lookup(char *name, int size);
252
144
int nv50_xv_image_put(ScrnInfoPtr, struct nouveau_bo *, int, int, int, int,
253
145
BoxPtr, int, int, int, int, uint16_t, uint16_t,