2 * metronomefb.h - definitions for the metronome framebuffer driver
4 * Copyright (C) 2008 by Jaya Kumar
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
12 #ifndef _LINUX_METRONOMEFB_H_
13 #define _LINUX_METRONOMEFB_H_
15 /* command structure used by metronome controller */
22 /* struct used by metronome. board specific stuff comes from *board */
23 struct metronomefb_par
{
24 struct metromem_cmd
*metromem_cmd
;
25 unsigned char *metromem_wfm
;
26 unsigned char *metromem_img
;
27 u16
*metromem_img_csum
;
29 dma_addr_t metromem_dma
;
31 struct metronome_board
*board
;
32 wait_queue_head_t waitq
;
38 /* board specific routines and data */
39 struct metronome_board
{
40 struct module
*owner
; /* the platform device */
41 void (*set_rst
)(struct metronomefb_par
*, int);
42 void (*set_stdby
)(struct metronomefb_par
*, int);
43 void (*cleanup
)(struct metronomefb_par
*);
44 int (*met_wait_event
)(struct metronomefb_par
*);
45 int (*met_wait_event_intr
)(struct metronomefb_par
*);
46 int (*setup_irq
)(struct fb_info
*);
47 int (*setup_fb
)(struct metronomefb_par
*);
48 int (*setup_io
)(struct metronomefb_par
*);
49 int (*get_panel_type
)(void);
50 unsigned char *metromem
;
54 struct fb_info
*host_fbinfo
; /* the host LCD controller's fbi */