musicpal.c (f884294bd76eb89127d311627d8de1b70ec9ba54) musicpal.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9)
1/*
2 * Marvell MV88W8618 / Freecom MusicPal emulation.
3 *
4 * Copyright (c) 2008 Jan Kiszka
5 *
6 * This code is licensed under the GNU GPL v2.
7 *
8 * Contributions after 2012-01-13 are licensed under the terms of the

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

844 uint32_t freq)
845{
846 QEMUBH *bh;
847
848 sysbus_init_irq(dev, &s->irq);
849 s->freq = freq;
850
851 bh = qemu_bh_new(mv88w8618_timer_tick, s);
1/*
2 * Marvell MV88W8618 / Freecom MusicPal emulation.
3 *
4 * Copyright (c) 2008 Jan Kiszka
5 *
6 * This code is licensed under the GNU GPL v2.
7 *
8 * Contributions after 2012-01-13 are licensed under the terms of the

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

844 uint32_t freq)
845{
846 QEMUBH *bh;
847
848 sysbus_init_irq(dev, &s->irq);
849 s->freq = freq;
850
851 bh = qemu_bh_new(mv88w8618_timer_tick, s);
852 s->ptimer = ptimer_init(bh, PTIMER_POLICY_DEFAULT);
852 s->ptimer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT);
853}
854
855static uint64_t mv88w8618_pit_read(void *opaque, hwaddr offset,
856 unsigned size)
857{
858 mv88w8618_pit_state *s = opaque;
859 mv88w8618_timer_state *t;
860

--- 884 unchanged lines hidden ---
853}
854
855static uint64_t mv88w8618_pit_read(void *opaque, hwaddr offset,
856 unsigned size)
857{
858 mv88w8618_pit_state *s = opaque;
859 mv88w8618_timer_state *t;
860

--- 884 unchanged lines hidden ---