i8042.hh (9808:13ffc0066b76) | i8042.hh (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 103 unchanged lines hidden (view full) --- 112 uint8_t resolution; 113 uint8_t sampleRate; 114 public: 115 PS2Mouse() : PS2Device(), status(0), resolution(4), sampleRate(100) 116 {} 117 118 bool processData(uint8_t data); 119 | 1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 103 unchanged lines hidden (view full) --- 112 uint8_t resolution; 113 uint8_t sampleRate; 114 public: 115 PS2Mouse() : PS2Device(), status(0), resolution(4), sampleRate(100) 116 {} 117 118 bool processData(uint8_t data); 119 |
120 void serialize(const std::string &base, std::ostream &os); 121 void unserialize(const std::string &base, Checkpoint *cp, 122 const std::string §ion); | 120 void serialize(const std::string &base, CheckpointOut &cp); 121 void unserialize(const std::string &base, CheckpointIn &cp); |
123}; 124 125class PS2Keyboard : public PS2Device 126{ 127 protected: 128 static const uint8_t ID[]; 129 130 enum Command --- 15 unchanged lines hidden (view full) --- 146 KeyToMakeOnly = 0xFD, 147 Resend = 0xFE, 148 Reset = 0xFF 149 }; 150 151 public: 152 bool processData(uint8_t data); 153 | 122}; 123 124class PS2Keyboard : public PS2Device 125{ 126 protected: 127 static const uint8_t ID[]; 128 129 enum Command --- 15 unchanged lines hidden (view full) --- 145 KeyToMakeOnly = 0xFD, 146 Resend = 0xFE, 147 Reset = 0xFF 148 }; 149 150 public: 151 bool processData(uint8_t data); 152 |
154 void serialize(const std::string &base, std::ostream &os); 155 void unserialize(const std::string &base, Checkpoint *cp, 156 const std::string §ion); | 153 void serialize(const std::string &base, CheckpointOut &cp); 154 void unserialize(const std::string &base, CheckpointIn &cp); |
157}; 158 159class I8042 : public BasicPioDevice 160{ 161 protected: 162 enum Command 163 { 164 GetCommandByte = 0x20, --- 79 unchanged lines hidden (view full) --- 244 I8042(Params *p); 245 246 AddrRangeList getAddrRanges() const; 247 248 Tick read(PacketPtr pkt); 249 250 Tick write(PacketPtr pkt); 251 | 155}; 156 157class I8042 : public BasicPioDevice 158{ 159 protected: 160 enum Command 161 { 162 GetCommandByte = 0x20, --- 79 unchanged lines hidden (view full) --- 242 I8042(Params *p); 243 244 AddrRangeList getAddrRanges() const; 245 246 Tick read(PacketPtr pkt); 247 248 Tick write(PacketPtr pkt); 249 |
252 virtual void serialize(std::ostream &os); 253 virtual void unserialize(Checkpoint *cp, const std::string §ion); | 250 void serializeOld(CheckpointOut &cp) M5_ATTR_OVERRIDE; 251 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; |
254}; 255 256} // namespace X86ISA 257 258#endif //__DEV_X86_I8042_HH__ | 252}; 253 254} // namespace X86ISA 255 256#endif //__DEV_X86_I8042_HH__ |