1 #ifndef _PS2CONST_H_ 2 #define _PS2CONST_H_ 3 4 namespace PS2 5 { 6 enum 7 { 8 EE_RAM_SIZE = 0x02000000 9 }; 10 11 enum 12 { 13 EE_CLOCK_FREQ = 0x11940000 14 }; 15 16 enum 17 { 18 EE_BIOS_ADDR = 0x1FC00000, 19 EE_BIOS_SIZE = 0x00400000, 20 }; 21 22 enum 23 { 24 //Technically, SPR isn't mapped in the EE's physical address space 25 EE_SPR_ADDR = 0x02000000, 26 EE_SPR_SIZE = 0x00004000, 27 }; 28 29 enum 30 { 31 GS_NTSC_HSYNC_FREQ = 15734, 32 GS_PAL_HSYNC_FREQ = 15625 33 }; 34 35 enum 36 { 37 IOP_RAM_SIZE = 0x00200000 38 }; 39 40 enum 41 { 42 IOP_SCRATCH_ADDR = 0x1F800000, 43 IOP_SCRATCH_SIZE = 0x00001000 44 }; 45 46 enum 47 { 48 IOP_CLOCK_BASE_FREQ = (44100 * 256 * 3), 49 IOP_CLOCK_OVER_FREQ = (48000 * 256 * 3) 50 }; 51 52 enum 53 { 54 VUMEM0ADDR = 0x11004000, 55 VUMEM0SIZE = 0x00001000, 56 }; 57 58 enum 59 { 60 MICROMEM0ADDR = 0x11000000, 61 MICROMEM0SIZE = 0x00001000, 62 }; 63 64 enum 65 { 66 VUMEM1ADDR = 0x1100C000, 67 VUMEM1SIZE = 0x00004000, 68 }; 69 70 enum 71 { 72 MICROMEM1ADDR = 0x11008000, 73 MICROMEM1SIZE = 0x00004000, 74 }; 75 76 enum 77 { 78 SPU_RAM_SIZE = 0x00200000, 79 }; 80 } 81 82 #endif 83