pc.hh revision 11341
12381SN/A/*
212780Snikos.nikoleris@arm.com * Copyright (c) 2008 The Regents of The University of Michigan
38711SN/A * All rights reserved.
48711SN/A *
58711SN/A * Redistribution and use in source and binary forms, with or without
68711SN/A * modification, are permitted provided that the following conditions are
78711SN/A * met: redistributions of source code must retain the above copyright
88711SN/A * notice, this list of conditions and the following disclaimer;
98711SN/A * redistributions in binary form must reproduce the above copyright
108711SN/A * notice, this list of conditions and the following disclaimer in the
118711SN/A * documentation and/or other materials provided with the distribution;
128711SN/A * neither the name of the copyright holders nor the names of its
138711SN/A * contributors may be used to endorse or promote products derived from
142381SN/A * this software without specific prior written permission.
152381SN/A *
162381SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172381SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182381SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192381SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202381SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212381SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222381SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232381SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242381SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252381SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262381SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272381SN/A *
282381SN/A * Authors: Gabe Black
292381SN/A */
302381SN/A
312381SN/A/**
322381SN/A * @file
332381SN/A * Declaration of top level class for PC platform components. This class
342381SN/A * just retains pointers to all its children so the children can communicate.
352381SN/A */
362381SN/A
372381SN/A#ifndef __DEV_PC_HH__
382381SN/A#define __DEV_PC_HH__
392665SN/A
402665SN/A#include "dev/platform.hh"
412772SN/A#include "params/Pc.hh"
428715SN/A
438922SN/Aclass IdeController;
442381SN/Aclass System;
452381SN/Aclass SouthBridge;
462381SN/A
472982SN/Aclass Pc : public Platform
4810405Sandreas.hansson@arm.com{
492381SN/A  public:
502381SN/A    /** Pointer to the system */
5110405Sandreas.hansson@arm.com    System *system;
5210405Sandreas.hansson@arm.com    SouthBridge *southBridge;
532381SN/A
549291SN/A  public:
5511168Sandreas.hansson@arm.com    typedef PcParams Params;
562381SN/A
579235SN/A    /**
586215SN/A     * Do platform initialization stuff
592381SN/A     */
6010888Sandreas.hansson@arm.com    void init() override;
6110405Sandreas.hansson@arm.com
629712SN/A    Pc(const Params *p);
632381SN/A
649036SN/A  public:
6510405Sandreas.hansson@arm.com    void postConsoleInt() override;
6610405Sandreas.hansson@arm.com    void clearConsoleInt() override;
6710405Sandreas.hansson@arm.com
6810405Sandreas.hansson@arm.com    void postPciInt(int line) override;
699036SN/A    void clearPciInt(int line) override;
7010405Sandreas.hansson@arm.com};
719036SN/A
729036SN/A#endif // __DEV_PC_HH__
7310405Sandreas.hansson@arm.com