i8042.hh (11168:f98eb2da15a4) i8042.hh (11175:2324ed5fa9f4)
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;

--- 104 unchanged lines hidden (view full) ---

113
114 Status status;
115 uint8_t resolution;
116 uint8_t sampleRate;
117 public:
118 PS2Mouse() : PS2Device(), status(0), resolution(4), sampleRate(100)
119 {}
120
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;

--- 104 unchanged lines hidden (view full) ---

113
114 Status status;
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);
121 bool processData(uint8_t data) override;
122
123 void serialize(const std::string &base, CheckpointOut &cp) const override;
124 void unserialize(const std::string &base, CheckpointIn &cp) override;
125};
126
127class PS2Keyboard : public PS2Device
128{
129 protected:

--- 16 unchanged lines hidden (view full) ---

146 KeyToTypematic = 0xFB,
147 KeyToMakeRelease = 0xFC,
148 KeyToMakeOnly = 0xFD,
149 Resend = 0xFE,
150 Reset = 0xFF
151 };
152
153 public:
122
123 void serialize(const std::string &base, CheckpointOut &cp) const override;
124 void unserialize(const std::string &base, CheckpointIn &cp) override;
125};
126
127class PS2Keyboard : public PS2Device
128{
129 protected:

--- 16 unchanged lines hidden (view full) ---

146 KeyToTypematic = 0xFB,
147 KeyToMakeRelease = 0xFC,
148 KeyToMakeOnly = 0xFD,
149 Resend = 0xFE,
150 Reset = 0xFF
151 };
152
153 public:
154 bool processData(uint8_t data);
154 bool processData(uint8_t data) override;
155};
156
157class I8042 : public BasicPioDevice
158{
159 protected:
160 enum Command
161 {
162 GetCommandByte = 0x20,

--- 73 unchanged lines hidden (view full) ---

236 const Params *
237 params() const
238 {
239 return dynamic_cast<const Params *>(_params);
240 }
241
242 I8042(Params *p);
243
155};
156
157class I8042 : public BasicPioDevice
158{
159 protected:
160 enum Command
161 {
162 GetCommandByte = 0x20,

--- 73 unchanged lines hidden (view full) ---

236 const Params *
237 params() const
238 {
239 return dynamic_cast<const Params *>(_params);
240 }
241
242 I8042(Params *p);
243
244 AddrRangeList getAddrRanges() const;
244 AddrRangeList getAddrRanges() const override;
245
245
246 Tick read(PacketPtr pkt);
246 Tick read(PacketPtr pkt) override;
247
247
248 Tick write(PacketPtr pkt);
248 Tick write(PacketPtr pkt) override;
249
250 void serialize(CheckpointOut &cp) const override;
251 void unserialize(CheckpointIn &cp) override;
252};
253
254} // namespace X86ISA
255
256#endif //__DEV_X86_I8042_HH__
249
250 void serialize(CheckpointOut &cp) const override;
251 void unserialize(CheckpointIn &cp) override;
252};
253
254} // namespace X86ISA
255
256#endif //__DEV_X86_I8042_HH__