lasips2: rename ps2dev_update_irq() to lasips2_port_set_irq()
This better reflects that the IRQ input opaque is a LASIPS2Port structure and not a PS2_DEVICE. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220624134109.881989-18-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
2a93d3c165
commit
f342469f21
@ -253,7 +253,7 @@ static const MemoryRegionOps lasips2_reg_ops = {
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
};
|
||||
|
||||
static void ps2dev_update_irq(void *opaque, int level)
|
||||
static void lasips2_port_set_irq(void *opaque, int level)
|
||||
{
|
||||
LASIPS2Port *port = opaque;
|
||||
|
||||
@ -275,8 +275,8 @@ void lasips2_init(MemoryRegion *address_space,
|
||||
|
||||
vmstate_register(NULL, base, &vmstate_lasips2, s);
|
||||
|
||||
s->kbd.dev = ps2_kbd_init(ps2dev_update_irq, &s->kbd);
|
||||
s->mouse.dev = ps2_mouse_init(ps2dev_update_irq, &s->mouse);
|
||||
s->kbd.dev = ps2_kbd_init(lasips2_port_set_irq, &s->kbd);
|
||||
s->mouse.dev = ps2_mouse_init(lasips2_port_set_irq, &s->mouse);
|
||||
|
||||
memory_region_init_io(&s->kbd.reg, NULL, &lasips2_reg_ops, &s->kbd,
|
||||
"lasips2-kbd", 0x100);
|
||||
|
Loading…
Reference in New Issue
Block a user