mtk_disp_gamma.h 783 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2019 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __MTK_DISP_GAMMA_H__
  14. #define __MTK_DISP_GAMMA_H__
  15. #include <linux/uaccess.h>
  16. #include <drm/mediatek_drm.h>
  17. #define GAMMA_ENTRY(r10, g10, b10) (((r10) << 20) | ((g10) << 10) | (b10))
  18. int mtk_drm_ioctl_set_gammalut(struct drm_device *dev, void *data,
  19. struct drm_file *file_priv);
  20. #endif