Blame view

drivers/video/s3c2410fb.h 935 Bytes
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
1
  /*
f30c22695   Uwe Zeisberger   fix file specific...
2
   * linux/drivers/video/s3c2410fb.h
6a0e4ec7b   Ben Dooks   S3C2410: clean ou...
3
4
5
   *	Copyright (c) 2004 Arnaud Patard
   *
   *  S3C2410 LCD Framebuffer Driver
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
6
7
8
9
10
   *
   * This file is subject to the terms and conditions of the GNU General Public
   * License.  See the file COPYING in the main directory of this archive for
   * more details.
   *
6a0e4ec7b   Ben Dooks   S3C2410: clean ou...
11
  */
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
12
13
14
  
  #ifndef __S3C2410FB_H
  #define __S3C2410FB_H
f62e770b2   Ben Dooks   FB/S3C2412: add S...
15
16
17
18
  enum s3c_drv_type {
  	DRV_S3C2410,
  	DRV_S3C2412,
  };
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
19
  struct s3c2410fb_info {
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
20
21
  	struct device		*dev;
  	struct clk		*clk;
aff39a852   Ben Dooks   s3c2410fb: fix s3...
22
23
  	struct resource		*mem;
  	void __iomem		*io;
f62e770b2   Ben Dooks   FB/S3C2412: add S...
24
  	void __iomem		*irq_base;
aff39a852   Ben Dooks   s3c2410fb: fix s3...
25

f62e770b2   Ben Dooks   FB/S3C2412: add S...
26
  	enum s3c_drv_type	drv_type;
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
27
  	struct s3c2410fb_hw	regs;
0dac6ecdc   Ben Dooks   s3c-fb: CPUFREQ f...
28
  	unsigned long		clk_rate;
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
29
  	unsigned int		palette_ready;
0dac6ecdc   Ben Dooks   s3c-fb: CPUFREQ f...
30
31
32
  #ifdef CONFIG_CPU_FREQ
  	struct notifier_block	freq_transition;
  #endif
20fd57676   Arnaud Patard   [PATCH] s3c2410fb...
33
34
35
36
37
38
39
40
41
42
  	/* keep these registers in case we need to re-write palette */
  	u32			palette_buffer[256];
  	u32			pseudo_pal[16];
  };
  
  #define PALETTE_BUFF_CLEAR (0x80000000)	/* entry is clear/invalid */
  
  int s3c2410fb_init(void);
  
  #endif