diff options
author | Cédric Le Goater <clg@kaod.org> | 2019-09-25 16:32:37 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-10-15 18:09:04 +0100 |
commit | d0e250400844323a6edf783b0d8ef7545e34105f (patch) | |
tree | 1523ad1839da94afc024669ee97b2a7a336d6bd4 /include | |
parent | 6b2b2a703cad4c2138b848dcdcc65634c2823c08 (diff) | |
download | qemu-d0e250400844323a6edf783b0d8ef7545e34105f.zip qemu-d0e250400844323a6edf783b0d8ef7545e34105f.tar.gz qemu-d0e250400844323a6edf783b0d8ef7545e34105f.tar.bz2 |
aspeed/smc: Introduce segment operations
AST2600 will use a different encoding for the addresses defined in the
Segment Register.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Message-id: 20190925143248.10000-13-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ssi/aspeed_smc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ssi/aspeed_smc.h b/include/hw/ssi/aspeed_smc.h index 5176ff6..684d16e 100644 --- a/include/hw/ssi/aspeed_smc.h +++ b/include/hw/ssi/aspeed_smc.h @@ -49,6 +49,10 @@ typedef struct AspeedSMCController { hwaddr dma_flash_mask; hwaddr dma_dram_mask; uint32_t nregs; + uint32_t (*segment_to_reg)(const struct AspeedSMCState *s, + const AspeedSegments *seg); + void (*reg_to_segment)(const struct AspeedSMCState *s, uint32_t reg, + AspeedSegments *seg); } AspeedSMCController; typedef struct AspeedSMCFlash { |