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 {
64 struct sa1100fb_info {
67 struct sa1100fb_rgb *rgb[NR_RGB];
74 * These are the addresses we mapped
75 * the framebuffer memory region to.
82 dma_addr_t screen_dma;
84 dma_addr_t palette_dma;
101 volatile u_char state;
102 volatile u_char task_state;
103 struct semaphore ctrlr_sem;
104 wait_queue_head_t ctrlr_wait;
105 struct work_struct task;
107 #ifdef CONFIG_CPU_FREQ
108 struct notifier_block freq_transition;
109 struct notifier_block freq_policy;
113 #define TO_INF(ptr,member) container_of(ptr,struct sa1100fb_info,member)
115 #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9)
118 * These are the actions for set_ctrlr_state
120 #define C_DISABLE (0)
122 #define C_DISABLE_CLKCHANGE (2)
123 #define C_ENABLE_CLKCHANGE (3)
124 #define C_REENABLE (4)
125 #define C_DISABLE_PM (5)
126 #define C_ENABLE_PM (6)
127 #define C_STARTUP (7)
129 #define SA1100_NAME "SA1100"
135 # define DPRINTK(fmt, args...) printk("%s: " fmt, __FUNCTION__ , ## args)
137 # define DPRINTK(fmt, args...)
141 * Minimum X and Y resolutions