From: Antoine Mathys Date: Thu, 13 Dec 2012 14:05:27 +0000 (+0000) Subject: hw/ds1338.c: Add definitions for various flags in the RTC registers. X-Git-Tag: v1.4.0-rc0~297^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=95c9361598e66de42facdac64e614e3de85186f5;p=users%2Fdwmw2%2Fqemu.git hw/ds1338.c: Add definitions for various flags in the RTC registers. Signed-off-by: Antoine Mathys Signed-off-by: Peter Maydell --- diff --git a/hw/ds1338.c b/hw/ds1338.c index faaa4a0a93..69018bc966 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -17,6 +17,12 @@ */ #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;