Go to the documentation of this file.
39 #ifndef __DEV_VIRTIO_RNG_HH__
40 #define __DEV_VIRTIO_RNG_HH__
50 struct VirtIORngParams;
80 uint16_t size,
const std::string &rng_file_path,
98 std::uniform_int_distribution<int>
dist;
106 #endif // __DEV_VIRTIO_RNG_HH__
void trySend()
Try to send data pending data from the terminal.
void onNotify()
Notify queue of pending events.
void readConfig(PacketPtr pkt, Addr cfgOffset)
Read from the configuration space of a device.
RngQueue(PortProxy &proxy, ByteOrder bo, uint16_t size, const std::string &rng_file_path, VirtIORng &_parent)
uint16_t DeviceId
Device Type (sometimes known as subsystem ID)
Virtqueue for data going from the host to the guest.
Base wrapper around a virtqueue.
virtual std::string name() const
const Params & params() const
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
This object is a proxy for a port or other object which implements the functional response protocol,...
std::random_device rd_device
Base class for all VirtIO-based devices.
static const DeviceId ID_RNG
VirtIO device ID.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
VirtIORng(const Params ¶ms)
RngQueue qReq
Receive queue for port 0.
std::uniform_int_distribution< int > dist
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Tue Feb 8 2022 11:47:08 for gem5 by doxygen 1.8.17