3f2b332964
Copy from Base:System/gpm based on submit request 47591 from user psmt OBS-URL: https://build.opensuse.org/request/show/47591 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpm?expand=0&rev=24
36 lines
1.7 KiB
Diff
36 lines
1.7 KiB
Diff
Index: src/headers/gpmInt.h
|
|
===================================================================
|
|
--- src/headers/gpmInt.h.orig 2010-09-08 13:25:25.777479285 +0200
|
|
+++ src/headers/gpmInt.h 2010-09-08 13:25:31.112878123 +0200
|
|
@@ -50,21 +50,27 @@
|
|
|
|
/*** mouse commands ***/
|
|
|
|
-#define GPM_AUX_SEND_ID 0xF2
|
|
+#define GPM_AUX_SEND_ID 0xF2 /* Get ID: ACK + 1 byte ID */
|
|
#define GPM_AUX_ID_ERROR -1
|
|
#define GPM_AUX_ID_PS2 0
|
|
#define GPM_AUX_ID_IMPS2 3
|
|
|
|
/* these are shameless stolen from /usr/src/linux/include/linux/pc_keyb.h */
|
|
|
|
-#define GPM_AUX_SET_RES 0xE8 /* Set resolution */
|
|
#define GPM_AUX_SET_SCALE11 0xE6 /* Set 1:1 scaling */
|
|
#define GPM_AUX_SET_SCALE21 0xE7 /* Set 2:1 scaling */
|
|
-#define GPM_AUX_GET_SCALE 0xE9 /* Get scaling factor */
|
|
+#define GPM_AUX_SET_RES 0xE8 /* Set resolution */
|
|
+#define GPM_AUX_GET_SCALE 0xE9 /* Get scaling factor: ACK + 3 byte status pack */
|
|
#define GPM_AUX_SET_STREAM 0xEA /* Set stream mode */
|
|
+#define GPM_AUX_GET_DATA 0xEB /* Read data: ACK + 3 byte movement pack */
|
|
+#define GPM_AUX_RESET_WRAP 0xEC /* From wrap mode to previous */
|
|
+#define GPM_AUX_SET_WRAP 0xEE /* Set wrap mode */
|
|
+#define GPM_AUX_SET_REMOTE 0xF0 /* Set remote mode */
|
|
#define GPM_AUX_SET_SAMPLE 0xF3 /* Set sample rate */
|
|
#define GPM_AUX_ENABLE_DEV 0xF4 /* Enable aux device */
|
|
#define GPM_AUX_DISABLE_DEV 0xF5 /* Disable aux device */
|
|
+#define GPM_AUX_DEFAULTS 0xF6 /* Reset to defaults */
|
|
+#define GPM_AUX_RESEND 0xFE /* Resend last pack */
|
|
#define GPM_AUX_RESET 0xFF /* Reset aux device */
|
|
#define GPM_AUX_ACK 0xFA /* Command byte ACK. */
|
|
|