summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2020-10-19 15:46:16 -0700
committerMike Pavone <pavone@retrodev.com>2020-10-19 15:46:16 -0700
commit581cca6792fd7e68e15c8268c8384e769584d50a (patch)
tree5bf3ffe41566d7464c70909875e96d5c18beac62 /vdp.h
parenta132e67f7a2d728036edf5b8d56bb98766547721 (diff)
Add support for the parts of the KMod debug ports used by SGDK
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/vdp.h b/vdp.h
index b58aca5..c33b42f 100644
--- a/vdp.h
+++ b/vdp.h
@@ -91,7 +91,10 @@ enum {
REG_DMALEN_H,
REG_DMASRC_L,
REG_DMASRC_M,
- REG_DMASRC_H
+ REG_DMASRC_H,
+ REG_KMOD_CTRL=29,
+ REG_KMOD_MSG,
+ REG_KMOD_TIMER
};
//Mode reg 1
@@ -168,6 +171,10 @@ typedef struct {
uint32_t *fb;
uint8_t *done_composite;
uint32_t *debug_fbs[VDP_NUM_DEBUG_TYPES];
+ char *kmod_msg_buffer;
+ uint32_t kmod_buffer_storage;
+ uint32_t kmod_buffer_length;
+ uint32_t timer_start_cycle;
uint32_t output_pitch;
uint32_t debug_fb_pitch[VDP_NUM_DEBUG_TYPES];
fifo_entry fifo[FIFO_SIZE];