xilinx_ethlite.c (84a5a8014801a83d1b8d15fa7f0fde03db081530) | xilinx_ethlite.c (f394b2e20d9a666fb194fb692179a0eeaca5daea) |
---|---|
1/* 2 * QEMU model of the Xilinx Ethernet Lite MAC. 3 * 4 * Copyright (c) 2009 Edgar E. Iglesias. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 203 unchanged lines hidden (view full) --- 212static void xilinx_ethlite_reset(DeviceState *dev) 213{ 214 struct xlx_ethlite *s = XILINX_ETHLITE(dev); 215 216 s->rxbuf = 0; 217} 218 219static NetClientInfo net_xilinx_ethlite_info = { | 1/* 2 * QEMU model of the Xilinx Ethernet Lite MAC. 3 * 4 * Copyright (c) 2009 Edgar E. Iglesias. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 203 unchanged lines hidden (view full) --- 212static void xilinx_ethlite_reset(DeviceState *dev) 213{ 214 struct xlx_ethlite *s = XILINX_ETHLITE(dev); 215 216 s->rxbuf = 0; 217} 218 219static NetClientInfo net_xilinx_ethlite_info = { |
220 .type = NET_CLIENT_OPTIONS_KIND_NIC, | 220 .type = NET_CLIENT_DRIVER_NIC, |
221 .size = sizeof(NICState), 222 .can_receive = eth_can_rx, 223 .receive = eth_rx, 224}; 225 226static void xilinx_ethlite_realize(DeviceState *dev, Error **errp) 227{ 228 struct xlx_ethlite *s = XILINX_ETHLITE(dev); --- 48 unchanged lines hidden --- | 221 .size = sizeof(NICState), 222 .can_receive = eth_can_rx, 223 .receive = eth_rx, 224}; 225 226static void xilinx_ethlite_realize(DeviceState *dev, Error **errp) 227{ 228 struct xlx_ethlite *s = XILINX_ETHLITE(dev); --- 48 unchanged lines hidden --- |