lan9118.c (95a9457fd44ad97c518858a4e1586a5498f9773c) lan9118.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9)
1/*
2 * SMSC LAN9118 Ethernet interface emulation
3 *
4 * Copyright (c) 2009 CodeSourcery, LLC.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GNU GPL v2
8 *

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

1345 s->eeprom[0] = 0xa5;
1346 for (i = 0; i < 6; i++) {
1347 s->eeprom[i + 1] = s->conf.macaddr.a[i];
1348 }
1349 s->pmt_ctrl = 1;
1350 s->txp = &s->tx_packet;
1351
1352 bh = qemu_bh_new(lan9118_tick, s);
1/*
2 * SMSC LAN9118 Ethernet interface emulation
3 *
4 * Copyright (c) 2009 CodeSourcery, LLC.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GNU GPL v2
8 *

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

1345 s->eeprom[0] = 0xa5;
1346 for (i = 0; i < 6; i++) {
1347 s->eeprom[i + 1] = s->conf.macaddr.a[i];
1348 }
1349 s->pmt_ctrl = 1;
1350 s->txp = &s->tx_packet;
1351
1352 bh = qemu_bh_new(lan9118_tick, s);
1353 s->timer = ptimer_init(bh, PTIMER_POLICY_DEFAULT);
1353 s->timer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT);
1354 ptimer_set_freq(s->timer, 10000);
1355 ptimer_set_limit(s->timer, 0xffff, 1);
1356}
1357
1358static Property lan9118_properties[] = {
1359 DEFINE_NIC_PROPERTIES(lan9118_state, conf),
1360 DEFINE_PROP_UINT32("mode_16bit", lan9118_state, mode_16bit, 0),
1361 DEFINE_PROP_END_OF_LIST(),

--- 41 unchanged lines hidden ---
1354 ptimer_set_freq(s->timer, 10000);
1355 ptimer_set_limit(s->timer, 0xffff, 1);
1356}
1357
1358static Property lan9118_properties[] = {
1359 DEFINE_NIC_PROPERTIES(lan9118_state, conf),
1360 DEFINE_PROP_UINT32("mode_16bit", lan9118_state, mode_16bit, 0),
1361 DEFINE_PROP_END_OF_LIST(),

--- 41 unchanged lines hidden ---