nv_proto.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_proto.h,v 1.10 2003/07/31 20:24:29 mvojkovi Exp $ */
  2. #ifndef __NV_PROTO_H__
  3. #define __NV_PROTO_H__
  4. /* in nv_setup.c */
  5. int NVCommonSetup(struct fb_info *info);
  6. void NVWriteCrtc(struct nvidia_par *par, u8 index, u8 value);
  7. u8 NVReadCrtc(struct nvidia_par *par, u8 index);
  8. void NVWriteGr(struct nvidia_par *par, u8 index, u8 value);
  9. u8 NVReadGr(struct nvidia_par *par, u8 index);
  10. void NVWriteSeq(struct nvidia_par *par, u8 index, u8 value);
  11. u8 NVReadSeq(struct nvidia_par *par, u8 index);
  12. void NVWriteAttr(struct nvidia_par *par, u8 index, u8 value);
  13. u8 NVReadAttr(struct nvidia_par *par, u8 index);
  14. void NVWriteMiscOut(struct nvidia_par *par, u8 value);
  15. u8 NVReadMiscOut(struct nvidia_par *par);
  16. void NVWriteDacMask(struct nvidia_par *par, u8 value);
  17. void NVWriteDacReadAddr(struct nvidia_par *par, u8 value);
  18. void NVWriteDacWriteAddr(struct nvidia_par *par, u8 value);
  19. void NVWriteDacData(struct nvidia_par *par, u8 value);
  20. u8 NVReadDacData(struct nvidia_par *par);
  21. /* in nv_hw.c */
  22. void NVCalcStateExt(struct nvidia_par *par, struct _riva_hw_state *,
  23. int, int, int, int, int, int);
  24. void NVLoadStateExt(struct nvidia_par *par, struct _riva_hw_state *);
  25. void NVUnloadStateExt(struct nvidia_par *par, struct _riva_hw_state *);
  26. void NVSetStartAddress(struct nvidia_par *par, u32);
  27. int NVShowHideCursor(struct nvidia_par *par, int);
  28. void NVLockUnlock(struct nvidia_par *par, int);
  29. /* in nvidia-i2c.c */
  30. #ifdef CONFIG_FB_NVIDIA_I2C
  31. void nvidia_create_i2c_busses(struct nvidia_par *par);
  32. void nvidia_delete_i2c_busses(struct nvidia_par *par);
  33. int nvidia_probe_i2c_connector(struct fb_info *info, int conn,
  34. u8 ** out_edid);
  35. #else
  36. #define nvidia_create_i2c_busses(...)
  37. #define nvidia_delete_i2c_busses(...)
  38. #define nvidia_probe_i2c_connector(p, c, edid) (-1)
  39. #endif
  40. #ifdef CONFIG_PPC_OF
  41. int nvidia_probe_of_connector(struct fb_info *info, int conn,
  42. u8 ** out_edid);
  43. #else
  44. static inline int nvidia_probe_of_connector(struct fb_info *info, int conn,
  45. u8 ** out_edid)
  46. {
  47. return -1;
  48. }
  49. #endif
  50. /* in nv_accel.c */
  51. extern void NVResetGraphics(struct fb_info *info);
  52. extern void nvidiafb_copyarea(struct fb_info *info,
  53. const struct fb_copyarea *region);
  54. extern void nvidiafb_fillrect(struct fb_info *info,
  55. const struct fb_fillrect *rect);
  56. extern void nvidiafb_imageblit(struct fb_info *info,
  57. const struct fb_image *image);
  58. extern int nvidiafb_sync(struct fb_info *info);
  59. /* in nv_backlight.h */
  60. #ifdef CONFIG_FB_NVIDIA_BACKLIGHT
  61. extern void nvidia_bl_init(struct nvidia_par *par);
  62. extern void nvidia_bl_exit(struct nvidia_par *par);
  63. #else
  64. static inline void nvidia_bl_init(struct nvidia_par *par) {}
  65. static inline void nvidia_bl_exit(struct nvidia_par *par) {}
  66. #endif
  67. #endif /* __NV_PROTO_H__ */