/* * Copyright 2010 Matt Turner. * Copyright 2012 Red Hat * * This file is subject to the terms and conditions of the GNU General * Public License version 2. See the file COPYING in the main * directory of this archive for more details. * * Authors: Matthew Garrett * Matt Turner * Dave Airlie */#include<linux/delay.h>#include<drm/drmP.h>#include<drm/drm_crtc_helper.h>#include"mgag200_drv.h"#define MGAG200_LUT_SIZE 256/* * This file contains setup code for the CRTC. */staticvoidmga_crtc_load_lut(structdrm_crtc*crtc){structmga_crtc*mga_crtc=to_mga_crtc(crtc);structdrm_device*dev=crtc->dev;structmga_device*mdev=dev->dev_private;inti;if(!crtc->enabled)return;WREG8(DAC_INDEX+MGA1064_INDEX