Funky, I had made almost the same changes some time ago, but I didn't knowabout the extra two bytes in the protocol.
The two extra bytes are for MSC protocol, seems like original SUN mouse has only three bytes. I can only test it with linux guest, here these two extra bytes are really helpful.
This patch adds serial mouse support for sun4m slavio emulation.
Funky, I had made almost the same changes some time ago, but I didn't know
about the extra two bytes in the protocol. I merged your changes with mine,
result attached.
___