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
13 /* Shadows for LCD controller registers */
14 struct sa1100fb_lcd_reg {
21 struct sa1100fb_info {
24 const struct sa1100fb_rgb *rgb[NR_RGB];
31 * These are the addresses we mapped
32 * the framebuffer memory region to.
39 dma_addr_t screen_dma;
41 dma_addr_t palette_dma;
58 volatile u_char state;
59 volatile u_char task_state;
60 struct mutex ctrlr_lock;
61 wait_queue_head_t ctrlr_wait;
62 struct work_struct task;
64 #ifdef CONFIG_CPU_FREQ
65 struct notifier_block freq_transition;
66 struct notifier_block freq_policy;
69 const struct sa1100fb_mach_info *inf;
72 #define TO_INF(ptr,member) container_of(ptr,struct sa1100fb_info,member)
74 #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9)
77 * These are the actions for set_ctrlr_state
81 #define C_DISABLE_CLKCHANGE (2)
82 #define C_ENABLE_CLKCHANGE (3)
83 #define C_REENABLE (4)
84 #define C_DISABLE_PM (5)
85 #define C_ENABLE_PM (6)
88 #define SA1100_NAME "SA1100"
91 * Minimum X and Y resolutions