geodefb.h 846 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * drivers/video/geode/geodefb.h
  4. * -- Geode framebuffer driver
  5. *
  6. * Copyright (C) 2005 Arcom Control Systems Ltd.
  7. */
  8. #ifndef __GEODEFB_H__
  9. #define __GEODEFB_H__
  10. struct geodefb_info;
  11. struct geode_dc_ops {
  12. void (*set_mode)(struct fb_info *);
  13. void (*set_palette_reg)(struct fb_info *, unsigned, unsigned, unsigned, unsigned);
  14. };
  15. struct geode_vid_ops {
  16. void (*set_dclk)(struct fb_info *);
  17. void (*configure_display)(struct fb_info *);
  18. int (*blank_display)(struct fb_info *, int blank_mode);
  19. };
  20. struct geodefb_par {
  21. int enable_crt;
  22. int panel_x; /* dimensions of an attached flat panel, non-zero => enable panel */
  23. int panel_y;
  24. void __iomem *dc_regs;
  25. void __iomem *vid_regs;
  26. const struct geode_dc_ops *dc_ops;
  27. const struct geode_vid_ops *vid_ops;
  28. };
  29. #endif /* !__GEODEFB_H__ */