From e56d270d5dd472219864c1735d8eee16d6f1ccdb Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 16 Nov 2010 14:04:09 +0100 Subject: Add psmouse driver from maverick (Ubuntu-2.6.35-23.36). Signed-off-by: Henrik Rydberg --- usr/src/dkms_source_tree/alps.h | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 usr/src/dkms_source_tree/alps.h (limited to 'usr/src/dkms_source_tree/alps.h') diff --git a/usr/src/dkms_source_tree/alps.h b/usr/src/dkms_source_tree/alps.h new file mode 100644 index 0000000..904ed8b --- /dev/null +++ b/usr/src/dkms_source_tree/alps.h @@ -0,0 +1,43 @@ +/* + * ALPS touchpad PS/2 mouse driver + * + * Copyright (c) 2003 Peter Osterlund + * Copyright (c) 2005 Vojtech Pavlik + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + */ + +#ifndef _ALPS_H +#define _ALPS_H + +struct alps_model_info { + unsigned char signature[3]; + unsigned char byte0, mask0; + unsigned char flags; +}; + +struct alps_data { + struct input_dev *dev2; /* Relative device */ + char phys[32]; /* Phys */ + const struct alps_model_info *i;/* Info */ + int prev_fin; /* Finger bit from previous packet */ + struct timer_list timer; +}; + +#ifdef CONFIG_MOUSE_PS2_ALPS +int alps_detect(struct psmouse *psmouse, bool set_properties); +int alps_init(struct psmouse *psmouse); +#else +inline int alps_detect(struct psmouse *psmouse, bool set_properties) +{ + return -ENOSYS; +} +inline int alps_init(struct psmouse *psmouse) +{ + return -ENOSYS; +} +#endif /* CONFIG_MOUSE_PS2_ALPS */ + +#endif -- cgit v1.2.3