32x: implement standard/ssf2 mapper
[picodrive.git] / pico / carthw / carthw.h
1
2 /* svp */
3 #include "svp/ssp16.h"
4
5 typedef struct {
6         unsigned char iram_rom[0x20000]; // IRAM (0-0x7ff) and program ROM (0x800-0x1ffff)
7         unsigned char dram[0x20000];
8         ssp1601_t ssp1601;
9 } svp_t;
10
11 extern svp_t *svp;
12
13 void PicoSVPInit(void);
14 void PicoSVPStartup(void);
15 void PicoSVPMemSetup(void);
16
17 /* standard/ssf2 mapper */
18 extern int carthw_ssf2_active;
19 extern unsigned char carthw_ssf2_banks[8];
20 void carthw_ssf2_startup(void);
21
22 /* misc */
23 void carthw_Xin1_startup(void);
24 void carthw_realtec_startup(void);
25 void carthw_radica_startup(void);
26 void carthw_pier_startup(void);
27
28 void carthw_sprot_startup(void);
29 void carthw_sprot_new_location(unsigned int a,
30         unsigned int mask, unsigned short val, int is_ro);
31
32 void carthw_prot_lk3_startup(void);