Commit 678fdca87a39eb7989b1c5ede0b1f36cfd3519b0
1 parent
340d96e7
etrax: Remove unused eth irq line.
The ethernet blocks irq line to report errors is unimplemented in QEMU. Remove it for now. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing
4 changed files
with
6 additions
and
10 deletions
hw/axis_dev88.c
... | ... | @@ -302,10 +302,9 @@ void axisdev88_init (ram_addr_t ram_size, |
302 | 302 | } |
303 | 303 | |
304 | 304 | /* Add the two ethernet blocks. */ |
305 | - eth[0] = etraxfs_eth_init(&nd_table[0], env, irq + 25, 0x30034000, 1); | |
305 | + eth[0] = etraxfs_eth_init(&nd_table[0], env, 0x30034000, 1); | |
306 | 306 | if (nb_nics > 1) |
307 | - eth[1] = etraxfs_eth_init(&nd_table[1], env, | |
308 | - irq + 26, 0x30036000, 2); | |
307 | + eth[1] = etraxfs_eth_init(&nd_table[1], env, 0x30036000, 2); | |
309 | 308 | |
310 | 309 | /* The DMA Connector block is missing, hardwire things for now. */ |
311 | 310 | etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]); | ... | ... |
hw/etraxfs.c
... | ... | @@ -93,10 +93,9 @@ void bareetraxfs_init (ram_addr_t ram_size, |
93 | 93 | } |
94 | 94 | |
95 | 95 | /* Add the two ethernet blocks. */ |
96 | - eth[0] = etraxfs_eth_init(&nd_table[0], env, irq + 25, 0x30034000, 1); | |
96 | + eth[0] = etraxfs_eth_init(&nd_table[0], env, 0x30034000, 1); | |
97 | 97 | if (nb_nics > 1) |
98 | - eth[1] = etraxfs_eth_init(&nd_table[1], env, | |
99 | - irq + 26, 0x30036000, 2); | |
98 | + eth[1] = etraxfs_eth_init(&nd_table[1], env, 0x30036000, 2); | |
100 | 99 | |
101 | 100 | /* The DMA Connector block is missing, hardwire things for now. */ |
102 | 101 | etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]); | ... | ... |
hw/etraxfs.h
hw/etraxfs_eth.c
... | ... | @@ -320,7 +320,6 @@ static void mdio_cycle(struct qemu_mdio *bus) |
320 | 320 | struct fs_eth |
321 | 321 | { |
322 | 322 | CPUState *env; |
323 | - qemu_irq *irq; | |
324 | 323 | VLANClientState *vc; |
325 | 324 | int ethregs; |
326 | 325 | |
... | ... | @@ -565,7 +564,7 @@ static void eth_cleanup(VLANClientState *vc) |
565 | 564 | } |
566 | 565 | |
567 | 566 | void *etraxfs_eth_init(NICInfo *nd, CPUState *env, |
568 | - qemu_irq *irq, target_phys_addr_t base, int phyaddr) | |
567 | + target_phys_addr_t base, int phyaddr) | |
569 | 568 | { |
570 | 569 | struct etraxfs_dma_client *dma = NULL; |
571 | 570 | struct fs_eth *eth = NULL; |
... | ... | @@ -582,7 +581,6 @@ void *etraxfs_eth_init(NICInfo *nd, CPUState *env, |
582 | 581 | dma[1].client.pull = NULL; |
583 | 582 | |
584 | 583 | eth->env = env; |
585 | - eth->irq = irq; | |
586 | 584 | eth->dma_out = dma; |
587 | 585 | eth->dma_in = dma + 1; |
588 | 586 | ... | ... |