18282SAli.Saidi@ARM.com/* 28282SAli.Saidi@ARM.com * Copyright (c) 2010 ARM Limited 38282SAli.Saidi@ARM.com * All rights reserved 48282SAli.Saidi@ARM.com * 58282SAli.Saidi@ARM.com * The license below extends only to copyright in the software and shall 68282SAli.Saidi@ARM.com * not be construed as granting a license to any other intellectual 78282SAli.Saidi@ARM.com * property including but not limited to intellectual property relating 88282SAli.Saidi@ARM.com * to a hardware implementation of the functionality of the software 98282SAli.Saidi@ARM.com * licensed hereunder. You may use the software subject to the license 108282SAli.Saidi@ARM.com * terms below provided that you ensure that this notice is replicated 118282SAli.Saidi@ARM.com * unmodified and in its entirety in all distributions of the software, 128282SAli.Saidi@ARM.com * modified or unmodified, in source code or in binary form. 138282SAli.Saidi@ARM.com * 148282SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without 158282SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are 168282SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright 178282SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer; 188282SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright 198282SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the 208282SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution; 218282SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its 228282SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from 238282SAli.Saidi@ARM.com * this software without specific prior written permission. 248282SAli.Saidi@ARM.com * 258282SAli.Saidi@ARM.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 268282SAli.Saidi@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 278282SAli.Saidi@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 288282SAli.Saidi@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 298282SAli.Saidi@ARM.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 308282SAli.Saidi@ARM.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 318282SAli.Saidi@ARM.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 328282SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 338282SAli.Saidi@ARM.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 348282SAli.Saidi@ARM.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 358282SAli.Saidi@ARM.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 368282SAli.Saidi@ARM.com * 378282SAli.Saidi@ARM.com * Authors: Ali Saidi 388282SAli.Saidi@ARM.com */ 398282SAli.Saidi@ARM.com 408282SAli.Saidi@ARM.com#ifndef __DEV_ARM_A9SCU_HH__ 418282SAli.Saidi@ARM.com#define __DEV_ARM_A9SCU_HH__ 428282SAli.Saidi@ARM.com 438282SAli.Saidi@ARM.com#include "dev/io_device.hh" 448282SAli.Saidi@ARM.com#include "params/A9SCU.hh" 458282SAli.Saidi@ARM.com 468282SAli.Saidi@ARM.com/** @file 478282SAli.Saidi@ARM.com * This defines the snoop control unit register on an A9 488282SAli.Saidi@ARM.com */ 498282SAli.Saidi@ARM.com 508282SAli.Saidi@ARM.comclass A9SCU : public BasicPioDevice 518282SAli.Saidi@ARM.com{ 528282SAli.Saidi@ARM.com protected: 538282SAli.Saidi@ARM.com enum { 548282SAli.Saidi@ARM.com Control = 0x00, 558282SAli.Saidi@ARM.com Config = 0x04, 568282SAli.Saidi@ARM.com }; 578282SAli.Saidi@ARM.com 588282SAli.Saidi@ARM.com public: 598282SAli.Saidi@ARM.com typedef A9SCUParams Params; 608282SAli.Saidi@ARM.com 618282SAli.Saidi@ARM.com /** 628282SAli.Saidi@ARM.com * The constructor for RealView just registers itself with the MMU. 638282SAli.Saidi@ARM.com * @param p params structure 648282SAli.Saidi@ARM.com */ 658282SAli.Saidi@ARM.com A9SCU(Params *p); 668282SAli.Saidi@ARM.com 678282SAli.Saidi@ARM.com /** 688282SAli.Saidi@ARM.com * Handle a read to the device 698282SAli.Saidi@ARM.com * @param pkt The memory request. 708282SAli.Saidi@ARM.com * @param data Where to put the data. 718282SAli.Saidi@ARM.com */ 728282SAli.Saidi@ARM.com virtual Tick read(PacketPtr pkt); 738282SAli.Saidi@ARM.com 748282SAli.Saidi@ARM.com /** 758282SAli.Saidi@ARM.com * All writes are panic. 768282SAli.Saidi@ARM.com * @param pkt The memory request. 778282SAli.Saidi@ARM.com * @param data the data 788282SAli.Saidi@ARM.com */ 798282SAli.Saidi@ARM.com virtual Tick write(PacketPtr pkt); 808282SAli.Saidi@ARM.com}; 818282SAli.Saidi@ARM.com 828282SAli.Saidi@ARM.com 838282SAli.Saidi@ARM.com#endif // __DEV_ARM_A9SCU_HH__ 848282SAli.Saidi@ARM.com 85