xgmac.c (8ef94f0bc9167f246b41cb1188bf80dcd84b49fe) xgmac.c (f394b2e20d9a666fb194fb692179a0eeaca5daea)
1/*
2 * QEMU model of XGMAC Ethernet.
3 *
4 * derived from the Xilinx AXI-Ethernet by Edgar E. Iglesias.
5 *
6 * Copyright (c) 2011 Calxeda, Inc.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 357 unchanged lines hidden (view full) ---

366 ret = size;
367
368out:
369 enet_update_irq(s);
370 return ret;
371}
372
373static NetClientInfo net_xgmac_enet_info = {
1/*
2 * QEMU model of XGMAC Ethernet.
3 *
4 * derived from the Xilinx AXI-Ethernet by Edgar E. Iglesias.
5 *
6 * Copyright (c) 2011 Calxeda, Inc.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 357 unchanged lines hidden (view full) ---

366 ret = size;
367
368out:
369 enet_update_irq(s);
370 return ret;
371}
372
373static NetClientInfo net_xgmac_enet_info = {
374 .type = NET_CLIENT_OPTIONS_KIND_NIC,
374 .type = NET_CLIENT_DRIVER_NIC,
375 .size = sizeof(NICState),
376 .receive = eth_rx,
377};
378
379static int xgmac_enet_init(SysBusDevice *sbd)
380{
381 DeviceState *dev = DEVICE(sbd);
382 XgmacState *s = XGMAC(dev);

--- 51 unchanged lines hidden ---
375 .size = sizeof(NICState),
376 .receive = eth_rx,
377};
378
379static int xgmac_enet_init(SysBusDevice *sbd)
380{
381 DeviceState *dev = DEVICE(sbd);
382 XgmacState *s = XGMAC(dev);

--- 51 unchanged lines hidden ---