From 62e05ed78a0f24982e4066adb45dc220c9e200ea Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Sun, 6 Feb 2011 22:14:18 -0800 Subject: x86: Add checkpointing capability to devices Add checkpointing capability to the Intel 8254 timer, CMOS, I8042, PS2 Keyboard and Mouse, I82094AA, I8237, I8254, I8259, and speaker devices --- src/dev/x86/i8042.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/dev/x86/i8042.hh') diff --git a/src/dev/x86/i8042.hh b/src/dev/x86/i8042.hh index 7aa59e9a7..b14d254ca 100644 --- a/src/dev/x86/i8042.hh +++ b/src/dev/x86/i8042.hh @@ -116,6 +116,10 @@ class PS2Mouse : public PS2Device {} bool processData(uint8_t data); + + void serialize(const std::string &base, std::ostream &os); + void unserialize(const std::string &base, Checkpoint *cp, + const std::string §ion); }; class PS2Keyboard : public PS2Device @@ -146,6 +150,10 @@ class PS2Keyboard : public PS2Device public: bool processData(uint8_t data); + + void serialize(const std::string &base, std::ostream &os); + void unserialize(const std::string &base, Checkpoint *cp, + const std::string §ion); }; class I8042 : public BasicPioDevice @@ -252,6 +260,9 @@ class I8042 : public BasicPioDevice Tick read(PacketPtr pkt); Tick write(PacketPtr pkt); + + virtual void serialize(std::ostream &os); + virtual void unserialize(Checkpoint *cp, const std::string §ion); }; } // namespace X86ISA -- cgit v1.2.3