south_bridge.hh revision 5643
14486Sbinkertn@umich.edu/*
24486Sbinkertn@umich.edu * Copyright (c) 2008 The Regents of The University of Michigan
34486Sbinkertn@umich.edu * All rights reserved.
44486Sbinkertn@umich.edu *
54486Sbinkertn@umich.edu * Redistribution and use in source and binary forms, with or without
64486Sbinkertn@umich.edu * modification, are permitted provided that the following conditions are
74486Sbinkertn@umich.edu * met: redistributions of source code must retain the above copyright
84486Sbinkertn@umich.edu * notice, this list of conditions and the following disclaimer;
94486Sbinkertn@umich.edu * redistributions in binary form must reproduce the above copyright
104486Sbinkertn@umich.edu * notice, this list of conditions and the following disclaimer in the
114486Sbinkertn@umich.edu * documentation and/or other materials provided with the distribution;
124486Sbinkertn@umich.edu * neither the name of the copyright holders nor the names of its
134486Sbinkertn@umich.edu * contributors may be used to endorse or promote products derived from
144486Sbinkertn@umich.edu * this software without specific prior written permission.
154486Sbinkertn@umich.edu *
164486Sbinkertn@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
174486Sbinkertn@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
184486Sbinkertn@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
194486Sbinkertn@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
204486Sbinkertn@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
214486Sbinkertn@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
224486Sbinkertn@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
234486Sbinkertn@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
244486Sbinkertn@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
254486Sbinkertn@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
264486Sbinkertn@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
274486Sbinkertn@umich.edu *
284486Sbinkertn@umich.edu * Authors: Gabe Black
293102SN/A */
303102SN/A
312667SN/A#ifndef __DEV_X86_SOUTH_BRIDGE_HH__
321681SN/A#define __DEV_X86_SOUTH_BRIDGE_HH__
333223SN/A
341681SN/A#include "sim/sim_object.hh"
354486Sbinkertn@umich.edu#include "params/SouthBridge.hh"
364486Sbinkertn@umich.edu
374486Sbinkertn@umich.edunamespace X86ISA
382817SN/A{
392817SN/A    class I8254;
402932SN/A    class I8259;
412932SN/A    class Cmos;
421681SN/A    class Speaker;
432362SN/A    class I82094AA;
442362SN/A}
452932SN/A
462932SN/Aclass SouthBridge : public SimObject
472932SN/A{
483223SN/A  protected:
493223SN/A    Platform * platform;
502932SN/A
512932SN/A  public:
522932SN/A    X86ISA::I8254 * pit;
533223SN/A    X86ISA::I8259 * pic1;
543223SN/A    X86ISA::I8259 * pic2;
552932SN/A    X86ISA::Cmos * cmos;
562932SN/A    X86ISA::Speaker * speaker;
572318SN/A    X86ISA::I82094AA * ioApic;
584597Sbinkertn@umich.edu
592871SN/A  public:
602871SN/A    typedef SouthBridgeParams Params;
612998SN/A    SouthBridge(const Params *p);
621681SN/A
632932SN/A    const Params *
642932SN/A    params() const
652932SN/A    {
662932SN/A        return dynamic_cast<const Params *>(_params);
672932SN/A    }
682932SN/A};
692932SN/A
702932SN/A#endif //__DEV_X86_SOUTH_BRIDGE_HH__
712932SN/A