gem5  v20.1.0.0
Namespaces | Enumerations | Functions | Variables
types.hh File Reference
#include <stdint.h>
#include <list>
#include <vector>
#include "base/bitunion.hh"

Go to the source code of this file.

Namespaces

 Ps2
 
 Ps2::Keyboard
 
 Ps2::Mouse
 

Enumerations

enum  {
  Ps2::SelfTestPass = 0xAA, Ps2::ReadID = 0xF2, Ps2::Enable = 0xF4, Ps2::Disable = 0xF5,
  Ps2::DefaultsAndDisable = 0xF6, Ps2::SelfTestFail = 0xFC, Ps2::Ack = 0xFA, Ps2::Resend = 0xFE,
  Ps2::Reset = 0xFF
}
 
enum  {
  Ps2::Keyboard::LEDWrite = 0xED, Ps2::Keyboard::DiagnosticEcho = 0xEE, Ps2::Keyboard::AlternateScanCodes = 0xF0, Ps2::Keyboard::TypematicInfo = 0xF3,
  Ps2::Keyboard::AllKeysToTypematic = 0xF7, Ps2::Keyboard::AllKeysToMakeRelease = 0xF8, Ps2::Keyboard::AllKeysToMake = 0xF9, Ps2::Keyboard::AllKeysToTypematicMakeRelease = 0xFA,
  Ps2::Keyboard::KeyToTypematic = 0xFB, Ps2::Keyboard::KeyToMakeRelease = 0xFC, Ps2::Keyboard::KeyToMakeOnly = 0xFD
}
 
enum  {
  Ps2::Mouse::Scale1to1 = 0xE6, Ps2::Mouse::Scale2to1 = 0xE7, Ps2::Mouse::SetResolution = 0xE8, Ps2::Mouse::GetStatus = 0xE9,
  Ps2::Mouse::ReadData = 0xEB, Ps2::Mouse::ResetWrapMode = 0xEC, Ps2::Mouse::WrapMode = 0xEE, Ps2::Mouse::RemoteMode = 0xF0,
  Ps2::Mouse::SampleRate = 0xF3
}
 

Functions

 Ps2::BitUnion8 (Ps2MouseMovement) Bitfield< 0 > leftButton
 A bitfield that represents the first byte of a mouse movement packet. More...
 
 Ps2::EndBitUnion (Ps2MouseMovement) void keySymToPs2(uint32_t key
 Convert an x11 key symbol into a set of ps2 charecters. More...
 

Variables

const std::vector< uint8_t > Ps2::Keyboard::ID {0xAB, 0x83}
 
const std::vector< uint8_t > Ps2::Mouse::ID {0x00}
 
Bitfield< 1 > Ps2::rightButton
 
Bitfield< 2 > Ps2::middleButton
 
Bitfield< 3 > Ps2::one
 
Bitfield< 4 > Ps2::xSign
 
Bitfield< 5 > Ps2::ySign
 
Bitfield< 6 > Ps2::xOverflow
 
Bitfield< 7 > Ps2::yOverflow
 
bool Ps2::down
 
bool bool & Ps2::cur_shift
 
bool bool std::list< uint8_t > & Ps2::keys
 

Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17