projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580f5c0
)
hw/ds1338.c: Add definitions for various flags in the RTC registers.
author
Antoine Mathys
<barsamin@gmail.com>
Thu, 13 Dec 2012 14:05:27 +0000
(14:05 +0000)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/hw/ds1338.c
b/hw/ds1338.c
index faaa4a0a93c4d9349a3f8069a0fb559b2a5efd9a..69018bc96659686ae85aa3e88f9056f7f305c59b 100644
(file)
--- 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;