[PATCH 1/3] kvm tools, i8042: Sort status register bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch sorts the status register bits in preparation for switching over to
kernel constant names.

Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Sasha Levin <levinsasha928@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/hw/i8042.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/kvm/hw/i8042.c b/tools/kvm/hw/i8042.c
index de0e73b..d3f5d9a 100644
--- a/tools/kvm/hw/i8042.c
+++ b/tools/kvm/hw/i8042.c
@@ -39,11 +39,14 @@
 #define AUX_DEFAULT_RESOLUTION	0x2
 #define AUX_DEFAULT_SAMPLE	100
 
-#define KBD_STATUS_SYS		0x4
-#define KBD_STATUS_A2		0x8
+/*
+ * Status register bits
+ */
+#define KBD_STATUS_AUX_OBF	0x20
 #define KBD_STATUS_INH		0x10
+#define KBD_STATUS_A2		0x08
+#define KBD_STATUS_SYS		0x04
 #define KBD_STATUS_OBF		0x01
-#define KBD_STATUS_AUX_OBF	0x20
 
 #define KBD_MODE_KBD_INT	0x01
 #define KBD_MODE_SYS		0x02
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux