vio_mmio.cc (12740:beed0805c651) | vio_mmio.cc (12974:b840a646cfbd) |
---|---|
1/* 2 * Copyright (c) 2016-2018 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 --- 34 unchanged lines hidden (view full) --- 43#include "dev/arm/base_gic.hh" 44#include "mem/packet_access.hh" 45#include "params/MmioVirtIO.hh" 46 47MmioVirtIO::MmioVirtIO(const MmioVirtIOParams *params) 48 : BasicPioDevice(params, params->pio_size), 49 hostFeaturesSelect(0), guestFeaturesSelect(0), pageSize(0), 50 interruptStatus(0), | 1/* 2 * Copyright (c) 2016-2018 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 --- 34 unchanged lines hidden (view full) --- 43#include "dev/arm/base_gic.hh" 44#include "mem/packet_access.hh" 45#include "params/MmioVirtIO.hh" 46 47MmioVirtIO::MmioVirtIO(const MmioVirtIOParams *params) 48 : BasicPioDevice(params, params->pio_size), 49 hostFeaturesSelect(0), guestFeaturesSelect(0), pageSize(0), 50 interruptStatus(0), |
51 callbackKick(this), vio(*params->vio), interrupt(params->interrupt) | 51 callbackKick(this), vio(*params->vio), 52 interrupt(params->interrupt->get()) |
52{ 53 fatal_if(!interrupt, "No MMIO VirtIO interrupt specified\n"); 54 55 vio.registerKickCallback(&callbackKick); 56} 57 58MmioVirtIO::~MmioVirtIO() 59{ --- 225 unchanged lines hidden --- | 53{ 54 fatal_if(!interrupt, "No MMIO VirtIO interrupt specified\n"); 55 56 vio.registerKickCallback(&callbackKick); 57} 58 59MmioVirtIO::~MmioVirtIO() 60{ --- 225 unchanged lines hidden --- |