summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_boot.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_phys_boot.h')
-rw-r--r--kernel/gsp_phys_boot.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/gsp_phys_boot.h b/kernel/gsp_phys_boot.h
index 3f6ad6e..c305e0a 100644
--- a/kernel/gsp_phys_boot.h
+++ b/kernel/gsp_phys_boot.h
@@ -52,4 +52,17 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev,
resource_size_t bar1_len);
void gsp_phys_boot_layout_fini(struct gsp_phys_boot *boot, struct pci_dev *pdev);
+/*
+ * Record the host-DMA sysmem addresses of the staged boot images in the WPR
+ * metadata page (stage 3d staging). The layout already set the sizes and
+ * offsets; this fills the addresses the Booter Load ucode DMAs from. The
+ * crash-report queue is left at 0 (Turing programs no queue). No device
+ * access. Returns nonzero when the metadata page is unavailable or a sysmem
+ * address is zero (the readback proves the store).
+ */
+int gsp_phys_boot_meta_set_sysmem(struct gsp_phys_boot *boot,
+ u64 radix3_dma, u64 radix3_size,
+ u64 fmc_dma, u64 fmc_size,
+ u64 sig_dma, u64 sig_size);
+
#endif /* GSP_PHYS_BOOT_H */