gem5 v24.0.0.0
Loading...
Searching...
No Matches
types.hh File Reference
#include <stdint.h>
#include <list>
#include <vector>
#include "base/bitunion.hh"
#include "base/compiler.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 
namespace  gem5::ps2
 
namespace  gem5::ps2::keyboard
 
namespace  gem5::ps2::mouse
 

Enumerations

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

Functions

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

Variables

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

Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0