1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _LINUX_HECUBAFB_H_
13 #define _LINUX_HECUBAFB_H_
14
15
16 #define APOLLO_START_NEW_IMG 0xA0
17 #define APOLLO_STOP_IMG_DATA 0xA1
18 #define APOLLO_DISPLAY_IMG 0xA2
19 #define APOLLO_ERASE_DISPLAY 0xA3
20 #define APOLLO_INIT_DISPLAY 0xA4
21
22
23 #define HCB_WUP_BIT 0x01
24 #define HCB_DS_BIT 0x02
25 #define HCB_RW_BIT 0x04
26 #define HCB_CD_BIT 0x08
27 #define HCB_ACK_BIT 0x80
28
29
30 struct hecubafb_par {
31 struct fb_info *info;
32 struct hecuba_board *board;
33 void (*send_command)(struct hecubafb_par *, unsigned char);
34 void (*send_data)(struct hecubafb_par *, unsigned char);
35 };
36
37
38
39
40
41 struct hecuba_board {
42 struct module *owner;
43 void (*remove)(struct hecubafb_par *);
44 void (*set_ctl)(struct hecubafb_par *, unsigned char, unsigned char);
45 void (*set_data)(struct hecubafb_par *, unsigned char);
46 void (*wait_for_ack)(struct hecubafb_par *, int);
47 int (*init)(struct hecubafb_par *);
48 };
49
50
51 #endif