| Grant Likely | dc8afdc | 2007-10-01 07:47:00 +1000 | [diff] [blame] | 1 | /* | 
|  | 2 | * Platform device data for Xilinx Framebuffer device | 
|  | 3 | * | 
|  | 4 | * Copyright 2007 Secret Lab Technologies Ltd. | 
|  | 5 | * | 
|  | 6 | * This file is licensed under the terms of the GNU General Public License | 
|  | 7 | * version 2.  This program is licensed "as is" without any warranty of any | 
|  | 8 | * kind, whether express or implied. | 
|  | 9 | */ | 
|  | 10 |  | 
|  | 11 | #ifndef __XILINXFB_H__ | 
|  | 12 | #define __XILINXFB_H__ | 
|  | 13 |  | 
|  | 14 | #include <linux/types.h> | 
|  | 15 |  | 
|  | 16 | /* ML300/403 reference design framebuffer driver platform data struct */ | 
|  | 17 | struct xilinxfb_platform_data { | 
| Grant Likely | b4d6a72 | 2007-10-11 04:31:51 +1000 | [diff] [blame] | 18 | u32 rotate_screen;	/* Flag to rotate display 180 degrees */ | 
|  | 19 | u32 screen_height_mm;	/* Physical dimentions of screen in mm */ | 
| Grant Likely | dc8afdc | 2007-10-01 07:47:00 +1000 | [diff] [blame] | 20 | u32 screen_width_mm; | 
| Grant Likely | b4d6a72 | 2007-10-11 04:31:51 +1000 | [diff] [blame] | 21 | u32 xres, yres;		/* resolution of screen in pixels */ | 
|  | 22 | u32 xvirt, yvirt;	/* resolution of memory buffer */ | 
| Grant Likely | 287e5d6 | 2007-10-11 04:31:56 +1000 | [diff] [blame] | 23 |  | 
|  | 24 | /* Physical address of framebuffer memory; If non-zero, driver | 
|  | 25 | * will use provided memory address instead of allocating one from | 
|  | 26 | * the consistent pool. */ | 
|  | 27 | u32 fb_phys; | 
| Grant Likely | dc8afdc | 2007-10-01 07:47:00 +1000 | [diff] [blame] | 28 | }; | 
|  | 29 |  | 
|  | 30 | #endif  /* __XILINXFB_H__ */ |