summary refs log tree commit diff stats
path: root/include/hw/timer/mc146818rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/timer/mc146818rtc.h')
-rw-r--r--include/hw/timer/mc146818rtc.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/include/hw/timer/mc146818rtc.h b/include/hw/timer/mc146818rtc.h
deleted file mode 100644
index a857dcdc69..0000000000
--- a/include/hw/timer/mc146818rtc.h
+++ /dev/null
@@ -1,48 +0,0 @@
-#ifndef MC146818RTC_H
-#define MC146818RTC_H
-
-#include "qapi/qapi-types-misc.h"
-#include "qemu/queue.h"
-#include "qemu/timer.h"
-#include "hw/isa/isa.h"
-
-#define TYPE_MC146818_RTC "mc146818rtc"
-#define MC146818_RTC(obj) OBJECT_CHECK(RTCState, (obj), TYPE_MC146818_RTC)
-
-typedef struct RTCState {
-    ISADevice parent_obj;
-
-    MemoryRegion io;
-    MemoryRegion coalesced_io;
-    uint8_t cmos_data[128];
-    uint8_t cmos_index;
-    int32_t base_year;
-    uint64_t base_rtc;
-    uint64_t last_update;
-    int64_t offset;
-    qemu_irq irq;
-    int it_shift;
-    /* periodic timer */
-    QEMUTimer *periodic_timer;
-    int64_t next_periodic_time;
-    /* update-ended timer */
-    QEMUTimer *update_timer;
-    uint64_t next_alarm_time;
-    uint16_t irq_reinject_on_ack_count;
-    uint32_t irq_coalesced;
-    uint32_t period;
-    QEMUTimer *coalesced_timer;
-    Notifier clock_reset_notifier;
-    LostTickPolicy lost_tick_policy;
-    Notifier suspend_notifier;
-    QLIST_ENTRY(RTCState) link;
-} RTCState;
-
-#define RTC_ISA_IRQ 8
-
-ISADevice *mc146818_rtc_init(ISABus *bus, int base_year,
-                             qemu_irq intercept_irq);
-void rtc_set_memory(ISADevice *dev, int addr, int val);
-int rtc_get_memory(ISADevice *dev, int addr);
-
-#endif /* MC146818RTC_H */