2 * Interface to raw PS/2 aux port.
3 * Used by user-level mouse daemon.
7 #include "../port/lib.h"
11 #include "../port/error.h"
21 * BUG: we ignore shift here.
22 * we need a more general solution,
23 * one that will also work for serial mice.
33 qproduce(psauxq, &uc, 1);
37 psauxread(Chan*, void *a, long n, vlong)
39 return qread(psauxq, a, n);
43 psauxwrite(Chan*, void *a, long n, vlong)
45 return i8042auxcmds(a, n);
51 psauxq = qopen(1024, 0, 0, 0);
55 i8042auxenable(psauxputc);
56 addarchfile("psaux", DMEXCL|0660, psauxread, psauxwrite);