base.cc (11793:ef606668d247) base.cc (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

--- 25 unchanged lines hidden (view full) ---

36 *
37 * Authors: Andreas Sandberg
38 */
39
40#include "dev/virtio/base.hh"
41
42#include "debug/VIO.hh"
43#include "params/VirtIODeviceBase.hh"
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

--- 25 unchanged lines hidden (view full) ---

36 *
37 * Authors: Andreas Sandberg
38 */
39
40#include "dev/virtio/base.hh"
41
42#include "debug/VIO.hh"
43#include "params/VirtIODeviceBase.hh"
44#include "params/VirtIODummyDevice.hh"
44
45VirtDescriptor::VirtDescriptor(PortProxy &_memProxy, VirtQueue &_queue,
46 Index descIndex)
47 : memProxy(&_memProxy), queue(&_queue), _index(descIndex),
48 desc{0, 0, 0, 0}
49{
50}
51

--- 420 unchanged lines hidden (view full) ---

472 return address >> VirtQueue::ALIGN_BITS;
473}
474
475void
476VirtIODeviceBase::registerQueue(VirtQueue &queue)
477{
478 _queues.push_back(&queue);
479}
45
46VirtDescriptor::VirtDescriptor(PortProxy &_memProxy, VirtQueue &_queue,
47 Index descIndex)
48 : memProxy(&_memProxy), queue(&_queue), _index(descIndex),
49 desc{0, 0, 0, 0}
50{
51}
52

--- 420 unchanged lines hidden (view full) ---

473 return address >> VirtQueue::ALIGN_BITS;
474}
475
476void
477VirtIODeviceBase::registerQueue(VirtQueue &queue)
478{
479 _queues.push_back(&queue);
480}
481
482
483VirtIODummyDevice::VirtIODummyDevice(VirtIODummyDeviceParams *params)
484 : VirtIODeviceBase(params, ID_INVALID, 0, 0)
485{
486}
487
488VirtIODummyDevice *
489VirtIODummyDeviceParams::create()
490{
491 return new VirtIODummyDevice(this);
492}