| 1 | // |
| 2 | // Jaguar blitter implementation |
| 3 | // |
| 4 | |
| 5 | #ifndef __BLITTER_H__ |
| 6 | #define __BLITTER_H__ |
| 7 | |
| 8 | //#include "types.h" |
| 9 | #include "memory.h" |
| 10 | |
| 11 | void BlitterInit(void); |
| 12 | void BlitterReset(void); |
| 13 | void BlitterDone(void); |
| 14 | |
| 15 | uint8_t BlitterReadByte(uint32_t, uint32_t who = UNKNOWN); |
| 16 | uint16_t BlitterReadWord(uint32_t, uint32_t who = UNKNOWN); |
| 17 | uint32_t BlitterReadLong(uint32_t, uint32_t who = UNKNOWN); |
| 18 | void BlitterWriteByte(uint32_t, uint8_t, uint32_t who = UNKNOWN); |
| 19 | void BlitterWriteWord(uint32_t, uint16_t, uint32_t who = UNKNOWN); |
| 20 | void BlitterWriteLong(uint32_t, uint32_t, uint32_t who = UNKNOWN); |
| 21 | |
| 22 | uint32_t blitter_reg_read(uint32_t offset); |
| 23 | void blitter_reg_write(uint32_t offset, uint32_t data); |
| 24 | |
| 25 | extern uint8_t blitter_working; |
| 26 | |
| 27 | //For testing only... |
| 28 | void LogBlit(void); |
| 29 | |
| 30 | #endif // __BLITTER_H__ |