base.hh (11168:f98eb2da15a4) | base.hh (11931:d75332c38b45) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2014 ARM Limited | 2 * Copyright (c) 2014, 2016 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 32 unchanged lines hidden (view full) --- 43#include "arch/isa_traits.hh" 44#include "base/bitunion.hh" 45#include "base/callback.hh" 46#include "dev/virtio/virtio_ring.h" 47#include "mem/port_proxy.hh" 48#include "sim/sim_object.hh" 49 50struct VirtIODeviceBaseParams; | 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 32 unchanged lines hidden (view full) --- 43#include "arch/isa_traits.hh" 44#include "base/bitunion.hh" 45#include "base/callback.hh" 46#include "dev/virtio/virtio_ring.h" 47#include "mem/port_proxy.hh" 48#include "sim/sim_object.hh" 49 50struct VirtIODeviceBaseParams; |
51struct VirtIODummyDeviceParams; 52 |
|
51class VirtQueue; 52 53/** @{ 54 * @name VirtIO endian conversion helpers 55 * 56 * VirtIO prior to version 1.0 (legacy versions) normally send values 57 * to the host in the guest systems native byte order. This is going 58 * to change in version 1.0 which mandates little endian. We currently --- 811 unchanged lines hidden (view full) --- 870 871 /** List of virtual queues supported by this device */ 872 std::vector<VirtQueue *> _queues; 873 874 /** Callbacks to kick the guest through the transport layer */ 875 Callback *transKick; 876}; 877 | 53class VirtQueue; 54 55/** @{ 56 * @name VirtIO endian conversion helpers 57 * 58 * VirtIO prior to version 1.0 (legacy versions) normally send values 59 * to the host in the guest systems native byte order. This is going 60 * to change in version 1.0 which mandates little endian. We currently --- 811 unchanged lines hidden (view full) --- 872 873 /** List of virtual queues supported by this device */ 874 std::vector<VirtQueue *> _queues; 875 876 /** Callbacks to kick the guest through the transport layer */ 877 Callback *transKick; 878}; 879 |
880class VirtIODummyDevice : public VirtIODeviceBase 881{ 882 public: 883 VirtIODummyDevice(VirtIODummyDeviceParams *params); 884 885 protected: 886 /** VirtIO device ID */ 887 static const DeviceId ID_INVALID = 0x00; 888}; 889 |
|
878#endif // __DEV_VIRTIO_BASE_HH__ | 890#endif // __DEV_VIRTIO_BASE_HH__ |