Re: [RFC Patch 5/5] hw/input: Add Allwinner-A10 PS2 emulation

2023-09-16 Thread Strahinja Jankovic
Hi Peter, Thank you for your comments. I used the PL050 component as a starting point, but I did not clean things up well after I saw it working. I will clean it up before sending the new patch version. On Fri, Sep 15, 2023 at 4:23 PM Peter Maydell wrote: > On Tue, 5 Sept 2023 at 21:14, Strahi

Re: [RFC Patch 5/5] hw/input: Add Allwinner-A10 PS2 emulation

2023-09-15 Thread Peter Maydell
On Tue, 5 Sept 2023 at 21:14, Strahinja Jankovic wrote: > > Add emulation for PS2-0 and PS2-1 for keyboard/mouse. > > Signed-off-by: Strahinja Jankovic > +static int allwinner_a10_ps2_fctl_is_irq(AwA10PS2State *s) > +{ > +return (s->regs[REG_INDEX(REG_FCTL)] & FIELD_REG_FCTL_TXRDY_IEN) ||