Lines Matching +full:level +full:- +full:2

3 .\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
12 .\" 2. Redistributions in binary form must reproduce the above copyright
27 .Dd June 2, 2020
32 .Nd PS/2 mouse style pointing device driver
47 driver provides support for the PS/2 mouse style pointing device.
51 As the PS/2 mouse port is located
60 Basic PS/2 style pointing device has two or three buttons.
63 The PS/2 style pointing device usually has several grades of resolution,
76 .Xr ioctl 2
84 The PS/2 style pointing device typically supports 10, 20, 40, 60, 80, 100
94 The current operation level can be set via an ioctl call.
96 At the level zero the basic support is provided; the device driver will report
99 The movement and status are encoded in a series of fixed-length data packets
102 This is the default level of operation and the driver is initially
103 at this level when opened by the user program.
105 The operation level one, the `extended' level, supports a roller (or wheel),
108 8 byte data packets are sent to the user program at this level.
110 At the operation level two, data from the pointing device is passed to the
115 Modern PS/2 type pointing devices often use proprietary data format.
118 the driver at this level.
119 This level is called `native' level.
123 driver are formatted differently at each operation level.
125 A data packet from the PS/2 mouse style pointing device
126 is three bytes long at the operation level zero:
128 .Bl -tag -width Byte_1 -compact
130 .Bl -tag -width bit_7 -compact
144 .It bit 2
153 .It Byte 2
155 -256 through 255.
159 -256 through 255.
163 At the level one, a data packet is encoded
169 At the level two, native level, there is no standard on the size and format
189 .Bl -tag -width MOUSE
212 Sets the debug level to
214 The default debug level is zero.
228 .Bl -tag -width MOUSE
238 .Bl -tag -width 0_(medium_high)__ -compact
241 .It Em 2 (medium low)
264 PS/2 pointing devices, it may interfere with some devices which are not
268 .Bd -literal -offset indent
277 will not carry out model-specific initialization.
278 The device should always act like a standard PS/2 mouse without such
310 driver ignore certain error conditions when probing the PS/2 mouse port.
313 The built-in PS/2 pointing device of some laptop computers is somehow
329 driver to reset and re-initialize the pointing device
337 at boot-time.
348 at boot-time.
354 at boot-time.
367 at boot-time.
373 .Xr ioctl 2
383 .Bl -tag -width MOUSE -compact
384 .It Dv MOUSE_GETLEVEL Ar int *level
385 .It Dv MOUSE_SETLEVEL Ar int *level
386 These commands manipulate the operation level of the
393 .Bd -literal
437 at the operation level 0.
452 .Bl -tag -width 0__ -compact
455 .It Em 2
464 .Bd -literal
495 .Bd -literal
498 int rate; /* report rate (per sec), -1 if unknown */
499 int resolution; /* MOUSE_RES_XXX, -1 if unknown */
501 int level; /* driver operation level */
503 unsigned char syncmask[2]; /* sync. bits */
511 at the operation level zero and two.
513 at the operation level one.
534 .Bl -tag -width MOUSE_RES_MEDIUMHIGH__ -compact
557 operation level and the model of the pointing device.
559 .Bl -tag -width level_0__ -compact
560 .It Em level 0
562 .It Em level 1
564 .It Em level 2
587 .Dv level
594 If you do not want to change the current setting of a field, put -1
604 .\" .Bd -literal
624 .\" .Bl -tag -width Byte_1 -compact
626 .\" .Bl -tag -width bit_6 -compact
630 .\" 0 - stream mode, 1 - remote mode.
640 .\" 0 - 1:1 scaling, 1 - 2:1 scaling.
644 .\" .It bit 2
651 .\" .It Byte 2
652 .\" .Bl -tag -width bit_6_0 -compact
673 .Bl -tag -width /dev/npsm0 -compact
675 `non-blocking' device node
706 and the acceleration factor to 2.
708 At debug level 0, little information is logged except for the following
710 .Bd -literal -offset indent
721 At debug level 1 more information will be logged
723 Messages are logged with the LOG_KERN facility at the LOG_DEBUG level
726 .Bd -literal -offset indent
743 initialized the keyboard controller upon power-up.
760 .Bl -tag -width Byte_1 -compact
762 .Bl -tag -width bit_6 -compact
766 0 - stream mode, 1 - remote mode.
778 0 - 1:1 scaling, 1 - 2:1 scaling.
782 .It bit 2
789 .It Byte 2
790 .Bl -tag -width bit_6_0 -compact
810 At debug level 2, much more detailed information is logged.
812 .Xr ioctl 2 ,
825 .An -nosplit
856 Some PS/2 mouse models from MouseSystems require to be put in the
861 There is not a guaranteed way to re-synchronize with the first byte