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

#include <i8042.hh>

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

Public Member Functions

bool processData (uint8_t data) override
 
- Public Member Functions inherited from X86ISA::PS2Device
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 ()
 

Protected Types

enum  Command {
  LEDWrite = 0xED, DiagnosticEcho = 0xEE, AlternateScanCodes = 0xF0, ReadID = 0xF2,
  TypematicInfo = 0xF3, Enable = 0xF4, Disable = 0xF5, DefaultsAndDisable = 0xF6,
  AllKeysToTypematic = 0xF7, AllKeysToMakeRelease = 0xF8, AllKeysToMake = 0xF9, AllKeysToTypematicMakeRelease = 0xFA,
  KeyToTypematic = 0xFB, KeyToMakeRelease = 0xFC, KeyToMakeOnly = 0xFD, Resend = 0xFE,
  Reset = 0xFF
}
 

Static Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from X86ISA::PS2Device
void bufferData (const uint8_t *data, int size)
 
void ack ()
 
void nack ()
 
- Protected Attributes inherited from X86ISA::PS2Device
std::deque< uint8_t > outBuffer
 
uint16_t lastCommand
 

Detailed Description

Definition at line 127 of file i8042.hh.

Member Enumeration Documentation

Enumerator
LEDWrite 
DiagnosticEcho 
AlternateScanCodes 
ReadID 
TypematicInfo 
Enable 
Disable 
DefaultsAndDisable 
AllKeysToTypematic 
AllKeysToMakeRelease 
AllKeysToMake 
AllKeysToTypematicMakeRelease 
KeyToTypematic 
KeyToMakeRelease 
KeyToMakeOnly 
Resend 
Reset 

Definition at line 132 of file i8042.hh.

Member Function Documentation

bool X86ISA::PS2Keyboard::processData ( uint8_t  data)
overridevirtual

Implements X86ISA::PS2Device.

Definition at line 155 of file i8042.cc.

References bits(), Ps2::Disable, DPRINTF, Ps2::Enable, and panic.

Member Data Documentation

const uint8_t X86ISA::PS2Keyboard::ID = {0xab, 0x83}
staticprotected

Definition at line 130 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