-
Notifications
You must be signed in to change notification settings - Fork 4
/
clem_mmio.h
30 lines (22 loc) · 1.01 KB
/
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
30
#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, unsigned int fpi_rom_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(ClemensMachine *clem, ClemensMMIO *mmio);
void clem_mmio_bind_machine(ClemensMachine *clem, ClemensMMIO *mmio);
#ifdef __cplusplus
}
#endif
#endif