imx_fec.c (2c107d7684f9e3c4db4780d0756bbf35b06aec07) | imx_fec.c (f394b2e20d9a666fb194fb692179a0eeaca5daea) |
---|---|
1/* 2 * i.MX Fast Ethernet Controller emulation. 3 * 4 * Copyright (c) 2013 Jean-Christophe Dubois. <jcd@tribudubois.net> 5 * 6 * Based on Coldfire Fast Ethernet Controller emulation. 7 * 8 * Copyright (c) 2007 CodeSourcery. --- 1133 unchanged lines hidden (view full) --- 1142static void imx_eth_cleanup(NetClientState *nc) 1143{ 1144 IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc)); 1145 1146 s->nic = NULL; 1147} 1148 1149static NetClientInfo imx_eth_net_info = { | 1/* 2 * i.MX Fast Ethernet Controller emulation. 3 * 4 * Copyright (c) 2013 Jean-Christophe Dubois. <jcd@tribudubois.net> 5 * 6 * Based on Coldfire Fast Ethernet Controller emulation. 7 * 8 * Copyright (c) 2007 CodeSourcery. --- 1133 unchanged lines hidden (view full) --- 1142static void imx_eth_cleanup(NetClientState *nc) 1143{ 1144 IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc)); 1145 1146 s->nic = NULL; 1147} 1148 1149static NetClientInfo imx_eth_net_info = { |
1150 .type = NET_CLIENT_OPTIONS_KIND_NIC, | 1150 .type = NET_CLIENT_DRIVER_NIC, |
1151 .size = sizeof(NICState), 1152 .can_receive = imx_eth_can_receive, 1153 .receive = imx_eth_receive, 1154 .cleanup = imx_eth_cleanup, 1155 .link_status_changed = imx_eth_set_link, 1156}; 1157 1158 --- 73 unchanged lines hidden --- | 1151 .size = sizeof(NICState), 1152 .can_receive = imx_eth_can_receive, 1153 .receive = imx_eth_receive, 1154 .cleanup = imx_eth_cleanup, 1155 .link_status_changed = imx_eth_set_link, 1156}; 1157 1158 --- 73 unchanged lines hidden --- |