]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/ds1338.c: Add definitions for various flags in the RTC registers.
authorAntoine Mathys <barsamin@gmail.com>
Thu, 13 Dec 2012 14:05:27 +0000 (14:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Dec 2012 14:05:27 +0000 (14:05 +0000)
Signed-off-by: Antoine Mathys <barsamin@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ds1338.c

index faaa4a0a93c4d9349a3f8069a0fb559b2a5efd9a..69018bc96659686ae85aa3e88f9056f7f305c59b 100644 (file)
  */
 #define NVRAM_SIZE 64
 
+/* Flags definitions */
+#define SECONDS_CH 0x80
+#define HOURS_12   0x40
+#define HOURS_PM   0x20
+#define CTRL_OSF   0x20
+
 typedef struct {
     I2CSlave i2c;
     int64_t offset;