HP-UX Reference (11i v2 07/12) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

p
ps2(7) ps2(7)
(PA-RISC Systems Only)
PS2_ENABLE
Enable a PS/2 device
Transmissions from the device are enabled. This request does not use arg.
PS2_IDENT Identify a PS/2 device.
A value identifying the type of device is returned in the 4-byte buffer
addressed by arg. The keyboard returns two bytes (arg
[0]=0xAB and
arg
[1]=0x83). The mouse returns one byte (arg
[0]=0x00).
PS2_SETDEFAULT
Set the device to its default (power-up) state.
The device is returned to its default internal state. This request does not use
arg.
PS2_RESET Reset a PS/2 device.
The device is told to execute its internal reset routine and execute its power-up
test. The result of the power-up test is returned in the 4-byte buffer addressed
by arg. The mouse returns two bytes to indicate a successful reset
(arg[0]=0xAA and arg[1]=0x00). The keyboard returns one byte
(arg
[0]=0xAA).
Keyboard-Specific ioctl() Requests
PS2_SCANCODE Select the keyboard scancode set
The scancode set to be used by the keyboard is passed as the rst byte of the
buffer addressed by arg. The following are valid values for this byte:
SCANCODE_1 Selects scancode set 1.
SCANCODE_2 Selects scancode set 2.
SCANCODE_3 Selects scancode set 3.
GET_SCANCODE Returns the scancode used.
When GET_SCANCODE is specified, the scancode used by the keyboard is
returned as the first byte of the character buffer addressed by arg. Some key-
boards do not support all scancode sets.
PS2_ALL_TMAT Set all keys to typematic behavior.
This request can be made when the keyboard is using any scancode set; how-
ever, it affects only the operation of scancode set 3. The arg parameter is not
used. The typematic rate and delay are set via the PS2_RATEDELAY
ioctl()
request.
PS2_ALL_MK Set all keys to make-only behavior.
This request can be made when the keyboard is using any scancode set; how-
ever, it affects only the operation of scancode set 3. The arg parameter is not
used.
PS2_ALL_MKBRK Set all keys to make/break behavior.
This request can be made when the keyboard is using any scancode set; how-
ever, it affects only the operation of scancode set 3. The arg parameter is not
used.
PS2_ALL_TMAT_MKBRK Set all keys to typematic make/break behavior.
This request can be made when the keyboard is using any scancode set; how-
ever, it affects only the operation of scancode set 3. The arg parameter is not
used. The typematic rate and delay are set via the PS2_RATEDELAY
ioctl()
request.
PS2_KEY_TMAT Set typematic behavior for an individual key.
The key code from scancode set 3 for the individual key is passed as the first
byte in the character buffer addressed by arg. This request can be made when
the keyboard is using any scancode set; however, it affects only the operation
of scancode set 3. The typematic rate and delay are set via the
PS2_RATEDELAY ioctl() request. Because keyboards might be left in a
disabled state after this request, the PS2_ENABLE request should be
114 Hewlett-Packard Company 3 HP-UX 11i Version 2: December 2007 Update