forked from samkusin/clemens_iigs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clem_mmio.h
29 lines (21 loc) · 906 Bytes
/
clem_mmio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef CLEM_MMIO_H
#define CLEM_MMIO_H
#include "clem_mmio_types.h"
#include "clem_types.h"
#ifdef __cplusplus
extern "C" {
#endif
void clem_mmio_reset(ClemensMMIO *mmio, struct ClemensTimeSpec *tspec);
void clem_mmio_init(ClemensMMIO *mmio, struct ClemensDeviceDebugger *dev_debug,
struct ClemensMemoryPageMap **bank_page_map, void *slot_expansion_rom,
unsigned int fpi_ram_bank_count, uint8_t *e0_bank, uint8_t *e1_bank,
struct ClemensTimeSpec *tspec);
uint8_t clem_mmio_read(ClemensMMIO *mmio, struct ClemensTimeSpec *tspec, uint16_t addr,
uint8_t flags, bool *mega2_access);
void clem_mmio_write(ClemensMMIO *mmio, struct ClemensTimeSpec *tspec, uint8_t data, uint16_t addr,
uint8_t flags, bool *mega2_access);
void clem_mmio_restore(ClemensMMIO *mmio);
#ifdef __cplusplus
}
#endif
#endif