31 #ifndef __DEV_X86_I8042_HH__
32 #define __DEV_X86_I8042_HH__
38 #include "params/I8042.hh"
85 static const uint8_t
ID[];
130 static const uint8_t
ID[];
193 Bitfield<7> parityError;
204 Bitfield<6> convertScanCodes;
207 Bitfield<2> passedSelfTest;
230 void writeData(uint8_t newData,
bool mouse = false);
239 return dynamic_cast<const Params *
>(
_params);
256 #endif //__DEV_X86_I8042_HH__
IntSourcePin * keyboardIntPin
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
bool processData(uint8_t data) override
AddrRangeList getAddrRanges() const override
Determine the address ranges that this device responds to.
EndBitUnion(StatusReg) BitUnion8(CommandByte) Bitfield< 6 > convertScanCodes
BitUnion8(Status) Bitfield< 6 > remote
Bitfield< 0 > keyboardFullInt
void serialize(const std::string &base, CheckpointOut &cp) const override
Bitfield< 4 > disableKeyboard
static const uint16_t NoCommand
Bitfield< 5 > disableMouse
void bufferData(const uint8_t *data, int size)
std::deque< uint8_t > outBuffer
uint64_t Tick
Tick count type.
virtual bool processData(uint8_t data)=0
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
BitUnion8(StatusReg) Bitfield< 7 > parityError
const Params * params() const
void writeData(uint8_t newData, bool mouse=false)
Bitfield< 2 > passedSelfTest
EndBitUnion(Status) Status status
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Bitfield< 0 > rightButton
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
static const uint8_t ID[]
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
Bitfield< 4 > keyboardUnlocked
virtual void serialize(const std::string &base, CheckpointOut &cp) const
Bitfield< 3 > commandLast
virtual void unserialize(const std::string &base, CheckpointIn &cp)
std::ostream CheckpointOut
static const uint16_t NoCommand
void unserialize(const std::string &base, CheckpointIn &cp) override
const SimObjectParams * _params
Cached copy of the object parameters.
Bitfield< 1 > mouseFullInt
IntSourcePin * mouseIntPin
static const uint8_t ID[]
bool processData(uint8_t data) override
Bitfield< 5 > mouseOutputFull