1#ifndef __NV_PROTO_H__
2#define __NV_PROTO_H__
3
4/* in nv_driver.c */
5Bool   NVSwitchMode(SWITCH_MODE_ARGS_DECL);
6void   NVAdjustFrame(ADJUST_FRAME_ARGS_DECL);
7Bool   NVI2CInit(ScrnInfoPtr pScrn);
8
9
10/* in nv_dac.c */
11Bool   NVDACInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
12void   NVDACSave(ScrnInfoPtr pScrn, vgaRegPtr vgaReg,
13                 NVRegPtr nvReg, Bool saveFonts);
14void   NVDACRestore(ScrnInfoPtr pScrn, vgaRegPtr vgaReg,
15                    NVRegPtr nvReg, Bool restoreFonts);
16void   NVDACLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
17                        LOCO *colors, VisualPtr pVisual );
18Bool   NVDACi2cInit(ScrnInfoPtr pScrn);
19
20
21/* in nv_video.c */
22void NVInitVideo(ScreenPtr);
23void NVResetVideo (ScrnInfoPtr pScrnInfo);
24
25/* in nv_setup.c */
26void   RivaEnterLeave(ScrnInfoPtr pScrn, Bool enter);
27void   NVCommonSetup(ScrnInfoPtr pScrn);
28
29/* in nv_cursor.c */
30Bool   NVCursorInit(ScreenPtr pScreen);
31
32/* in nv_xaa.c */
33Bool   NVAccelInit(ScreenPtr pScreen);
34void   NVSync(ScrnInfoPtr pScrn);
35void   NVResetGraphics(ScrnInfoPtr pScrn);
36void   NVDmaKickoff(NVPtr pNv);
37void   NVDMAKickoffCallback(ScrnInfoPtr pScrn);
38void   NVDmaWait(NVPtr pNv, int size);
39void   NVWaitVSync(NVPtr pNv);
40void   NVSetRopSolid(ScrnInfoPtr pScrn, CARD32 rop, CARD32 planemask);
41
42/* in nv_exa.c */
43Bool   NvInitExa(ScreenPtr pScreen);
44
45/* in nv_dga.c */
46Bool   NVDGAInit(ScreenPtr pScreen);
47
48/* in riva_hw.c */
49void NVCalcStateExt(NVPtr,struct _riva_hw_state *,int,int,int,int,int,int);
50void NVLoadStateExt(NVPtr,struct _riva_hw_state *);
51void NVUnloadStateExt(NVPtr,struct _riva_hw_state *);
52void NVSetStartAddress(NVPtr,CARD32);
53int  NVShowHideCursor(NVPtr,int);
54void NVLockUnlock(NVPtr,int);
55
56/* in nv_shadow.c */
57void NVShadowUpdate (ScreenPtr pScreen, shadowBufPtr pBuf);
58void NVRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
59void NVRefreshArea8(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
60void NVRefreshArea16(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
61void NVRefreshArea32(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
62void NVPointerMoved(SCRN_ARG_TYPE arg, int x, int y);
63
64#endif /* __NV_PROTO_H__ */
65