platform.cc revision 1762
12600SN/A/*
22600SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
32600SN/A * All rights reserved.
42600SN/A *
52600SN/A * Redistribution and use in source and binary forms, with or without
62600SN/A * modification, are permitted provided that the following conditions are
72600SN/A * met: redistributions of source code must retain the above copyright
82600SN/A * notice, this list of conditions and the following disclaimer;
92600SN/A * redistributions in binary form must reproduce the above copyright
102600SN/A * notice, this list of conditions and the following disclaimer in the
112600SN/A * documentation and/or other materials provided with the distribution;
122600SN/A * neither the name of the copyright holders nor the names of its
132600SN/A * contributors may be used to endorse or promote products derived from
142600SN/A * this software without specific prior written permission.
152600SN/A *
162600SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172600SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182600SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192600SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202600SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212600SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222600SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232600SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242600SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252600SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262600SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu */
282665Ssaidi@eecs.umich.edu
292600SN/A#include "dev/platform.hh"
302600SN/A#include "sim/builder.hh"
3111383Sbrandon.potter@amd.com#include "sim/sim_exit.hh"
3211383Sbrandon.potter@amd.com
338229Snate@binkert.orgusing namespace std;
3411383Sbrandon.potter@amd.com
352600SN/APlatform::Platform(const string &name, IntrControl *intctrl, PciConfigAll *pci)
362600SN/A    : SimObject(name), intrctrl(intctrl), pciconfig(pci)
3711381Sbrandon.potter@amd.com{
382600SN/A}
395543Ssaidi@eecs.umich.edu
405543Ssaidi@eecs.umich.eduPlatform::~Platform()
415543Ssaidi@eecs.umich.edu{
425543Ssaidi@eecs.umich.edu}
435543Ssaidi@eecs.umich.edu
445543Ssaidi@eecs.umich.eduvoid
455543Ssaidi@eecs.umich.eduPlatform::postPciInt(int line)
462600SN/A{
475543Ssaidi@eecs.umich.edu   panic("No PCI interrupt support in platform.");
485543Ssaidi@eecs.umich.edu}
492600SN/A
502600SN/Avoid
515543Ssaidi@eecs.umich.eduPlatform::clearPciInt(int line)
522600SN/A{
532600SN/A   panic("No PCI interrupt support in platform.");
545543Ssaidi@eecs.umich.edu}
555543Ssaidi@eecs.umich.edu
565543Ssaidi@eecs.umich.eduAddr
572600SN/APlatform::pciToDma(Addr pciAddr) const
582600SN/A{
595543Ssaidi@eecs.umich.edu   panic("No PCI dma support in platform.");
605543Ssaidi@eecs.umich.edu}
615543Ssaidi@eecs.umich.edu
625543Ssaidi@eecs.umich.eduDEFINE_SIM_OBJECT_CLASS_NAME("Platform", Platform)
635543Ssaidi@eecs.umich.edu
645543Ssaidi@eecs.umich.edu