X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2FPicoInt.h;h=8f328ea8ed00d9f66239097eb6e34b715408e388;hb=c459aefdad169c97b6fb93a20c1219a76aa07505;hp=7d91df7bae688928cc1a10d476c45f9dbd246c67;hpb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;p=picodrive.git diff --git a/Pico/PicoInt.h b/Pico/PicoInt.h index 7d91df7..8f328ea 100644 --- a/Pico/PicoInt.h +++ b/Pico/PicoInt.h @@ -123,7 +123,9 @@ struct PicoMisc unsigned char sram_cycle; // EEPROM SRAM cycle number unsigned char sram_slave; // EEPROM slave word for X24C02 and better SRAMs unsigned char prot_bytes[2]; // simple protection fakeing - unsigned char pad1[8]; + unsigned short dma_bytes; // + unsigned char pad[2]; + unsigned int frame_count; // mainly for movies }; // some assembly stuff depend on these, do not touch! @@ -160,6 +162,14 @@ struct PicoSRAM #include "cd/cd_sys.h" #include "cd/LC89510.h" +struct mcd_misc +{ + unsigned short hint_vector; + unsigned char busreq; + unsigned char pad0; + +}; + typedef struct { unsigned char bios[0x20000]; @@ -169,10 +179,10 @@ typedef struct }; unsigned char word_ram[0x40000]; unsigned char s68k_regs[0x200]; - unsigned char m68k_regs[0x10]; CDD cdd; CDC cdc; _scd scd; + struct mcd_misc m; } mcd_state; #define Pico_mcd ((mcd_state *)Pico.rom) @@ -208,6 +218,7 @@ void PicoWriteCD32(unsigned int a, unsigned int d); extern struct Pico Pico; extern struct PicoSRAM SRam; extern int emustatus; +int CheckDMA(void); // cd/Pico.c int PicoInitMCD(void);