~ubuntu-branches/ubuntu/utopic/xserver-xorg-video-nouveau/utopic

« back to all changes in this revision

Viewing changes to src/nv_proto.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-12-04 12:31:58 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20091204123158-oc7ytykkz8anvr6i
Tags: 1:0.0.15+git20100128+2630a15-0ubuntu1
* New upstream snapshot
  + Too many commits to usefully list in the changelog.
  + User modesetting code is now removed.  Nouveau will now only work with 
    KMS.
* debian/control:
  + Bump versioned Build-Dep on libdrm-dev to >= 2.4.17-1ubuntu1~ to pick 
    up nouveau #define updates.
  + Bump build-dep on xserver-xorg-dev to >= 2:1.7.  Nouveau now requires 
    xorg-server >= 1.7.
  + Drop duplicate build-dep on xserver-xorg-dev
  + List the Build-Depends one-to-a-line for clarity
  + Drop the Depends: on linux-nouveau-modules.  Replace with temporary 
    Depends against apw's linux-backports-modules-nouveau* packages.
  + Bump Standards version to 3.8.3.
* debian/README.source
  + Quilt patchsys README for standards version 3.8.3 compliance
* Change versioning to match Sarvatt's snapshot versioning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
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);
10
 
 
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);
15
10
 
16
11
/* in nv_accel_common.c */
17
12
Bool NVAccelCommonInit(ScrnInfoPtr pScrn);
20
15
PixmapPtr NVGetDrawablePixmap(DrawablePtr pDraw);
21
16
void NVAccelFree(ScrnInfoPtr pScrn);
22
17
 
23
 
/* in nv_dri.c */
24
 
Bool NVDRIScreenInit(ScrnInfoPtr pScrn);
25
 
Bool NVDRIFinishScreenInit(ScrnInfoPtr pScrn, bool update);
26
 
void NVDRICloseScreen(ScrnInfoPtr pScrn);
27
 
Bool NVDRIGetVersion(ScrnInfoPtr pScrn);
28
 
 
29
18
/* in nouveau_dri2.c */
30
19
Bool nouveau_dri2_init(ScreenPtr pScreen);
31
20
void nouveau_dri2_fini(ScreenPtr pScreen);
37
26
void NVSetPortDefaults (ScrnInfoPtr pScrn, NVPortPrivPtr pPriv);
38
27
unsigned int nv_window_belongs_to_crtc(ScrnInfoPtr, int, int, int, int);
39
28
 
40
 
/* in nv_setup.c */
41
 
void   RivaEnterLeave(ScrnInfoPtr pScrn, Bool enter);
42
 
void   NVCommonSetup(ScrnInfoPtr pScrn);
43
 
 
44
 
/* in nv_cursor.c */
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);
54
 
 
55
29
/* in nv_dma.c */
56
30
void  NVSync(ScrnInfoPtr pScrn);
57
31
Bool  NVInitDma(ScrnInfoPtr pScrn);
60
34
/* in nouveau_exa.c */
61
35
Bool nouveau_exa_init(ScreenPtr pScreen);
62
36
Bool nouveau_exa_pixmap_is_onscreen(PixmapPtr pPixmap);
63
 
bool nouveau_exa_pixmap_is_tiled(PixmapPtr ppix);
 
37
bool nv50_style_tiled_pixmap(PixmapPtr ppix);
64
38
 
65
39
/* in nouveau_wfb.c */
66
40
void nouveau_wfb_setup_wrap(ReadMemoryProcPtr *, WriteMemoryProcPtr *,
71
45
/* in nv_shadow.c */
72
46
void NVRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
73
47
 
74
 
/* in nv_bios.c */
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);
83
 
 
84
 
/* nv_crtc.c */
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);
89
 
 
90
 
/* nv_output.c */
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);
94
 
 
95
 
/* nouveau_hw.c */
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);
116
 
 
117
 
/* in nv_i2c.c */
118
 
int NV_I2CInit(ScrnInfoPtr pScrn, I2CBusPtr *bus_ptr, struct dcb_i2c_entry *dcb_i2c, char *name);
119
 
 
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);
127
55
 
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);
214
142
 
215
 
/* in nv50_display.c */
216
 
Bool NV50DispPreInit(ScrnInfoPtr);
217
 
Bool NV50DispInit(ScrnInfoPtr);
218
 
void NV50DispShutdown(ScrnInfoPtr);
219
 
 
220
 
/* in nv50_cursor.c */
221
 
Bool NV50CursorInit(ScreenPtr);
222
 
Bool NV50CursorAcquire(ScrnInfoPtr);
223
 
void NV50CursorRelease(ScrnInfoPtr);
224
 
 
225
 
/* in nv50_crtc.c */
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);
230
 
 
231
 
/* in nv50_output.c */
232
 
int NV50OrOffset(nouveauOutputPtr output);
233
 
void NV50OutputSetup(ScrnInfoPtr pScrn);
234
 
void NV50OutputDestroy(ScrnInfoPtr pScrn);
235
 
 
236
 
/* nv50_dac.c */
237
 
void NV50DacSetFunctionPointers(nouveauOutputPtr output);
238
 
 
239
 
/* nv50_sor.c */
240
 
void NV50SorSetFunctionPointers(nouveauOutputPtr output);
241
 
 
242
 
/* nv50_connector.c */
243
 
void NV50ConnectorInit(ScrnInfoPtr pScrn);
244
 
void NV50ConnectorDestroy(ScrnInfoPtr pScrn);
245
 
 
246
 
/* nv50_randr.c */
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);
250
 
 
251
143
/* nv50_xv.c */
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,