Revision c1e1a491 hw/etraxfs.c
b/hw/etraxfs.c | ||
---|---|---|
94 | 94 |
} |
95 | 95 |
|
96 | 96 |
/* Add the two ethernet blocks. */ |
97 |
nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth"; |
|
97 | 98 |
eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000); |
98 |
if (nb_nics > 1) |
|
99 |
if (nb_nics > 1) { |
|
100 |
nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth"; |
|
99 | 101 |
eth[1] = etraxfs_eth_init(&nd_table[1], env, pic->irq + 26, 0x30036000); |
102 |
} |
|
100 | 103 |
|
101 | 104 |
/* The DMA Connector block is missing, hardwire things for now. */ |
102 | 105 |
etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]); |
Also available in: Unified diff