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

#include <i8042.hh>

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

Public Member Functions

virtual ~PS2Device ()
 
 PS2Device ()
 
virtual void serialize (const std::string &base, CheckpointOut &cp) const
 
virtual void unserialize (const std::string &base, CheckpointIn &cp)
 
bool hasData ()
 
uint8_t getData ()
 
virtual bool processData (uint8_t data)=0
 

Protected Member Functions

void bufferData (const uint8_t *data, int size)
 
void ack ()
 
void nack ()
 

Protected Attributes

std::deque< uint8_t > outBuffer
 
uint16_t lastCommand
 

Static Protected Attributes

static const uint16_t NoCommand = (uint16_t)(-1)
 

Detailed Description

Definition at line 45 of file i8042.hh.

Constructor & Destructor Documentation

virtual X86ISA::PS2Device::~PS2Device ( )
inlinevirtual

Definition at line 58 of file i8042.hh.

X86ISA::PS2Device::PS2Device ( )
inline

Definition at line 61 of file i8042.hh.

Member Function Documentation

void X86ISA::PS2Device::ack ( )
protected

Definition at line 119 of file i8042.cc.

References CommandAck.

void X86ISA::PS2Device::bufferData ( const uint8_t *  data,
int  size 
)
protected

Definition at line 131 of file i8042.cc.

uint8_t X86ISA::PS2Device::getData ( )
inline

Definition at line 72 of file i8042.hh.

References data, and outBuffer.

bool X86ISA::PS2Device::hasData ( )
inline

Definition at line 67 of file i8042.hh.

References outBuffer.

void X86ISA::PS2Device::nack ( )
protected

Definition at line 125 of file i8042.cc.

References CommandNack.

virtual bool X86ISA::PS2Device::processData ( uint8_t  data)
pure virtual

Implemented in X86ISA::PS2Keyboard, and X86ISA::PS2Mouse.

void X86ISA::PS2Device::serialize ( const std::string &  base,
CheckpointOut cp 
) const
virtual

Reimplemented in X86ISA::PS2Mouse.

Definition at line 96 of file i8042.cc.

References arrayParamOut(), and paramOut().

Referenced by X86ISA::PS2Mouse::serialize().

void X86ISA::PS2Device::unserialize ( const std::string &  base,
CheckpointIn cp 
)
virtual

Reimplemented in X86ISA::PS2Mouse.

Definition at line 106 of file i8042.cc.

References arrayParamIn(), X86ISA::c, and paramIn().

Referenced by X86ISA::PS2Mouse::unserialize().

Member Data Documentation

uint16_t X86ISA::PS2Device::lastCommand
protected

Definition at line 52 of file i8042.hh.

const uint16_t X86ISA::PS2Device::NoCommand = (uint16_t)(-1)
staticprotected

Definition at line 50 of file i8042.hh.

std::deque<uint8_t> X86ISA::PS2Device::outBuffer
protected

Definition at line 48 of file i8042.hh.

Referenced by getData(), and hasData().


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