5 * linux/drivers/video/pxafb.h
6 * -- Intel PXA250/210 LCD Controller Frame Buffer Device
8 * Copyright (C) 1999 Eric A. Thomas.
9 * Copyright (C) 2004 Jean-Frederic Clere.
10 * Copyright (C) 2004 Ian Campbell.
11 * Copyright (C) 2004 Jeff Lackey.
12 * Based on sa1100fb.c Copyright (C) 1999 Eric A. Thomas
14 * Based on acornfb.c Copyright (C) Russell King.
16 * 2001-08-03: Cliff Brake <cbrake@acclent.com>
17 * - ported SA1100 code to PXA
19 * This file is subject to the terms and conditions of the GNU General Public
20 * License. See the file COPYING in the main directory of this archive
24 /* PXA LCD DMA descriptor */
25 struct pxafb_dma_descriptor {
53 /* maximum palette size - 256 entries, each 4 bytes long */
54 #define PALETTE_SIZE (256 * 4)
56 struct pxafb_dma_buff {
57 unsigned char palette[PAL_MAX * PALETTE_SIZE];
58 struct pxafb_dma_descriptor pal_desc[PAL_MAX];
59 struct pxafb_dma_descriptor dma_desc[DMA_MAX];
67 void __iomem *mmio_base;
69 struct pxafb_dma_buff *dma_buff;
70 dma_addr_t dma_buff_phys;
71 dma_addr_t fdadr[DMA_MAX];
74 * These are the addresses we mapped
75 * the framebuffer memory region to.
77 /* raw memory addresses */
78 dma_addr_t map_dma; /* physical */
79 u_char * map_cpu; /* virtual */
82 /* addresses of pieces placed in raw buffer */
83 u_char * screen_cpu; /* virtual address of frame buffer */
84 dma_addr_t screen_dma; /* physical address of frame buffer */
85 u16 * palette_cpu; /* virtual address of palette memory */
101 unsigned long hsync_time;
103 volatile u_char state;
104 volatile u_char task_state;
105 struct semaphore ctrlr_sem;
106 wait_queue_head_t ctrlr_wait;
107 struct work_struct task;
109 struct completion disable_done;
111 #ifdef CONFIG_CPU_FREQ
112 struct notifier_block freq_transition;
113 struct notifier_block freq_policy;
117 #define TO_INF(ptr,member) container_of(ptr,struct pxafb_info,member)
120 * These are the actions for set_ctrlr_state
122 #define C_DISABLE (0)
124 #define C_DISABLE_CLKCHANGE (2)
125 #define C_ENABLE_CLKCHANGE (3)
126 #define C_REENABLE (4)
127 #define C_DISABLE_PM (5)
128 #define C_ENABLE_PM (6)
129 #define C_STARTUP (7)
131 #define PXA_NAME "PXA"
134 * Minimum X and Y resolutions
139 #endif /* __PXAFB_H__ */