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

#include <cmos.hh>

Inheritance diagram for X86ISA::Cmos::X86RTC:
MC146818 EventManager

Public Member Functions

 X86RTC (EventManager *em, const std::string &n, const struct tm time, bool bcd, Tick frequency, IntSourcePin *_intPin)
 
- Public Member Functions inherited from MC146818
 MC146818 (EventManager *em, const std::string &name, const struct tm time, bool bcd, Tick frequency)
 
virtual ~MC146818 ()
 
virtual void startup ()
 Start ticking. More...
 
void writeData (const uint8_t addr, const uint8_t data)
 RTC write data. More...
 
uint8_t readData (const uint8_t addr)
 RTC read data. More...
 
void tickClock ()
 
void serialize (const std::string &base, CheckpointOut &cp) const
 Serialize this object to the given output stream. More...
 
void unserialize (const std::string &base, CheckpointIn &cp)
 Reconstruct the state of this object from a checkpoint. More...
 
- Public Member Functions inherited from EventManager
 EventManager (EventManager &em)
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick)-1)
 
void setCurTick (Tick newVal)
 

Protected Member Functions

void handleEvent ()
 

Protected Attributes

IntSourcePinintPin
 
- Protected Attributes inherited from EventManager
EventQueueeventq
 A pointer to this object's event queue. More...
 

Detailed Description

Definition at line 57 of file cmos.hh.

Constructor & Destructor Documentation

X86ISA::Cmos::X86RTC::X86RTC ( EventManager em,
const std::string &  n,
const struct tm  time,
bool  bcd,
Tick  frequency,
IntSourcePin _intPin 
)
inline

Definition at line 62 of file cmos.hh.

Member Function Documentation

void X86ISA::Cmos::X86RTC::handleEvent ( )
protectedvirtual

Reimplemented from MC146818.

Definition at line 38 of file cmos.cc.

References intPin, X86ISA::IntSourcePin::lower(), and X86ISA::IntSourcePin::raise().

Member Data Documentation

IntSourcePin* X86ISA::Cmos::X86RTC::intPin
protected

Definition at line 60 of file cmos.hh.

Referenced by handleEvent().


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