diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-07 04:31:29 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-07 04:31:29 +0000 |
| commit | 2d5a9a02425951f4efed764d135be96867eb532f (patch) | |
| tree | d94be7649ef8ccb627df551ac69f5d4a6a941cb6 /libpcsxcore/psxhw.h | |
| parent | 6a4fd490f8c754883bee9468be8d35dc7a651cee (diff) | |
| download | pcsxr-2d5a9a02425951f4efed764d135be96867eb532f.tar.gz | |
preparing for refactor/cleanup, moved all definations into .c files, other minor cleanups. (Breaks Mac OS X and maybe windows as well for now, will fix later.)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47542 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxhw.h')
| -rw-r--r-- | libpcsxcore/psxhw.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libpcsxcore/psxhw.h b/libpcsxcore/psxhw.h index 43f70763..eb3bad7a 100644 --- a/libpcsxcore/psxhw.h +++ b/libpcsxcore/psxhw.h @@ -54,20 +54,19 @@ #define HW_DMA_ICR (psxHu32ref(0x10f4)) #define DMA_INTERRUPT(n) \ - if (SWAPu32(HW_DMA_ICR) & (1 << (16 + n))) { \ - HW_DMA_ICR|= SWAP32(1 << (24 + n)); \ - psxHu32ref(0x1070) |= SWAP32(8); \ - psxRegs.interrupt|= 0x80000000; \ + if (SWAPu32(HW_DMA_ICR) & (1 << (16 + n))) { \ + HW_DMA_ICR |= SWAP32(1 << (24 + n)); \ + psxHu32ref(0x1070) |= SWAP32(8); \ + psxRegs.interrupt |= 0x80000000; \ } - void psxHwReset(); -u8 psxHwRead8 (u32 add); -u16 psxHwRead16(u32 add); -u32 psxHwRead32(u32 add); -void psxHwWrite8 (u32 add, u8 value); +u8 psxHwRead8(u32 add); +u16 psxHwRead16(u32 add); +u32 psxHwRead32(u32 add); +void psxHwWrite8(u32 add, u8 value); void psxHwWrite16(u32 add, u16 value); void psxHwWrite32(u32 add, u32 value); int psxHwFreeze(gzFile f, int Mode); -#endif /* __PSXHW_H__ */ +#endif |
