[PATCH] briq_panel: read() and write() get __user pointers, damnit
[linux-2.6/verdex.git] / include / asm-arm / arch-s3c2410 / fb.h
blob71161797bc8988ef8725920ad122141ef73ec97b
1 /* linux/include/asm/arch-s3c2410/fb.h
3 * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
5 * Inspired by pxafb.h
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef __ASM_ARM_FB_H
13 #define __ASM_ARM_FB_H
15 #include <asm/arch/regs-lcd.h>
17 struct s3c2410fb_val {
18 unsigned int defval;
19 unsigned int min;
20 unsigned int max;
23 struct s3c2410fb_hw {
24 unsigned long lcdcon1;
25 unsigned long lcdcon2;
26 unsigned long lcdcon3;
27 unsigned long lcdcon4;
28 unsigned long lcdcon5;
31 struct s3c2410fb_mach_info {
32 unsigned char fixed_syncs; /* do not update sync/border */
34 /* Screen size */
35 int width;
36 int height;
38 /* Screen info */
39 struct s3c2410fb_val xres;
40 struct s3c2410fb_val yres;
41 struct s3c2410fb_val bpp;
43 /* lcd configuration registers */
44 struct s3c2410fb_hw regs;
46 /* GPIOs */
48 unsigned long gpcup;
49 unsigned long gpcup_mask;
50 unsigned long gpccon;
51 unsigned long gpccon_mask;
52 unsigned long gpdup;
53 unsigned long gpdup_mask;
54 unsigned long gpdcon;
55 unsigned long gpdcon_mask;
57 /* lpc3600 control register */
58 unsigned long lpcsel;
61 extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
63 #endif /* __ASM_ARM_FB_H */