Update olpc target kernel to 2.26.5.
[openwrt.git] / target / linux / olpc / files-2.6.23 / drivers / input / mouse / olpc.h
1 /*
2  * OLPC touchpad PS/2 mouse driver
3  *
4  * Copyright (c) 2006 One Laptop Per Child, inc.
5  *
6  * This driver is partly based on the ALPS driver.
7  * Copyright (c) 2003 Peter Osterlund <petero2@telia.com>
8  * Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU General Public License version 2 as published by
12  * the Free Software Foundation.
13  */
14
15 #ifndef _OLPC_H
16 #define _OLPC_H
17
18 struct olpc_model_info {
19         unsigned char signature[3];
20         unsigned char flags;
21 };
22
23 struct olpc_data {
24         struct input_dev *dev2;         /* Relative device */
25         struct psmouse *psmouse;
26         char name[32];                  /* Name */
27         char phys[32];                  /* Phys */
28         struct olpc_model_info *i; /* Info */
29         int pending_mode;
30         int current_mode;
31         s64 late;
32         struct delayed_work mode_switch;
33 };
34
35 #ifdef CONFIG_MOUSE_PS2_OLPC
36 int olpc_detect(struct psmouse *psmouse, int set_properties);
37 int olpc_init(struct psmouse *psmouse);
38 #else
39 inline int olpc_detect(struct psmouse *psmouse, int set_properties)
40 {
41         return -ENOSYS;
42 }
43 inline int olpc_init(struct psmouse *psmouse)
44 {
45         return -ENOSYS;
46 }
47 #endif
48
49 #endif