Mercurial > repos > blastem
annotate xband.h @ 1245:42fb3ee1e92c
Fix direct usage of read rather than GDB_READ in gdb_remote.c
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Feb 2017 23:20:11 -0800 |
parents | a8313793216a |
children | 14a2834d010c |
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 | 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_ |