s3c2410fb: multi-display support
[linux-2.6/kvm.git] / drivers / video / s3c2410fb.h
blob9e86fffccb3261fbb34a13d65eedc7066e674cfd
1 /*
2 * linux/drivers/video/s3c2410fb.h
3 * Copyright (c) Arnaud Patard
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file COPYING in the main directory of this archive for
7 * more details.
9 * S3C2410 LCD Controller Frame Buffer Driver
10 * based on skeletonfb.c, sa1100fb.h
12 * ChangeLog
14 * 2004-12-04: Arnaud Patard <arnaud.patard@rtp-net.org>
15 * - Moved dprintk to s3c2410fb.c
17 * 2004-09-07: Arnaud Patard <arnaud.patard@rtp-net.org>
18 * - Renamed from h1940fb.h to s3c2410fb.h
19 * - Chenged h1940 to s3c2410
21 * 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org>
22 * - First version
25 #ifndef __S3C2410FB_H
26 #define __S3C2410FB_H
28 struct s3c2410fb_info {
29 struct device *dev;
30 struct clk *clk;
32 struct resource *mem;
33 void __iomem *io;
35 struct s3c2410fb_mach_info *mach_info;
37 unsigned current_display;
39 /* raw memory addresses */
40 dma_addr_t map_dma; /* physical */
41 u_char * map_cpu; /* virtual */
42 u_int map_size;
44 struct s3c2410fb_hw regs;
46 /* addresses of pieces placed in raw buffer */
47 u_char * screen_cpu; /* virtual address of buffer */
48 dma_addr_t screen_dma; /* physical address of buffer */
49 unsigned int palette_ready;
51 /* keep these registers in case we need to re-write palette */
52 u32 palette_buffer[256];
53 u32 pseudo_pal[16];
56 #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */
58 int s3c2410fb_init(void);
60 #endif