Lines Matching refs:pi
97 MsInit (KdPointerInfo *pi)
99 if (!pi)
102 if (!pi->path || strcmp(pi->path, "auto"))
103 pi->path = strdup("/dev/mouse");
104 if (!pi->name)
105 pi->name = strdup("Microsoft protocol mouse");
111 MsEnable (KdPointerInfo *pi)
117 port = open (pi->path, O_RDWR | O_NONBLOCK);
119 ErrorF("Couldn't open %s (%d)\n", pi->path, (int)errno);
123 pi->path);
128 ErrorF("%s is not a tty\n", pi->path);
134 ErrorF("Couldn't tcgetattr(%s): %d\n", pi->path, errno);
150 ErrorF("Couldn't tcsetattr(%s): %d\n", pi->path, errno);
153 if (KdRegisterFd (port, MsRead, pi))
155 pi->driverPrivate = (void *)(intptr_t)port;
165 MsDisable (KdPointerInfo *pi)
167 KdUnregisterFd (pi, (int)(intptr_t)pi->driverPrivate, TRUE);
171 MsFini (KdPointerInfo *pi)