X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdrc%2Fcmn.h;h=e6da6eacb8b5adf9bdbda85f6b0e996fa78e3c30;hb=653f0b1399313ecef86d99a2552f40fb9e51b820;hp=447c2fc352b021b9f0a87b5e6f1f1ea0a5e9db33;hpb=41397701210c08b9d25ca66cbe372c7ed86d6927;p=picodrive.git diff --git a/cpu/drc/cmn.h b/cpu/drc/cmn.h index 447c2fc..e6da6ea 100644 --- a/cpu/drc/cmn.h +++ b/cpu/drc/cmn.h @@ -1,12 +1,15 @@ -#define SSP_TCACHE_SIZE (512*1024) -#define SSP_BLOCKTAB_SIZE (0x5090/2*4) -#define SSP_BLOCKTAB_IRAM_SIZE (15*0x800/2*4) -#define SSP_BLOCKTAB_ALIGN_SIZE 3808 -#define SSP_DRC_SIZE (SSP_TCACHE_SIZE + SSP_BLOCKTAB_SIZE + SSP_BLOCKTAB_IRAM_SIZE + SSP_BLOCKTAB_ALIGN_SIZE) - -extern unsigned int tcache[SSP_TCACHE_SIZE/4]; -extern unsigned int *ssp_block_table[SSP_BLOCKTAB_SIZE/4]; -extern unsigned int *ssp_block_table_iram[15][0x800/2]; +typedef unsigned char u8; +typedef signed char s8; +typedef unsigned short u16; +typedef unsigned int u32; + +#define DRC_TCACHE_SIZE (2*1024*1024) + +#ifdef VITA +extern u8 *tcache; +#else +extern u8 tcache[DRC_TCACHE_SIZE]; +#endif void drc_cmn_init(void); void drc_cmn_cleanup(void);