1 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_proto.h,v 1.10 2003/07/31 20:24:29 mvojkovi Exp $ */
7 void NVCommonSetup(struct fb_info
*info
);
8 void NVWriteCrtc(struct nvidia_par
*par
, u8 index
, u8 value
);
9 u8
NVReadCrtc(struct nvidia_par
*par
, u8 index
);
10 void NVWriteGr(struct nvidia_par
*par
, u8 index
, u8 value
);
11 u8
NVReadGr(struct nvidia_par
*par
, u8 index
);
12 void NVWriteSeq(struct nvidia_par
*par
, u8 index
, u8 value
);
13 u8
NVReadSeq(struct nvidia_par
*par
, u8 index
);
14 void NVWriteAttr(struct nvidia_par
*par
, u8 index
, u8 value
);
15 u8
NVReadAttr(struct nvidia_par
*par
, u8 index
);
16 void NVWriteMiscOut(struct nvidia_par
*par
, u8 value
);
17 u8
NVReadMiscOut(struct nvidia_par
*par
);
18 void NVWriteDacMask(struct nvidia_par
*par
, u8 value
);
19 void NVWriteDacReadAddr(struct nvidia_par
*par
, u8 value
);
20 void NVWriteDacWriteAddr(struct nvidia_par
*par
, u8 value
);
21 void NVWriteDacData(struct nvidia_par
*par
, u8 value
);
22 u8
NVReadDacData(struct nvidia_par
*par
);
25 void NVCalcStateExt(struct nvidia_par
*par
, struct _riva_hw_state
*,
26 int, int, int, int, int, int);
27 void NVLoadStateExt(struct nvidia_par
*par
, struct _riva_hw_state
*);
28 void NVUnloadStateExt(struct nvidia_par
*par
, struct _riva_hw_state
*);
29 void NVSetStartAddress(struct nvidia_par
*par
, u32
);
30 int NVShowHideCursor(struct nvidia_par
*par
, int);
31 void NVLockUnlock(struct nvidia_par
*par
, int);
34 #if defined(CONFIG_FB_NVIDIA_I2C) || defined (CONFIG_PPC_OF)
35 void nvidia_create_i2c_busses(struct nvidia_par
*par
);
36 void nvidia_delete_i2c_busses(struct nvidia_par
*par
);
37 int nvidia_probe_i2c_connector(struct nvidia_par
*par
, int conn
,
40 #define nvidia_create_i2c_busses(...)
41 #define nvidia_delete_i2c_busses(...)
42 #define nvidia_probe_i2c_connector(p, c, edid) \
49 extern void NVResetGraphics(struct fb_info
*info
);
50 extern void nvidiafb_copyarea(struct fb_info
*info
,
51 const struct fb_copyarea
*region
);
52 extern void nvidiafb_fillrect(struct fb_info
*info
,
53 const struct fb_fillrect
*rect
);
54 extern void nvidiafb_imageblit(struct fb_info
*info
,
55 const struct fb_image
*image
);
56 extern int nvidiafb_sync(struct fb_info
*info
);
57 extern u8 byte_rev
[256];
58 #endif /* __NV_PROTO_H__ */