i8259.hh revision 5390
11689SN/A/* 29444SAndreas.Sandberg@ARM.com * Copyright (c) 2004-2005 The Regents of The University of Michigan 39444SAndreas.Sandberg@ARM.com * All rights reserved. 49444SAndreas.Sandberg@ARM.com * 59444SAndreas.Sandberg@ARM.com * Redistribution and use in source and binary forms, with or without 69444SAndreas.Sandberg@ARM.com * modification, are permitted provided that the following conditions are 79444SAndreas.Sandberg@ARM.com * met: redistributions of source code must retain the above copyright 89444SAndreas.Sandberg@ARM.com * notice, this list of conditions and the following disclaimer; 99444SAndreas.Sandberg@ARM.com * redistributions in binary form must reproduce the above copyright 109444SAndreas.Sandberg@ARM.com * notice, this list of conditions and the following disclaimer in the 119444SAndreas.Sandberg@ARM.com * documentation and/or other materials provided with the distribution; 129444SAndreas.Sandberg@ARM.com * neither the name of the copyright holders nor the names of its 139444SAndreas.Sandberg@ARM.com * contributors may be used to endorse or promote products derived from 142329SN/A * this software without specific prior written permission. 1510239Sbinhpham@cs.rutgers.edu * 161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271689SN/A * 281689SN/A * Authors: Gabe Black 291689SN/A */ 301689SN/A 311689SN/A#ifndef __DEV_X86_SOUTH_BRIDGE_I8259_HH__ 321689SN/A#define __DEV_X86_SOUTH_BRIDGE_I8259_HH__ 331689SN/A 341689SN/A#include "arch/x86/x86_traits.hh" 351689SN/A#include "base/range.hh" 361689SN/A#include "dev/x86/south_bridge/sub_device.hh" 371689SN/A 381689SN/Anamespace X86ISA 391689SN/A{ 402665Ssaidi@eecs.umich.edu 412665Ssaidi@eecs.umich.educlass I8259 : public SubDevice 421689SN/A{ 431689SN/A public: 442292SN/A 452292SN/A I8259() 461060SN/A {} 471060SN/A I8259(Tick _latency) : SubDevice(_latency) 4811246Sradhika.jagtap@ARM.com {} 491060SN/A I8259(Addr start, Addr size, Tick _latency) : 501461SN/A SubDevice(start, size, _latency) 518229Snate@binkert.org {} 527813Ssteve.reinhardt@amd.com 5311246Sradhika.jagtap@ARM.com Tick read(PacketPtr pkt); 541060SN/A 558737Skoansin.tan@gmail.com Tick write(PacketPtr pkt); 565529Snate@binkert.org}; 572292SN/A 582329SN/A}; // namespace X86ISA 592329SN/A 602329SN/A#endif //__DEV_X86_SOUTH_BRIDGE_I8259_HH__ 612329SN/A