summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_emulation.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_emulation.h')
-rw-r--r--kernel/gsp_emulation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/gsp_emulation.h b/kernel/gsp_emulation.h
index 6fa69b1..801ea78 100644
--- a/kernel/gsp_emulation.h
+++ b/kernel/gsp_emulation.h
@@ -129,6 +129,11 @@ struct gsp_emu_context {
/* GSP-RM msgq emulation (physical path, guest-sysmem queues) */
struct gsp_rm_emu *rm_emu;
+
+ /* PRAMIN window translation state (BAR0 window -> emulated vidmem) */
+ u32 bar0_window_base; /* last-seen NV_PBUS_BAR0_WINDOW BASE (page) */
+ u32 bar0_window_target; /* last-seen TARGET (0=vidmem, 2/3=sysmem) */
+ bool bar0_window_valid; /* base/target captured at least once */
};
/* Shadow accessors shared with gsp_rm_emulation.c */