|
gem5
v21.0.1.0
|
Namespaces | |
| Keyboard | |
| Mouse | |
Enumerations | |
| enum | { SelfTestPass = 0xAA, ReadID = 0xF2, Enable = 0xF4, Disable = 0xF5, DefaultsAndDisable = 0xF6, SelfTestFail = 0xFC, Ack = 0xFA, Resend = 0xFE, Reset = 0xFF } |
Functions | |
| void | keySymToPs2 (uint32_t key, bool down, bool &cur_shift, std::list< uint8_t > &keys) |
| BitUnion8 (Ps2MouseMovement) Bitfield< 0 > leftButton | |
| A bitfield that represents the first byte of a mouse movement packet. More... | |
| EndBitUnion (Ps2MouseMovement) void keySymToPs2(uint32_t key | |
| Convert an x11 key symbol into a set of ps2 charecters. More... | |
Variables | |
| static const uint16_t | keySymToPs2Byte [128] |
| Table to convert simple key symbols (0x00XX) into ps2 bytes. More... | |
| const uint8_t | ShiftKey = 0x12 |
| const uint8_t | BreakKey = 0xf0 |
| const uint8_t | ExtendedKey = 0xe0 |
| const uint32_t | UpperKeys = 0xff00 |
| Bitfield< 1 > | rightButton |
| Bitfield< 2 > | middleButton |
| Bitfield< 3 > | one |
| Bitfield< 4 > | xSign |
| Bitfield< 5 > | ySign |
| Bitfield< 6 > | xOverflow |
| Bitfield< 7 > | yOverflow |
| bool | down |
| bool bool & | cur_shift |
| bool bool std::list< uint8_t > & | keys |
| anonymous enum |
| Ps2::BitUnion8 | ( | Ps2MouseMovement | ) |
A bitfield that represents the first byte of a mouse movement packet.
| Ps2::EndBitUnion | ( | Ps2MouseMovement | ) |
Convert an x11 key symbol into a set of ps2 charecters.
| key | x11 key symbol |
| down | if the key is being pressed or released |
| cur_shift | if device has already sent a shift |
| keys | list of keys command to send to emulate the x11 key symbol |
| void Ps2::keySymToPs2 | ( | uint32_t | key, |
| bool | down, | ||
| bool & | cur_shift, | ||
| std::list< uint8_t > & | keys | ||
| ) |
Definition at line 83 of file types.cc.
References BreakKey, cur_shift, down, ExtendedKey, keys, keySymToPs2Byte, ArmISA::shift, ShiftKey, UpperKeys, and warn.
Referenced by PS2Keyboard::keyPress().
| const uint8_t Ps2::BreakKey = 0xf0 |
Definition at line 78 of file types.cc.
Referenced by keySymToPs2().
| bool bool& Ps2::cur_shift |
Definition at line 123 of file types.hh.
Referenced by keySymToPs2().
| bool Ps2::down |
Definition at line 123 of file types.hh.
Referenced by PS2Keyboard::keyPress(), and keySymToPs2().
| const uint8_t Ps2::ExtendedKey = 0xe0 |
Definition at line 79 of file types.cc.
Referenced by keySymToPs2().
| bool bool std::list<uint8_t>& Ps2::keys |
Definition at line 124 of file types.hh.
Referenced by PS2Keyboard::keyPress(), and keySymToPs2().
|
static |
Table to convert simple key symbols (0x00XX) into ps2 bytes.
Lower byte is the scan code to send and upper byte is if a modifier is required to generate it. The table generates us keyboard codes, (e.g. the guest is supposed to recognize the keyboard as en_US). A new table would be required for another locale.
Definition at line 57 of file types.cc.
Referenced by keySymToPs2().
| Bitfield<3> Ps2::one |
Definition at line 110 of file types.hh.
Referenced by ThreadContext::compare().
| const uint8_t Ps2::ShiftKey = 0x12 |
Definition at line 77 of file types.cc.
Referenced by keySymToPs2().
| const uint32_t Ps2::UpperKeys = 0xff00 |
Definition at line 80 of file types.cc.
Referenced by keySymToPs2().