Revision ba494313 hw/etraxfs_eth.c

b/hw/etraxfs_eth.c
319 319

  
320 320
struct fs_eth
321 321
{
322
	CPUState *env;
323 322
	VLANClientState *vc;
324 323
	int ethregs;
325 324

  
......
565 564
        qemu_free(eth);
566 565
}
567 566

  
568
void *etraxfs_eth_init(NICInfo *nd, CPUState *env, 
569
		       target_phys_addr_t base, int phyaddr)
567
void *etraxfs_eth_init(NICInfo *nd, target_phys_addr_t base, int phyaddr)
570 568
{
571 569
	struct etraxfs_dma_client *dma = NULL;	
572 570
	struct fs_eth *eth = NULL;
......
574 572
	qemu_check_nic_model(nd, "fseth");
575 573

  
576 574
	dma = qemu_mallocz(sizeof *dma * 2);
577

  
578 575
	eth = qemu_mallocz(sizeof *eth);
579 576

  
580 577
	dma[0].client.push = eth_tx_push;
......
582 579
	dma[1].client.opaque = eth;
583 580
	dma[1].client.pull = NULL;
584 581

  
585
	eth->env = env;
586 582
	eth->dma_out = dma;
587 583
	eth->dma_in = dma + 1;
588 584

  

Also available in: Unified diff