39#ifndef __DEV_VIRTIO_RNG_HH__
40#define __DEV_VIRTIO_RNG_HH__
48struct VirtIORngParams;
virtual std::string name() 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,...
Base class for all VirtIO-based devices.
uint16_t DeviceId
Device Type (sometimes known as subsystem ID)
Virtqueue for data going from the host to the guest.
void onNotify()
Notify queue of pending events.
RngQueue(PortProxy &proxy, ByteOrder bo, uint16_t size, VirtIORng &_parent)
void trySend()
Try to send data pending data from the terminal.
RngQueue qReq
Receive queue for port 0.
VirtIORng(const Params ¶ms)
void readConfig(PacketPtr pkt, Addr cfgOffset)
Read from the configuration space of a device.
static const DeviceId ID_RNG
VirtIO device ID.
Base wrapper around a virtqueue.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.