Go to the documentation of this file.
41 #ifndef __DEV_PS2_DEVICE_HH__
42 #define __DEV_PS2_DEVICE_HH__
55 struct PS2DeviceParams;
63 Device(
const PS2DeviceParams &
p);
121 void send(
const uint8_t *
data,
size_t size);
159 #endif // __DEV_PS2_HOUSE_HH__
void send(const uint8_t *data, size_t size)
Send data from a PS/2 device to a host.
virtual bool recv(const std::vector< uint8_t > &data)=0
Data received from host.
void send(const std::vector< uint8_t > &data)
size_t sendPending() const
Output buffer size.
void hostWrite(uint8_t c)
Transmit a character from the host interface to the device.
bool hostDataAvailable() const
Check if there is pending data from the PS/2 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.
std::ostream CheckpointOut
std::vector< uint8_t > inBuffer
Host -> device buffer.
void sendAck()
Send an ACK byte to the host.
GEM5_DEPRECATED_CLASS(PS2Device, gem5::ps2::Device)
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 send(uint8_t data)
Send a byte of data from a PS/2 device to a host.
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