i8259.hh revision 5390
12SN/A/* 213575Sciro.santilli@arm.com * Copyright (c) 2004-2005 The Regents of The University of Michigan 313575Sciro.santilli@arm.com * All rights reserved. 413575Sciro.santilli@arm.com * 513575Sciro.santilli@arm.com * Redistribution and use in source and binary forms, with or without 613575Sciro.santilli@arm.com * modification, are permitted provided that the following conditions are 713575Sciro.santilli@arm.com * met: redistributions of source code must retain the above copyright 813575Sciro.santilli@arm.com * notice, this list of conditions and the following disclaimer; 913575Sciro.santilli@arm.com * redistributions in binary form must reproduce the above copyright 1013575Sciro.santilli@arm.com * notice, this list of conditions and the following disclaimer in the 1113575Sciro.santilli@arm.com * documentation and/or other materials provided with the distribution; 1213575Sciro.santilli@arm.com * neither the name of the copyright holders nor the names of its 1311274Sshingarov@labware.com * contributors may be used to endorse or promote products derived from 1410595Sgabeblack@google.com * this software without specific prior written permission. 151762SN/A * 162SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272SN/A * 282SN/A * Authors: Gabe Black 292SN/A */ 302SN/A 312SN/A#ifndef __DEV_X86_SOUTH_BRIDGE_I8259_HH__ 322SN/A#define __DEV_X86_SOUTH_BRIDGE_I8259_HH__ 332SN/A 342SN/A#include "arch/x86/x86_traits.hh" 352SN/A#include "base/range.hh" 362SN/A#include "dev/x86/south_bridge/sub_device.hh" 372SN/A 382SN/Anamespace X86ISA 392SN/A{ 402665Ssaidi@eecs.umich.edu 412665Ssaidi@eecs.umich.educlass I8259 : public SubDevice 4211274Sshingarov@labware.com{ 432SN/A public: 442SN/A 452SN/A I8259() 462SN/A {} 472SN/A I8259(Tick _latency) : SubDevice(_latency) 483960Sgblack@eecs.umich.edu {} 4977SN/A I8259(Addr start, Addr size, Tick _latency) : 5012031Sgabeblack@google.com SubDevice(start, size, _latency) 518229Snate@binkert.org {} 5212031Sgabeblack@google.com 538229Snate@binkert.org Tick read(PacketPtr pkt); 542986Sgblack@eecs.umich.edu 5510595Sgabeblack@google.com Tick write(PacketPtr pkt); 5656SN/A}; 5756SN/A 588229Snate@binkert.org}; // namespace X86ISA 592SN/A 602SN/A#endif //__DEV_X86_SOUTH_BRIDGE_I8259_HH__ 612680Sktlim@umich.edu