gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
X86ISA::PS2Mouse Class Reference

#include <i8042.hh>

Inheritance diagram for X86ISA::PS2Mouse:
X86ISA::PS2Device

Public Member Functions

 PS2Mouse ()
 
bool processData (uint8_t data) override
 
void serialize (const std::string &base, CheckpointOut &cp) const override
 
void unserialize (const std::string &base, CheckpointIn &cp) override
 
- Public Member Functions inherited from X86ISA::PS2Device
virtual ~PS2Device ()
 
 PS2Device ()
 
bool hasData ()
 
uint8_t getData ()
 

Protected Types

enum  Command {
  Scale1to1 = 0xE6, Scale2to1 = 0xE7, SetResolution = 0xE8, GetStatus = 0xE9,
  ReadData = 0xEB, ResetWrapMode = 0xEC, WrapMode = 0xEE, RemoteMode = 0xF0,
  ReadID = 0xF2, SampleRate = 0xF3, EnableReporting = 0xF4, DisableReporting = 0xF5,
  DefaultsAndDisable = 0xF6, Resend = 0xFE, Reset = 0xFF
}
 

Protected Member Functions

 BitUnion8 (Status) Bitfield< 6 > remote
 
 EndBitUnion (Status) Status status
 
- Protected Member Functions inherited from X86ISA::PS2Device
void bufferData (const uint8_t *data, int size)
 
void ack ()
 
void nack ()
 

Protected Attributes

Bitfield< 5 > enabled
 
Bitfield< 4 > twoToOne
 
Bitfield< 2 > leftButton
 
Bitfield< 0 > rightButton
 
uint8_t resolution
 
uint8_t sampleRate
 
- Protected Attributes inherited from X86ISA::PS2Device
std::deque< uint8_t > outBuffer
 
uint16_t lastCommand
 

Static Protected Attributes

static const uint8_t ID [] = {0x00}
 
- Static Protected Attributes inherited from X86ISA::PS2Device
static const uint16_t NoCommand = (uint16_t)(-1)
 

Detailed Description

Definition at line 82 of file i8042.hh.

Member Enumeration Documentation

enum X86ISA::PS2Mouse::Command
protected
Enumerator
Scale1to1 
Scale2to1 
SetResolution 
GetStatus 
ReadData 
ResetWrapMode 
WrapMode 
RemoteMode 
ReadID 
SampleRate 
EnableReporting 
DisableReporting 
DefaultsAndDisable 
Resend 
Reset 

Definition at line 87 of file i8042.hh.

Constructor & Destructor Documentation

X86ISA::PS2Mouse::PS2Mouse ( )
inline

Definition at line 118 of file i8042.hh.

Member Function Documentation

X86ISA::PS2Mouse::BitUnion8 ( Status  )
protected
X86ISA::PS2Mouse::EndBitUnion ( Status  )
protected
bool X86ISA::PS2Mouse::processData ( uint8_t  data)
overridevirtual

Implements X86ISA::PS2Device.

Definition at line 234 of file i8042.cc.

References BatSuccessful, data, DPRINTF, panic, Ps2::SetResolution, ArmISA::status, and warn.

void X86ISA::PS2Mouse::serialize ( const std::string &  base,
CheckpointOut cp 
) const
overridevirtual

Reimplemented from X86ISA::PS2Device.

Definition at line 525 of file i8042.cc.

References paramOut(), X86ISA::PS2Device::serialize(), and ArmISA::status.

void X86ISA::PS2Mouse::unserialize ( const std::string &  base,
CheckpointIn cp 
)
overridevirtual

Reimplemented from X86ISA::PS2Device.

Definition at line 535 of file i8042.cc.

References paramIn(), ArmISA::status, and X86ISA::PS2Device::unserialize().

Member Data Documentation

Bitfield<5> X86ISA::PS2Mouse::enabled
protected

Definition at line 108 of file i8042.hh.

const uint8_t X86ISA::PS2Mouse::ID = {0x00}
staticprotected

Definition at line 85 of file i8042.hh.

Bitfield<2> X86ISA::PS2Mouse::leftButton
protected

Definition at line 110 of file i8042.hh.

uint8_t X86ISA::PS2Mouse::resolution
protected

Definition at line 115 of file i8042.hh.

Bitfield<0> X86ISA::PS2Mouse::rightButton
protected

Definition at line 111 of file i8042.hh.

uint8_t X86ISA::PS2Mouse::sampleRate
protected

Definition at line 116 of file i8042.hh.

Bitfield<4> X86ISA::PS2Mouse::twoToOne
protected

Definition at line 109 of file i8042.hh.


The documentation for this class was generated from the following files:

Generated on Fri Jun 9 2017 13:04:42 for gem5 by doxygen 1.8.6