13630SN/A/* 27090SN/A * Copyright (c) 2009 ARM Limited 37090SN/A * All rights reserved 47090SN/A * 57090SN/A * The license below extends only to copyright in the software and shall 67090SN/A * not be construed as granting a license to any other intellectual 77090SN/A * property including but not limited to intellectual property relating 87090SN/A * to a hardware implementation of the functionality of the software 97090SN/A * licensed hereunder. You may use the software subject to the license 107090SN/A * terms below provided that you ensure that this notice is replicated 117090SN/A * unmodified and in its entirety in all distributions of the software, 127090SN/A * modified or unmodified, in source code or in binary form. 137090SN/A * 143630SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 153630SN/A * All rights reserved. 163630SN/A * 173630SN/A * Redistribution and use in source and binary forms, with or without 183630SN/A * modification, are permitted provided that the following conditions are 193630SN/A * met: redistributions of source code must retain the above copyright 203630SN/A * notice, this list of conditions and the following disclaimer; 213630SN/A * redistributions in binary form must reproduce the above copyright 223630SN/A * notice, this list of conditions and the following disclaimer in the 233630SN/A * documentation and/or other materials provided with the distribution; 243630SN/A * neither the name of the copyright holders nor the names of its 253630SN/A * contributors may be used to endorse or promote products derived from 263630SN/A * this software without specific prior written permission. 273630SN/A * 283630SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 293630SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 303630SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 313630SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 323630SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 333630SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 343630SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 353630SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 363630SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 373630SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 383630SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 393630SN/A * 403630SN/A * Authors: Ali Saidi 413630SN/A */ 423630SN/A 433630SN/A/** 443630SN/A * @file 457584SAli.Saidi@arm.com * Declaration of top level class for the RealView platform chips. This class just 463630SN/A * retains pointers to all its children so the children can communicate. 473630SN/A */ 483630SN/A 497584SAli.Saidi@arm.com#ifndef __DEV_ARM_RealView_HH__ 507584SAli.Saidi@arm.com#define __DEV_ARM_RealView_HH__ 513630SN/A 523630SN/A#include "dev/platform.hh" 537584SAli.Saidi@arm.com#include "params/RealView.hh" 543630SN/A 559525SAndreas.Sandberg@ARM.comclass BaseGic; 563630SN/Aclass IdeController; 573630SN/Aclass System; 583630SN/A 597584SAli.Saidi@arm.comclass RealView : public Platform 603630SN/A{ 613630SN/A public: 623630SN/A /** Pointer to the system */ 633630SN/A System *system; 643630SN/A 659525SAndreas.Sandberg@ARM.com BaseGic *gic; 668525SAli.Saidi@ARM.com 673630SN/A public: 687584SAli.Saidi@arm.com typedef RealViewParams Params; 698525SAli.Saidi@ARM.com const Params * 708525SAli.Saidi@ARM.com params() const { 718525SAli.Saidi@ARM.com return dynamic_cast<const Params *>(_params); 728525SAli.Saidi@ARM.com } 738525SAli.Saidi@ARM.com 743630SN/A /** 753630SN/A * Constructor for the Tsunami Class. 763630SN/A * @param name name of the object 773630SN/A * @param s system the object belongs to 783630SN/A * @param intctrl pointer to the interrupt controller 793630SN/A */ 807584SAli.Saidi@arm.com RealView(const Params *p); 813630SN/A 828525SAli.Saidi@ARM.com /** Give platform a pointer to interrupt controller */ 839525SAndreas.Sandberg@ARM.com void setGic(BaseGic *_gic) { gic = _gic; } 848525SAli.Saidi@ARM.com 8511244Sandreas.sandberg@arm.com public: // Public Platform interfaces 8611244Sandreas.sandberg@arm.com void postConsoleInt() override; 8711244Sandreas.sandberg@arm.com void clearConsoleInt() override; 883630SN/A 8911244Sandreas.sandberg@arm.com void postPciInt(int line) override; 9011244Sandreas.sandberg@arm.com void clearPciInt(int line) override; 913630SN/A}; 923630SN/A 937584SAli.Saidi@arm.com#endif // __DEV_ARM_RealView_HH__ 94