summaryrefslogtreecommitdiff
path: root/freebsd_mouse.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-18 20:27:31 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:12 +0200
commit264bbfd70a6102dd2a9b8b347e6a31a633984bc0 (patch)
tree861d6e03f87b27a3967f607b45cbb6c3c590e019 /freebsd_mouse.h
parent8148d66fb55dc3307fb653242c5120c7192e9773 (diff)
Added (untested) support for the FreeBSD psm mouse driver.
Diffstat (limited to 'freebsd_mouse.h')
-rw-r--r--freebsd_mouse.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/freebsd_mouse.h b/freebsd_mouse.h
new file mode 100644
index 0000000..7af95b8
--- /dev/null
+++ b/freebsd_mouse.h
@@ -0,0 +1,59 @@
+#ifndef _FREEBSD_MOUSE_H_
+#define _FREEBSD_MOUSE_H_
+
+
+typedef struct mousehw {
+ int buttons; /* -1 if unknown */
+ int iftype; /* MOUSE_IF_XXX */
+ int type; /* mouse/track ball/pad... */
+ int model; /* I/F dependent model ID: MOUSE_MODEL_XXX */
+ int hwid; /* I/F dependent hardware ID
+ * for the PS/2 mouse, it will be PSM_XXX_ID
+ */
+} mousehw_t;
+
+/* ioctls */
+#define MOUSE_GETSTATUS _IOR('M', 0, mousestatus_t)
+#define MOUSE_GETHWINFO _IOR('M', 1, mousehw_t)
+#define MOUSE_GETMODE _IOR('M', 2, mousemode_t)
+#define MOUSE_SETMODE _IOW('M', 3, mousemode_t)
+#define MOUSE_GETLEVEL _IOR('M', 4, int)
+#define MOUSE_SETLEVEL _IOW('M', 5, int)
+#define MOUSE_GETVARS _IOR('M', 6, mousevar_t)
+#define MOUSE_SETVARS _IOW('M', 7, mousevar_t)
+#define MOUSE_READSTATE _IOWR('M', 8, mousedata_t)
+#define MOUSE_READDATA _IOWR('M', 9, mousedata_t)
+#define MOUSE_SYNGETHWINFO _IOR('M', 10, synapticshw_t)
+
+#define MOUSE_SYNAPTICS_CMD _IOW('M', 10, char)
+#define MOUSE_SYNAPTICS_INFO _IOW('M', 11, char)
+#define MOUSE_SYNAPTICS_ENABLE_PASSTHROUGH _IOW('M', 12, char)
+
+
+typedef struct synapticshw {
+ int infoMajor;
+ int infoMinor;
+ int infoRot180;
+ int infoPortrait;
+ int infoSensor;
+ int infoHardware;
+ int infoNewAbs;
+ int capPen;
+ int infoSimplC;
+ int infoGeometry;
+ int capExtended;
+ int capSleep;
+ int capFourButtons;
+ int capMultiFinger;
+ int capPalmDetect;
+ int capPassthrough;
+} synapticshw_t;
+
+
+#define MOUSE_MODEL_SYNAPTICS 13
+
+/* Synaptics Touchpad */
+#define MOUSE_SYNAPTICS_PACKETSIZE 6
+
+
+#endif /* _FREEBSD_MOUSE_H_ */