Skip to contentSkip to conversation

Memory-mapped interface for RTC

PATCH New Hervé Poussineau 1 participant 1 message Apr 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Memory-mapped interface for RTC

Hi,

This patch adds a memory-mapped interface for the mc146818 (RTC) controller.

Hervé

Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.279

vl.c +1 -0
diff -u -r1.279 vl.c
@@ -6697,6 +6697,7 @@
 #elif defined(TARGET_MIPS)
     qemu_register_machine(&mips_machine);
     qemu_register_machine(&mips_malta_machine);
+    qemu_register_machine(&mips_pica61_machine);
 #elif defined(TARGET_SPARC)
 #ifdef TARGET_SPARC64
     qemu_register_machine(&sun4u_machine);

Index: vl.h
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.h,v
retrieving revision 1.210

vl.h +1 -0
diff -u -r1.210 vl.h
@@ -1042,6 +1042,7 @@
 typedef struct RTCState RTCState;
 
 RTCState *rtc_init(int base, qemu_irq irq);
+RTCState *rtc_mm_init(target_phys_addr_t base, qemu_irq irq);
 void rtc_set_memory(RTCState *s, int addr, int val);
 void rtc_set_date(RTCState *s, const struct tm *tm);
 

Index: hw/mc146818rtc.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/mc146818rtc.c,v
retrieving revision 1.8

mc146818rtc.c +93 -0

102 lines not on this page · raw message