Go to the documentation of this file.
47 #include "debug/PS2.hh"
49 #include "params/PS2Device.hh"
89 "A data pending callback has already been associated with this "
106 DPRINTF(PS2,
"PS2: Host -> device: %#x\n",
c);
115 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 hostWrite(uint8_t c)
Transmit a character from the host interface to the device.
std::function< void()> dataAvailableCallback
Device(const PS2DeviceParams &p)
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Abstract superclass for simulation objects.
decltype(std::begin(std::declval< const T & >()), std::end(std::declval< const T & >()), void()) arrayParamOut(CheckpointOut &os, const std::string &name, const T ¶m)
#define SERIALIZE_CONTAINER(member)
std::ostream CheckpointOut
std::vector< uint8_t > inBuffer
Host -> device buffer.
void arrayParamIn(CheckpointIn &cp, const std::string &name, CircleBuf< T > ¶m)
void sendAck()
Send an ACK byte to the host.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::deque< uint8_t > outBuffer
Device -> host FIFO.
uint8_t hostRead()
Read a character from the device.
void hostRegDataAvailable(const std::function< void()> &c)
Register a data available callback into the PS/2 interface.
Generated on Sun Jul 30 2023 01:56:52 for gem5 by doxygen 1.8.17