smmu_v3_cmdexec.hh revision 14039:4991b2a345a1
17405SAli.Saidi@ARM.com/* 210844Sandreas.sandberg@arm.com * Copyright (c) 2013, 2018-2019 ARM Limited 37405SAli.Saidi@ARM.com * All rights reserved 47405SAli.Saidi@ARM.com * 57405SAli.Saidi@ARM.com * The license below extends only to copyright in the software and shall 67405SAli.Saidi@ARM.com * not be construed as granting a license to any other intellectual 77405SAli.Saidi@ARM.com * property including but not limited to intellectual property relating 87405SAli.Saidi@ARM.com * to a hardware implementation of the functionality of the software 97405SAli.Saidi@ARM.com * licensed hereunder. You may use the software subject to the license 107405SAli.Saidi@ARM.com * terms below provided that you ensure that this notice is replicated 117405SAli.Saidi@ARM.com * unmodified and in its entirety in all distributions of the software, 127405SAli.Saidi@ARM.com * modified or unmodified, in source code or in binary form. 137405SAli.Saidi@ARM.com * 147405SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without 157405SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are 167405SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright 177405SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer; 187405SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright 197405SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the 207405SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution; 217405SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its 227405SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from 237405SAli.Saidi@ARM.com * this software without specific prior written permission. 247405SAli.Saidi@ARM.com * 257405SAli.Saidi@ARM.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 267405SAli.Saidi@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 277405SAli.Saidi@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 287405SAli.Saidi@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 297405SAli.Saidi@ARM.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 307405SAli.Saidi@ARM.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 317405SAli.Saidi@ARM.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 327405SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 337405SAli.Saidi@ARM.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 347405SAli.Saidi@ARM.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 357405SAli.Saidi@ARM.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 367405SAli.Saidi@ARM.com * 377405SAli.Saidi@ARM.com * Authors: Stan Czerniawski 387405SAli.Saidi@ARM.com */ 397405SAli.Saidi@ARM.com 407405SAli.Saidi@ARM.com#ifndef __DEV_ARM_SMMU_V3_CMDEXEC_HH__ 417405SAli.Saidi@ARM.com#define __DEV_ARM_SMMU_V3_CMDEXEC_HH__ 4210461SAndreas.Sandberg@ARM.com 439050Schander.sudanthi@arm.com#include "dev/arm/smmu_v3_defs.hh" 448887Sgeoffrey.blake@arm.com#include "dev/arm/smmu_v3_proc.hh" 4510461SAndreas.Sandberg@ARM.com 468232Snate@binkert.orgclass SMMUv3; 478232Snate@binkert.org 4810844Sandreas.sandberg@arm.comclass SMMUCommandExecProcess : public SMMUProcess 499384SAndreas.Sandberg@arm.com{ 507678Sgblack@eecs.umich.edu private: 518059SAli.Saidi@ARM.com SMMUCommand cmd; 528284SAli.Saidi@ARM.com 537405SAli.Saidi@ARM.com bool busy; 547405SAli.Saidi@ARM.com 557405SAli.Saidi@ARM.com virtual void main(Yield &yield); 567405SAli.Saidi@ARM.com 5710037SARM gem5 Developers public: 5810037SARM gem5 Developers SMMUCommandExecProcess(const std::string &name, SMMUv3 &_smmu) : 5910037SARM gem5 Developers SMMUProcess(name, _smmu), 6010037SARM gem5 Developers busy(false) 6110037SARM gem5 Developers { 6210037SARM gem5 Developers reinit(); 6310037SARM gem5 Developers } 6410037SARM gem5 Developers 6510037SARM gem5 Developers virtual ~SMMUCommandExecProcess() {} 6610037SARM gem5 Developers 6710037SARM gem5 Developers bool isBusy() const { return busy; } 6810037SARM gem5 Developers}; 6910037SARM gem5 Developers 7010037SARM gem5 Developers#endif /* __DEV_ARM_SMMU_V3_CMDEXEC_HH__ */ 7110037SARM gem5 Developers