gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
malta.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2005 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: Ali Saidi
29  * Rick Strong
30  */
31 
38 #ifndef __DEV_MALTA_HH__
39 #define __DEV_MALTA_HH__
40 
41 #include "dev/platform.hh"
42 #include "params/Malta.hh"
43 
44 class IdeController;
45 class MaltaCChip;
46 class MaltaIO;
47 class System;
48 
56 class Malta : public Platform
57 {
58  public:
60  static const int Max_CPUs = 64;
61 
64 
67 
73 
76 
77  public:
84  typedef MaltaParams Params;
85  Malta(const Params *p);
86 
90  void postConsoleInt() override;
91 
95  void clearConsoleInt() override;
96 
100  void postPciInt(int line) override;
101 
105  void clearPciInt(int line) override;
106 
107 
108  virtual Addr pciToDma(Addr pciAddr) const;
109 
110  Addr
111  calcPciConfigAddr(int bus, int dev, int func)
112  {
113  panic("Need implementation\n");
114  M5_DUMMY_RETURN
115  }
116 
117  Addr
119  {
120  panic("Need implementation\n");
121  M5_DUMMY_RETURN
122  }
123 
124  Addr
126  {
127  panic("Need implementation\n");
128  M5_DUMMY_RETURN
129  }
130 
131  void serialize(CheckpointOut &cp) const override;
132  void unserialize(CheckpointIn &cp) override;
133 };
134 
135 #endif // __DEV_MALTA_HH__
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Definition: malta.cc:100
#define panic(...)
Definition: misc.hh:153
int ipi_pending[Malta::Max_CPUs]
Definition: malta.hh:75
Addr calcPciMemAddr(Addr addr)
Definition: malta.hh:125
virtual Addr pciToDma(Addr pciAddr) const
Definition: malta.cc:88
ip6_addr_t addr
Definition: inet.hh:335
void serialize(CheckpointOut &cp) const override
Serialize an object.
Definition: malta.cc:94
Device model for an Intel PIIX4 IDE controller.
Definition: ide_ctrl.hh:51
Definition: system.hh:83
Addr calcPciConfigAddr(int bus, int dev, int func)
Definition: malta.hh:111
System * system
Pointer to the system.
Definition: malta.hh:63
Malta CChip CSR Emulation.
Definition: malta_cchip.hh:47
void clearPciInt(int line) override
Clear a posted PCI->CPU interrupt.
Definition: malta.cc:82
static const int Max_CPUs
Max number of CPUs in a Malta.
Definition: malta.hh:60
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:142
void postPciInt(int line) override
Cause the chipset to post a cpi interrupt to the CPU.
Definition: malta.cc:76
MaltaIO * io
Pointer to the MaltaIO device which has the RTC.
Definition: malta.hh:66
Top level class for Malta Chipset emulation.
Definition: malta.hh:56
Generic interface for platforms.
std::ostream CheckpointOut
Definition: serialize.hh:67
void clearConsoleInt() override
Clear a posted CPU interrupt (id=55)
Definition: malta.cc:69
Malta(const Params *p)
Definition: malta.cc:54
Addr calcPciIOAddr(Addr addr)
Definition: malta.hh:118
MaltaParams Params
Constructor for the Malta Class.
Definition: malta.hh:84
void postConsoleInt() override
Cause the cpu to post a serial interrupt to the CPU.
Definition: malta.cc:62
MaltaCChip * cchip
Pointer to the Malta CChip.
Definition: malta.hh:72
Malta I/O device is a catch all for all the south bridge stuff we care to implement.
Definition: malta_io.hh:52
Bitfield< 0 > p
int intr_sum_type[Malta::Max_CPUs]
Definition: malta.hh:74

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