| 1 | #ifndef __MDFN_VB_TIMER_H |
| 2 | #define __MDFN_VB_TIMER_H |
| 3 | |
| 4 | enum |
| 5 | { |
| 6 | TIMER_GSREG_TCR, |
| 7 | TIMER_GSREG_DIVCOUNTER, |
| 8 | TIMER_GSREG_RELOAD_VALUE, |
| 9 | TIMER_GSREG_COUNTER |
| 10 | }; |
| 11 | |
| 12 | v810_timestamp_t TIMER_Update(v810_timestamp_t timestamp); |
| 13 | |
| 14 | void TIMER_ResetTS(void); |
| 15 | |
| 16 | uint8 TIMER_Read(const v810_timestamp_t ×tamp, uint32 A); |
| 17 | |
| 18 | void TIMER_Write(const v810_timestamp_t ×tamp, uint32 A, uint8 V); |
| 19 | |
| 20 | void TIMER_Power(void) MDFN_COLD; |
| 21 | |
| 22 | int TIMER_StateAction(StateMem *sm, int load, int data_only); |
| 23 | |
| 24 | uint32 TIMER_GetRegister(const unsigned int id, char *special, const uint32 special_len); |
| 25 | |
| 26 | void TIMER_SetRegister(const unsigned int id, const uint32 value); |
| 27 | |
| 28 | #endif |