VIRTUTECH CONFIDENTIAL    Previous - Up - Next

sun-keyboard

Provided by
sun-keyboard
Class Hierarchy
conf-objectlog-objectsun-keyboard
Interfaces Implemented
log_object, keyboard, serial_device
Description
The sun-keyboard device simulated a Sun Type 5 keyboard. It should be connected to a serial device for output, and to a graphics console to receive actual keyboard input.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
device
Optional attribute; read/write access; type: Object.

The serial device that the keyboard is connected to. The device must implement the serial-device interface.

key_event
Pseudo attribute; write-only access; type: Integer; integer indexed; indexed type: unknown type.

Write-only. Forces keyboard events. Writing value (an integer) to index i forces key number i to be pressed if value is 0, or released if value is 1.

keyboard_buffer
Optional attribute; read/write access; type: [i*].

The keyboard input buffer.

keys_down
Optional attribute; read/write access; type: [i*].

List of keys currently pressed.

led_byte_next
Optional attribute; read/write access; type: Integer.

Set if keyboard has received a SET_LED command and is waiting for the data byte.

recorder
Required attribute; read/write access; type: Object.

Recorder object defining the recorder interface.

send_pc_codes
Optional attribute; read/write access; type: Integer.

This is a workaround for Linux kernel 2.4 that interprets key-codes from the Sun keyboard as PC (PS2) scan-codes, although the keyboard was correctly identified as a Sun Type 5 keyboard. (It is not yet verified if this is a Linux or Simics problem).

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
key-downsend key event
key-upsend key event

Command Descriptions

<sun-keyboard>.key-down
Synopsis
<sun-keyboard>.key-down key-code
<sun-keyboard>.key-up key-code
Description
Send a key press to the keyboard controller. The argument is the internal Simics keycode.
<sun-keyboard>.key-up
Synopsis
<sun-keyboard>.key-up key-code
<sun-keyboard>.key-down key-code
Description
Send a key press to the keyboard controller. The argument is the internal Simics keycode.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next