| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * metronomefb.h - definitions for the metronome framebuffer driver | 
|  | 3 | * | 
|  | 4 | * Copyright (C) 2008 by Jaya Kumar | 
|  | 5 | * | 
|  | 6 | * This file is subject to the terms and conditions of the GNU General Public | 
|  | 7 | * License. See the file COPYING in the main directory of this archive for | 
|  | 8 | * more details. | 
|  | 9 | * | 
|  | 10 | */ | 
|  | 11 |  | 
|  | 12 | #ifndef _LINUX_METRONOMEFB_H_ | 
|  | 13 | #define _LINUX_METRONOMEFB_H_ | 
|  | 14 |  | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 15 | /* command structure used by metronome controller */ | 
|  | 16 | struct metromem_cmd { | 
|  | 17 | u16 opcode; | 
|  | 18 | u16 args[((64-2)/2)]; | 
|  | 19 | u16 csum; | 
|  | 20 | }; | 
|  | 21 |  | 
|  | 22 | /* struct used by metronome. board specific stuff comes from *board */ | 
|  | 23 | struct metronomefb_par { | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 24 | struct metromem_cmd *metromem_cmd; | 
|  | 25 | unsigned char *metromem_wfm; | 
|  | 26 | unsigned char *metromem_img; | 
|  | 27 | u16 *metromem_img_csum; | 
|  | 28 | u16 *csum_table; | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 29 | dma_addr_t metromem_dma; | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 30 | struct fb_info *info; | 
|  | 31 | struct metronome_board *board; | 
|  | 32 | wait_queue_head_t waitq; | 
|  | 33 | u8 frame_count; | 
| Jaya Kumar | e935508 | 2008-08-19 11:17:55 +0100 | [diff] [blame] | 34 | int extra_size; | 
|  | 35 | int dt; | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 36 | }; | 
|  | 37 |  | 
| Jaya Kumar | e935508 | 2008-08-19 11:17:55 +0100 | [diff] [blame] | 38 | /* board specific routines and data */ | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 39 | struct metronome_board { | 
| Jaya Kumar | e935508 | 2008-08-19 11:17:55 +0100 | [diff] [blame] | 40 | struct module *owner; /* the platform device */ | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 41 | void (*set_rst)(struct metronomefb_par *, int); | 
|  | 42 | void (*set_stdby)(struct metronomefb_par *, int); | 
| Jaya Kumar | e935508 | 2008-08-19 11:17:55 +0100 | [diff] [blame] | 43 | void (*cleanup)(struct metronomefb_par *); | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 44 | int (*met_wait_event)(struct metronomefb_par *); | 
|  | 45 | int (*met_wait_event_intr)(struct metronomefb_par *); | 
|  | 46 | int (*setup_irq)(struct fb_info *); | 
| Jaya Kumar | e935508 | 2008-08-19 11:17:55 +0100 | [diff] [blame] | 47 | int (*setup_fb)(struct metronomefb_par *); | 
|  | 48 | int (*setup_io)(struct metronomefb_par *); | 
|  | 49 | int (*get_panel_type)(void); | 
|  | 50 | unsigned char *metromem; | 
|  | 51 | int fw; | 
|  | 52 | int fh; | 
|  | 53 | int wfm_size; | 
|  | 54 | struct fb_info *host_fbinfo; /* the host LCD controller's fbi */ | 
| Jaya Kumar | 03c33a4 | 2008-04-28 02:15:38 -0700 | [diff] [blame] | 55 | }; | 
|  | 56 |  | 
|  | 57 | #endif |