15390SN/A/*
25446SN/A * Copyright (c) 2008 The Regents of The University of Michigan
35390SN/A * All rights reserved.
45390SN/A *
55390SN/A * Redistribution and use in source and binary forms, with or without
65390SN/A * modification, are permitted provided that the following conditions are
75390SN/A * met: redistributions of source code must retain the above copyright
85390SN/A * notice, this list of conditions and the following disclaimer;
95390SN/A * redistributions in binary form must reproduce the above copyright
105390SN/A * notice, this list of conditions and the following disclaimer in the
115390SN/A * documentation and/or other materials provided with the distribution;
125390SN/A * neither the name of the copyright holders nor the names of its
135390SN/A * contributors may be used to endorse or promote products derived from
145390SN/A * this software without specific prior written permission.
155390SN/A *
165390SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
175390SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
185390SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
195390SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
205390SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
215390SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
225390SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
235390SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
245390SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
255390SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
265390SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
275390SN/A *
285390SN/A * Authors: Gabe Black
295390SN/A */
305390SN/A
315637Sgblack@eecs.umich.edu#ifndef __DEV_X86_SOUTH_BRIDGE_HH__
325637Sgblack@eecs.umich.edu#define __DEV_X86_SOUTH_BRIDGE_HH__
335390SN/A
348229Snate@binkert.org#include "params/SouthBridge.hh"
355636SN/A#include "sim/sim_object.hh"
365390SN/A
375636SN/Anamespace X86ISA
385636SN/A{
395636SN/A    class I8254;
405636SN/A    class I8259;
415636SN/A    class Cmos;
425636SN/A    class Speaker;
435643Sgblack@eecs.umich.edu    class I82094AA;
445636SN/A}
455636SN/A
465636SN/Aclass SouthBridge : public SimObject
475390SN/A{
485390SN/A  protected:
495636SN/A    Platform * platform;
505446SN/A
515446SN/A  public:
525636SN/A    X86ISA::I8254 * pit;
535636SN/A    X86ISA::I8259 * pic1;
545636SN/A    X86ISA::I8259 * pic2;
555636SN/A    X86ISA::Cmos * cmos;
565636SN/A    X86ISA::Speaker * speaker;
575643Sgblack@eecs.umich.edu    X86ISA::I82094AA * ioApic;
585390SN/A
595446SN/A  public:
605390SN/A    typedef SouthBridgeParams Params;
615390SN/A    SouthBridge(const Params *p);
625390SN/A
635390SN/A    const Params *
645390SN/A    params() const
655390SN/A    {
665390SN/A        return dynamic_cast<const Params *>(_params);
675390SN/A    }
685390SN/A};
695390SN/A
705637Sgblack@eecs.umich.edu#endif //__DEV_X86_SOUTH_BRIDGE_HH__
71