meson_canvas.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2016 BayLibre, SAS
  3. * Author: Neil Armstrong <narmstrong@baylibre.com>
  4. * Copyright (C) 2014 Endless Mobile
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. /* Canvas LUT Memory */
  20. #ifndef __MESON_CANVAS_H
  21. #define __MESON_CANVAS_H
  22. #define MESON_CANVAS_ID_OSD1 0x4e
  23. /* Canvas configuration. */
  24. #define MESON_CANVAS_WRAP_NONE 0x00
  25. #define MESON_CANVAS_WRAP_X 0x01
  26. #define MESON_CANVAS_WRAP_Y 0x02
  27. #define MESON_CANVAS_BLKMODE_LINEAR 0x00
  28. #define MESON_CANVAS_BLKMODE_32x32 0x01
  29. #define MESON_CANVAS_BLKMODE_64x64 0x02
  30. void meson_canvas_setup(struct meson_drm *priv,
  31. uint32_t canvas_index, uint32_t addr,
  32. uint32_t stride, uint32_t height,
  33. unsigned int wrap,
  34. unsigned int blkmode);
  35. #endif /* __MESON_CANVAS_H */