diff options
author | Jamin Lin <jamin_lin@aspeedtech.com> | 2024-07-04 16:29:15 +0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-07-09 08:05:44 +0200 |
commit | eec2f9cc69ba68c09dfba6812f58e550c1e83d68 (patch) | |
tree | ec0c06c376fd439265295adba09cb0028f8ae7f9 /include/hw/net | |
parent | 44b7329de469c121555a1acf9b288f3ae71b8e61 (diff) | |
download | qemu-eec2f9cc69ba68c09dfba6812f58e550c1e83d68.zip qemu-eec2f9cc69ba68c09dfba6812f58e550c1e83d68.tar.gz qemu-eec2f9cc69ba68c09dfba6812f58e550c1e83d68.tar.bz2 |
hw/net:ftgmac100: update memory region size to 64KB
According to the datasheet of ASPEED SOCs,
one MAC controller owns 128KB of register space for AST2500.
However, one MAC controller only owns 64KB of register space for AST2600
and AST2700. It set the memory region size 128KB and it occupied another
controllers Address Spaces.
Update one MAC controller memory region size to 0x1000
because AST2500 did not use register spaces over than 64KB.
Introduce a new container region size to 0x1000 and its range
is from 0 to 0xfff. This container is mapped a sub region
for the current set of register.
This sub region range is from 0 to 0xff.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/hw/net')
-rw-r--r-- | include/hw/net/ftgmac100.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/net/ftgmac100.h b/include/hw/net/ftgmac100.h index 765d153..269446e 100644 --- a/include/hw/net/ftgmac100.h +++ b/include/hw/net/ftgmac100.h @@ -14,6 +14,9 @@ #define TYPE_FTGMAC100 "ftgmac100" OBJECT_DECLARE_SIMPLE_TYPE(FTGMAC100State, FTGMAC100) +#define FTGMAC100_MEM_SIZE 0x1000 +#define FTGMAC100_REG_MEM_SIZE 0x100 + #include "hw/sysbus.h" #include "net/net.h" @@ -30,6 +33,7 @@ struct FTGMAC100State { NICState *nic; NICConf conf; qemu_irq irq; + MemoryRegion iomem_container; MemoryRegion iomem; uint8_t frame[FTGMAC100_MAX_FRAME_SIZE]; |