stellaris_enet.c (dc1ffa66619b3661f17a309b0aa8d65d8d29583f) stellaris_enet.c (f394b2e20d9a666fb194fb692179a0eeaca5daea)
1/*
2 * Luminary Micro Stellaris Ethernet Controller
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

455 s->rctl = SE_RCTL_BADCRC;
456 s->im = SE_INT_PHY | SE_INT_MD | SE_INT_RXER | SE_INT_FOV | SE_INT_TXEMP
457 | SE_INT_TXER | SE_INT_RX;
458 s->thr = 0x3f;
459 s->tx_fifo_len = 0;
460}
461
462static NetClientInfo net_stellaris_enet_info = {
1/*
2 * Luminary Micro Stellaris Ethernet Controller
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

455 s->rctl = SE_RCTL_BADCRC;
456 s->im = SE_INT_PHY | SE_INT_MD | SE_INT_RXER | SE_INT_FOV | SE_INT_TXEMP
457 | SE_INT_TXER | SE_INT_RX;
458 s->thr = 0x3f;
459 s->tx_fifo_len = 0;
460}
461
462static NetClientInfo net_stellaris_enet_info = {
463 .type = NET_CLIENT_OPTIONS_KIND_NIC,
463 .type = NET_CLIENT_DRIVER_NIC,
464 .size = sizeof(NICState),
465 .receive = stellaris_enet_receive,
466};
467
468static int stellaris_enet_init(SysBusDevice *sbd)
469{
470 DeviceState *dev = DEVICE(sbd);
471 stellaris_enet_state *s = STELLARIS_ENET(dev);

--- 43 unchanged lines hidden ---
464 .size = sizeof(NICState),
465 .receive = stellaris_enet_receive,
466};
467
468static int stellaris_enet_init(SysBusDevice *sbd)
469{
470 DeviceState *dev = DEVICE(sbd);
471 stellaris_enet_state *s = STELLARIS_ENET(dev);

--- 43 unchanged lines hidden ---