mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
aspeed: add support for multiple NICs
The Aspeed SoCs have two MACs. Extend the Aspeed model to support a second NIC. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Message-id: 20190618165311.27066-7-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ece09beec4
commit
6734099048
2 changed files with 21 additions and 15 deletions
|
@ -25,6 +25,7 @@
|
|||
#define ASPEED_SPIS_NUM 2
|
||||
#define ASPEED_WDTS_NUM 3
|
||||
#define ASPEED_CPUS_NUM 2
|
||||
#define ASPEED_MACS_NUM 2
|
||||
|
||||
typedef struct AspeedSoCState {
|
||||
/*< private >*/
|
||||
|
@ -43,7 +44,7 @@ typedef struct AspeedSoCState {
|
|||
AspeedSMCState spi[ASPEED_SPIS_NUM];
|
||||
AspeedSDMCState sdmc;
|
||||
AspeedWDTState wdt[ASPEED_WDTS_NUM];
|
||||
FTGMAC100State ftgmac100;
|
||||
FTGMAC100State ftgmac100[ASPEED_MACS_NUM];
|
||||
} AspeedSoCState;
|
||||
|
||||
#define TYPE_ASPEED_SOC "aspeed-soc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue