mc146818rtc.h 287 B

123456789101112
  1. #ifndef MC146818RTC_H
  2. #define MC146818RTC_H
  3. #include "isa.h"
  4. #define RTC_ISA_IRQ 8
  5. ISADevice *rtc_init(int base_year, qemu_irq intercept_irq);
  6. void rtc_set_memory(ISADevice *dev, int addr, int val);
  7. void rtc_set_date(ISADevice *dev, const struct tm *tm);
  8. #endif /* !MC146818RTC_H */