i8042.hh (7811:a8fc35183c10) i8042.hh (7903:7fcfb515d7bf)
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;

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

111 Status status;
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);
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;

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

111 Status status;
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 &section);
119};
120
121class PS2Keyboard : public PS2Device
122{
123 protected:
124 static const uint8_t ID[];
125
126 enum Command

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

141 KeyToMakeRelease = 0xFC,
142 KeyToMakeOnly = 0xFD,
143 Resend = 0xFE,
144 Reset = 0xFF
145 };
146
147 public:
148 bool processData(uint8_t data);
123};
124
125class PS2Keyboard : public PS2Device
126{
127 protected:
128 static const uint8_t ID[];
129
130 enum Command

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

145 KeyToMakeRelease = 0xFC,
146 KeyToMakeOnly = 0xFD,
147 Resend = 0xFE,
148 Reset = 0xFF
149 };
150
151 public:
152 bool processData(uint8_t data);
153
154 void serialize(const std::string &base, std::ostream &os);
155 void unserialize(const std::string &base, Checkpoint *cp,
156 const std::string &section);
149};
150
151class I8042 : public BasicPioDevice
152{
153 protected:
154 enum Command
155 {
156 GetCommandByte = 0x20,

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

247 commandByte.keyboardFullInt = 1;
248 }
249
250 void addressRanges(AddrRangeList &range_list);
251
252 Tick read(PacketPtr pkt);
253
254 Tick write(PacketPtr pkt);
157};
158
159class I8042 : public BasicPioDevice
160{
161 protected:
162 enum Command
163 {
164 GetCommandByte = 0x20,

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

255 commandByte.keyboardFullInt = 1;
256 }
257
258 void addressRanges(AddrRangeList &range_list);
259
260 Tick read(PacketPtr pkt);
261
262 Tick write(PacketPtr pkt);
263
264 virtual void serialize(std::ostream &os);
265 virtual void unserialize(Checkpoint *cp, const std::string &section);
255};
256
257} // namespace X86ISA
258
259#endif //__DEV_X86_I8042_HH__
266};
267
268} // namespace X86ISA
269
270#endif //__DEV_X86_I8042_HH__