dev_rtc.cc Source File
Back to the index.
Go to the documentation of this file.
50 #define DEV_RTC_TICK_SHIFT 14
68 static void timer_tick(
struct timer *
t,
void *extra)
89 uint64_t idata = 0, odata = 0;
94 switch (relative_addr) {
116 if (d->
timer != NULL)
123 if (d->
timer == NULL)
144 fatal(
"[ rtc: unimplemented write to "
145 "offset 0x%x: data=0x%x ]\n", (
int)
146 relative_addr, (
int)idata);
148 fatal(
"[ rtc: unimplemented read from "
149 "offset 0x%x ]\n", (
int)relative_addr);
165 memset(d, 0,
sizeof(
struct rtc_data));
struct timer * timer_add(double freq, void(*timer_tick)(struct timer *timer, void *extra), void *extra)
#define INTERRUPT_CONNECT(name, istruct)
#define INTERRUPT_ASSERT(istruct)
#define DEV_RTC_TRIGGER_READ
void memory_device_register(struct memory *mem, const char *, uint64_t baseaddr, uint64_t len, int(*f)(struct cpu *, struct memory *, uint64_t, unsigned char *, size_t, int, void *), void *extra, int flags, unsigned char *dyntrans_data)
void timer_remove(struct timer *t)
#define DEV_RTC_INTERRUPT_ACK
void machine_add_tickfunction(struct machine *machine, void(*func)(struct cpu *, void *), void *extra, int clockshift)
void fatal(const char *fmt,...)
#define DEV_RTC_TICK_SHIFT
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
void timer_update_frequency(struct timer *t, double new_freq)
#define INTERRUPT_DEASSERT(istruct)
void memory_writemax64(struct cpu *cpu, unsigned char *buf, int len, uint64_t data)
#define CHECK_ALLOCATION(ptr)
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18