gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pc.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 The Regents of The University of Michigan
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met: redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * Authors: Gabe Black
29  */
30 
37 #ifndef __DEV_PC_HH__
38 #define __DEV_PC_HH__
39 
40 #include "dev/platform.hh"
41 #include "params/Pc.hh"
42 
43 class IdeController;
44 class System;
45 class SouthBridge;
46 
47 class Pc : public Platform
48 {
49  public:
53 
54  public:
55  typedef PcParams Params;
56 
60  void init() override;
61 
62  Pc(const Params *p);
63 
64  public:
65  void postConsoleInt() override;
66  void clearConsoleInt() override;
67 
68  void postPciInt(int line) override;
69  void clearPciInt(int line) override;
70 };
71 
72 #endif // __DEV_PC_HH__
PcParams Params
Definition: pc.hh:55
Definition: pc.hh:47
void init() override
Do platform initialization stuff.
Definition: pc.cc:62
Pc(const Params *p)
Definition: pc.cc:55
Device model for an Intel PIIX4 IDE controller.
Definition: ide_ctrl.hh:51
Definition: system.hh:83
void postConsoleInt() override
Cause the cpu to post a serial interrupt to the CPU.
Definition: pc.cc:120
System * system
Pointer to the system.
Definition: pc.hh:51
SouthBridge * southBridge
Definition: pc.hh:52
void clearPciInt(int line) override
Clear a posted PCI->CPU interrupt.
Definition: pc.cc:140
PlatformParams Params
Definition: platform.hh:59
void clearConsoleInt() override
Clear a posted CPU interrupt.
Definition: pc.cc:127
Generic interface for platforms.
Bitfield< 0 > p
void postPciInt(int line) override
Cause the chipset to post a cpi interrupt to the CPU.
Definition: pc.cc:134

Generated on Fri Jun 9 2017 13:03:47 for gem5 by doxygen 1.8.6