Add possibility to change the RTC interrupt line
The 82C606 SuperIO allows reconfiguring the interrupt line used for the RTC alarm at runtime.
This commit is contained in:
@@ -121,6 +121,7 @@ extern void nvr_wp_set(int set, int h, nvr_t *nvr);
|
|||||||
extern void nvr_via_wp_set(int set, int reg, nvr_t *nvr);
|
extern void nvr_via_wp_set(int set, int reg, nvr_t *nvr);
|
||||||
extern void nvr_bank_set(int base, uint8_t bank, nvr_t *nvr);
|
extern void nvr_bank_set(int base, uint8_t bank, nvr_t *nvr);
|
||||||
extern void nvr_lock_set(int base, int size, int lock, nvr_t *nvr);
|
extern void nvr_lock_set(int base, int size, int lock, nvr_t *nvr);
|
||||||
|
extern void nvr_irq_set(int irq, nvr_t *nvr);
|
||||||
|
|
||||||
|
|
||||||
#endif /*EMU_NVR_H*/
|
#endif /*EMU_NVR_H*/
|
||||||
|
@@ -922,6 +922,13 @@ nvr_lock_set(int base, int size, int lock, nvr_t *nvr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
nvr_irq_set(int irq, nvr_t *nvr)
|
||||||
|
{
|
||||||
|
nvr->irq = irq;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
nvr_at_reset(void *priv)
|
nvr_at_reset(void *priv)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user