Go to the documentation of this file.
45 #include "debug/PS2.hh"
47 #include "params/PS2Device.hh"
80 "A data pending callback has already been associated with this "
97 DPRINTF(PS2,
"PS2: Host -> device: %#x\n",
c);
106 assert(
data || size == 0);
void send(const uint8_t *data, size_t size)
Send data from a PS/2 device to a host.
#define UNSERIALIZE_CONTAINER(member)
virtual bool recv(const std::vector< uint8_t > &data)=0
Data received from host.
void hostRegDataAvailable(const std::function< void()> &c)
Register a data available callback into the PS/2 interface.
uint8_t hostRead()
Read a character from the device.
void sendAck()
Send an ACK byte to the host.
std::vector< uint8_t > inBuffer
Host -> device buffer.
std::deque< uint8_t > outBuffer
Device -> host FIFO.
PS2Device(const PS2DeviceParams *p)
void arrayParamOut(CheckpointOut &cp, const std::string &name, const CircleBuf< T > ¶m)
void hostWrite(uint8_t c)
Transmit a character from the host interface to the device.
std::function< void()> dataAvailableCallback
void serialize(CheckpointOut &cp) const override
Serialize an object.
#define SERIALIZE_CONTAINER(member)
std::ostream CheckpointOut
void arrayParamIn(CheckpointIn &cp, const std::string &name, CircleBuf< T > ¶m)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:08 for gem5 by doxygen 1.8.17