1f7018c21STomi Valkeinen /* 2f7018c21STomi Valkeinen * linux/drivers/video/vt8500lcdfb.h 3f7018c21STomi Valkeinen * 4f7018c21STomi Valkeinen * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> 5f7018c21STomi Valkeinen * 6f7018c21STomi Valkeinen * This software is licensed under the terms of the GNU General Public 7f7018c21STomi Valkeinen * License version 2, as published by the Free Software Foundation, and 8f7018c21STomi Valkeinen * may be copied, distributed, and modified under those terms. 9f7018c21STomi Valkeinen * 10f7018c21STomi Valkeinen * This program is distributed in the hope that it will be useful, 11f7018c21STomi Valkeinen * but WITHOUT ANY WARRANTY; without even the implied warranty of 12f7018c21STomi Valkeinen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13f7018c21STomi Valkeinen * GNU General Public License for more details. 14f7018c21STomi Valkeinen */ 15f7018c21STomi Valkeinen 16f7018c21STomi Valkeinen struct vt8500lcd_info { 17f7018c21STomi Valkeinen struct fb_info fb; 18f7018c21STomi Valkeinen void __iomem *regbase; 19f7018c21STomi Valkeinen void __iomem *palette_cpu; 20f7018c21STomi Valkeinen dma_addr_t palette_phys; 21f7018c21STomi Valkeinen size_t palette_size; 22f7018c21STomi Valkeinen wait_queue_head_t wait; 23f7018c21STomi Valkeinen }; 24f7018c21STomi Valkeinen 25f7018c21STomi Valkeinen static int bpp_values[] = { 26f7018c21STomi Valkeinen 1, 27f7018c21STomi Valkeinen 2, 28f7018c21STomi Valkeinen 4, 29f7018c21STomi Valkeinen 8, 30f7018c21STomi Valkeinen 12, 31f7018c21STomi Valkeinen 16, 32f7018c21STomi Valkeinen 18, 33f7018c21STomi Valkeinen 24, 34f7018c21STomi Valkeinen }; 35