2 * linux/drivers/video/sa1100fb.h
3 * -- StrongARM 1100 LCD Controller Frame Buffer Device
5 * Copyright (C) 1999 Eric A. Thomas
6 * Based on acornfb.c Copyright (C) Russell King.
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file COPYING in the main directory of this archive
14 * These are the bitfields for each
15 * display depth that we support.
18 struct fb_bitfield red
;
19 struct fb_bitfield green
;
20 struct fb_bitfield blue
;
21 struct fb_bitfield transp
;
25 * This structure describes the machine which we are running on.
27 struct sa1100fb_mach_info
{
43 u_int cmap_greyscale
:1,
52 /* Shadows for LCD controller registers */
53 struct sa1100fb_lcd_reg
{
65 struct sa1100fb_info
{
68 struct sa1100fb_rgb
*rgb
[NR_RGB
];
75 * These are the addresses we mapped
76 * the framebuffer memory region to.
83 dma_addr_t screen_dma
;
85 dma_addr_t palette_dma
;
102 volatile u_char state
;
103 volatile u_char task_state
;
104 struct mutex ctrlr_lock
;
105 wait_queue_head_t ctrlr_wait
;
106 struct work_struct task
;
108 #ifdef CONFIG_CPU_FREQ
109 struct notifier_block freq_transition
;
110 struct notifier_block freq_policy
;
114 #define TO_INF(ptr,member) container_of(ptr,struct sa1100fb_info,member)
116 #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9)
119 * These are the actions for set_ctrlr_state
121 #define C_DISABLE (0)
123 #define C_DISABLE_CLKCHANGE (2)
124 #define C_ENABLE_CLKCHANGE (3)
125 #define C_REENABLE (4)
126 #define C_DISABLE_PM (5)
127 #define C_ENABLE_PM (6)
128 #define C_STARTUP (7)
130 #define SA1100_NAME "SA1100"
136 # define DPRINTK(fmt, args...) printk("%s: " fmt, __func__ , ## args)
138 # define DPRINTK(fmt, args...)
142 * Minimum X and Y resolutions