annotate xband.h @ 1299:da1ffc4026c4

Fix latching of V32 mode bit
author Michael Pavone <pavone@retrodev.com>
date Sat, 25 Mar 2017 11:31:43 -0700
parents a8313793216a
children 14a2834d010c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1228
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
1 #ifndef XBAND_H_
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
2 #define XBAND_H_
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
3 #include <stdint.h>
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
4
1229
a8313793216a Minor xband fixes
Michael Pavone <pavone@retrodev.com>
parents: 1228
diff changeset
5 #define XBAND_REGS 0xE0
1228
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
6
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
7 typedef struct {
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
8 uint16_t cart_space[0x200000];
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
9 uint8_t regs[XBAND_REGS];
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
10 uint8_t kill;
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
11 uint8_t control;
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
12 } xband;
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
13
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
14 uint8_t xband_detect(uint8_t *rom, uint32_t rom_size);
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
15 rom_info xband_configure_rom(tern_node *rom_db, void *rom, uint32_t rom_size, void *lock_on, uint32_t lock_on_size, memmap_chunk const *base_map, uint32_t base_chunks);
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
16
2e6dcb5c11a2 WIP support for XBAND mapper hardware
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
17 #endif //XBAND_H_