carthw.h 909 B

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