south_bridge.cc revision 5643:2b1611137af4
1892SN/A/* 21762SN/A * Copyright (c) 2008 The Regents of The University of Michigan 3892SN/A * All rights reserved. 4892SN/A * 5892SN/A * Redistribution and use in source and binary forms, with or without 6892SN/A * modification, are permitted provided that the following conditions are 7892SN/A * met: redistributions of source code must retain the above copyright 8892SN/A * notice, this list of conditions and the following disclaimer; 9892SN/A * redistributions in binary form must reproduce the above copyright 10892SN/A * notice, this list of conditions and the following disclaimer in the 11892SN/A * documentation and/or other materials provided with the distribution; 12892SN/A * neither the name of the copyright holders nor the names of its 13892SN/A * contributors may be used to endorse or promote products derived from 14892SN/A * this software without specific prior written permission. 15892SN/A * 16892SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17892SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18892SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19892SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20892SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21892SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22892SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23892SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24892SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25892SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26892SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665SN/A * 282665SN/A * Authors: Gabe Black 292665SN/A */ 30892SN/A 31767SN/A#include <assert.h> 321730SN/A 33798SN/A#include "dev/x86/pc.hh" 34767SN/A#include "dev/x86/south_bridge.hh" 35767SN/A 36767SN/Ausing namespace X86ISA; 37767SN/A 38767SN/ASouthBridge::SouthBridge(const Params *p) : SimObject(p), 39767SN/A platform(p->platform), pit(p->pit), pic1(p->pic1), pic2(p->pic2), 402432SN/A cmos(p->cmos), speaker(p->speaker), ioApic(p->io_apic) 41767SN/A{ 423348SN/A // Let the platform know where we are 433348SN/A Pc * pc = dynamic_cast<Pc *>(platform); 443540Sgblack@eecs.umich.edu assert(pc); 453540Sgblack@eecs.umich.edu pc->southBridge = this; 463540Sgblack@eecs.umich.edu} 473348SN/A 483348SN/ASouthBridge * 492523SN/ASouthBridgeParams::create() 50767SN/A{ 51767SN/A return new SouthBridge(this); 52767SN/A} 53767SN/A