summaryrefslogtreecommitdiff
path: root/src/riva_proto.h
blob: a0f5e606babbc65b6b24df4b2b11b3bec8f031cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* $XFree86$ */

#ifndef __RIVA_PROTO_H__
#define __RIVA_PROTO_H__

/* in riva_driver.c */
Bool    RivaSwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
void    RivaAdjustFrame(int scrnIndex, int x, int y, int flags);
Bool    RivaI2CInit(ScrnInfoPtr pScrn);
const   OptionInfoRec * RivaAvailableOptions(int chipid, int busid);
Bool    RivaGetScrnInfoRec(PciChipsets *chips, int chip);

/* in riva_dac.c */
Bool    RivaDACInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
void    RivaDACSave(ScrnInfoPtr pScrn, vgaRegPtr vgaReg,
                  RivaRegPtr rivaReg, Bool saveFonts);
void    RivaDACRestore(ScrnInfoPtr pScrn, vgaRegPtr vgaReg,
                     RivaRegPtr rivaReg, Bool restoreFonts);
void    RivaDACLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
                         LOCO *colors, VisualPtr pVisual );
Bool    RivaDACi2cInit(ScrnInfoPtr pScrn);


/* in riva_setup.c */
void    RivaEnterLeave(ScrnInfoPtr pScrn, Bool enter);
void    Riva3Setup(ScrnInfoPtr pScrn);

/* in riva_cursor.c */
Bool    RivaCursorInit(ScreenPtr pScreen);

/* in riva_xaa.c */
Bool    RivaAccelInit(ScreenPtr pScreen);
void    RivaSync(ScrnInfoPtr pScrn);
void    RivaResetGraphics(ScrnInfoPtr pScrn);

/* in riva_dga.c */
Bool    RivaDGAInit(ScreenPtr pScreen);


#endif /* __RIVA_PROTO_H__ */