diff options
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r-- | dev/tsunami_io.hh | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh index c8c5fd412..e6a545689 100644 --- a/dev/tsunami_io.hh +++ b/dev/tsunami_io.hh @@ -110,7 +110,20 @@ class TsunamiIO : public PioDevice */ uint8_t Status(); - }; + /** + * Serialize this object to the given output stream. + * @param os The stream to serialize to. + */ + virtual void serialize(std::ostream &os); + + + /** + * Reconstruct the state of this object from a checkpoint. + * @param cp The checkpoint use. + * @param section The section name of this object + */ + virtual void unserialize(Checkpoint *cp, const std::string §ion); + }; /** * Process RTC timer events and generate interrupts appropriately. @@ -136,7 +149,20 @@ class TsunamiIO : public PioDevice */ virtual const char *description(); - }; + /** + * Serialize this object to the given output stream. + * @param os The stream to serialize to. + */ + virtual void serialize(std::ostream &os); + + + /** + * Reconstruct the state of this object from a checkpoint. + * @param cp The checkpoint use. + * @param section The section name of this object + */ + virtual void unserialize(Checkpoint *cp, const std::string §ion); + }; /** uip UpdateInProgess says that the rtc is updating, but we just fake it * by alternating it on every read of the bit since we are going to |