i8042.hh (11007:179bc8ca2d8c) | i8042.hh (11168:f98eb2da15a4) |
---|---|
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; --- 106 unchanged lines hidden (view full) --- 115 uint8_t resolution; 116 uint8_t sampleRate; 117 public: 118 PS2Mouse() : PS2Device(), status(0), resolution(4), sampleRate(100) 119 {} 120 121 bool processData(uint8_t data); 122 | 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; --- 106 unchanged lines hidden (view full) --- 115 uint8_t resolution; 116 uint8_t sampleRate; 117 public: 118 PS2Mouse() : PS2Device(), status(0), resolution(4), sampleRate(100) 119 {} 120 121 bool processData(uint8_t data); 122 |
123 void serialize(const std::string &base, 124 CheckpointOut &cp) const M5_ATTR_OVERRIDE; 125 void unserialize(const std::string &base, 126 CheckpointIn &cp) M5_ATTR_OVERRIDE; | 123 void serialize(const std::string &base, CheckpointOut &cp) const override; 124 void unserialize(const std::string &base, CheckpointIn &cp) override; |
127}; 128 129class PS2Keyboard : public PS2Device 130{ 131 protected: 132 static const uint8_t ID[]; 133 134 enum Command --- 109 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 | 125}; 126 127class PS2Keyboard : public PS2Device 128{ 129 protected: 130 static const uint8_t ID[]; 131 132 enum Command --- 109 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 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; 253 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; | 250 void serialize(CheckpointOut &cp) const override; 251 void unserialize(CheckpointIn &cp) 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__ |