summaryrefslogtreecommitdiffstats
path: root/sys/dev/cesa/cesa.h
diff options
context:
space:
mode:
authorzbb <zbb@FreeBSD.org>2016-06-02 18:31:36 +0000
committerzbb <zbb@FreeBSD.org>2016-06-02 18:31:36 +0000
commit4f50db82704b83f0e922df1c00524872f9bbd88a (patch)
tree12a1256c8a6f8e72fc136753cd7e6cab8a814d1f /sys/dev/cesa/cesa.h
parenteb1a6405b8db6031b2c471720d285f8a444fc4a7 (diff)
downloadFreeBSD-src-4f50db82704b83f0e922df1c00524872f9bbd88a.zip
FreeBSD-src-4f50db82704b83f0e922df1c00524872f9bbd88a.tar.gz
Map CESA SRAM memory in driver attach for Armada38x
On other platforms with CESA accelerator the SRAM memory is mapped in early init before driver is attached. This method only works correctly with mappings no smaller than L1 section size (1MB). There may be more SRAM blocks and they may have smaller sizes than 1MB as is the case for Armada38x. Instead, map SRAM memory with bus_space_map() in CESA driver attach. Note that we can no longer assume that VA == PA for the SRAM. Submitted by: Michal Stanek <mst@semihalf.com Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D6215
Diffstat (limited to 'sys/dev/cesa/cesa.h')
-rw-r--r--sys/dev/cesa/cesa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cesa/cesa.h b/sys/dev/cesa/cesa.h
index 28536d5..4383648 100644
--- a/sys/dev/cesa/cesa.h
+++ b/sys/dev/cesa/cesa.h
@@ -257,7 +257,9 @@ struct cesa_softc {
STAILQ_HEAD(, cesa_session) sc_free_sessions;
/* CESA SRAM Address */
- bus_addr_t sc_sram_base;
+ bus_addr_t sc_sram_base_pa;
+ bus_space_handle_t sc_sram_base_va;
+ bus_size_t sc_sram_size;
};
struct cesa_chain_info {
OpenPOWER on IntegriCloud