X86System.py revision 5625:ea7d3676ac8d
114039Sstacze01@arm.com# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
214039Sstacze01@arm.com# All rights reserved.
314039Sstacze01@arm.com#
414039Sstacze01@arm.com# Redistribution and use of this software in source and binary forms,
514039Sstacze01@arm.com# with or without modification, are permitted provided that the
614039Sstacze01@arm.com# following conditions are met:
714039Sstacze01@arm.com#
814039Sstacze01@arm.com# The software must be used only for Non-Commercial Use which means any
914039Sstacze01@arm.com# use which is NOT directed to receiving any direct monetary
1014039Sstacze01@arm.com# compensation for, or commercial advantage from such use.  Illustrative
1114039Sstacze01@arm.com# examples of non-commercial use are academic research, personal study,
1214039Sstacze01@arm.com# teaching, education and corporate research & development.
1314039Sstacze01@arm.com# Illustrative examples of commercial use are distributing products for
1414039Sstacze01@arm.com# commercial advantage and providing services using the software for
1514039Sstacze01@arm.com# commercial advantage.
1614039Sstacze01@arm.com#
1714039Sstacze01@arm.com# If you wish to use this software or functionality therein that may be
1814039Sstacze01@arm.com# covered by patents for commercial use, please contact:
1914039Sstacze01@arm.com#     Director of Intellectual Property Licensing
2014039Sstacze01@arm.com#     Office of Strategy and Technology
2114039Sstacze01@arm.com#     Hewlett-Packard Company
2214039Sstacze01@arm.com#     1501 Page Mill Road
2314039Sstacze01@arm.com#     Palo Alto, California  94304
2414039Sstacze01@arm.com#
2514039Sstacze01@arm.com# Redistributions of source code must retain the above copyright notice,
2614039Sstacze01@arm.com# this list of conditions and the following disclaimer.  Redistributions
2714039Sstacze01@arm.com# in binary form must reproduce the above copyright notice, this list of
2814039Sstacze01@arm.com# conditions and the following disclaimer in the documentation and/or
2914039Sstacze01@arm.com# other materials provided with the distribution.  Neither the name of
3014039Sstacze01@arm.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3114039Sstacze01@arm.com# contributors may be used to endorse or promote products derived from
3214039Sstacze01@arm.com# this software without specific prior written permission.  No right of
3314039Sstacze01@arm.com# sublicense is granted herewith.  Derivatives of the software and
3414039Sstacze01@arm.com# output created using the software may be prepared, but only for
3514039Sstacze01@arm.com# Non-Commercial Uses.  Derivatives of the software may be shared with
3614039Sstacze01@arm.com# others provided: (i) the others agree to abide by the list of
3714039Sstacze01@arm.com# conditions herein which includes the Non-Commercial Use restrictions;
3814039Sstacze01@arm.com# and (ii) such Derivatives of the software include the above copyright
3914039Sstacze01@arm.com# notice to acknowledge the contribution from this software where
4014039Sstacze01@arm.com# applicable, this list of conditions and the disclaimer below.
4114039Sstacze01@arm.com#
4214039Sstacze01@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4314252Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4414039Sstacze01@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4514252Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4614039Sstacze01@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4714039Sstacze01@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4814039Sstacze01@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4914039Sstacze01@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5014039Sstacze01@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5114039Sstacze01@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5214039Sstacze01@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5314039Sstacze01@arm.com#
5414039Sstacze01@arm.com# Authors: Gabe Black
5514039Sstacze01@arm.com
5614039Sstacze01@arm.comfrom m5.params import *
5714039Sstacze01@arm.comfrom E820 import X86E820Table, X86E820Entry
5814039Sstacze01@arm.comfrom SMBios import X86SMBiosSMBiosTable
5914039Sstacze01@arm.comfrom IntelMP import X86IntelMPFloatingPointer, X86IntelMPConfigTable
6014039Sstacze01@arm.comfrom System import System
6114039Sstacze01@arm.com
6214039Sstacze01@arm.comclass X86System(System):
6314039Sstacze01@arm.com    type = 'X86System'
6414039Sstacze01@arm.com    smbios_table = Param.X86SMBiosSMBiosTable(
6514039Sstacze01@arm.com            X86SMBiosSMBiosTable(), 'table of smbios/dmi information')
6614039Sstacze01@arm.com    intel_mp_pointer = Param.X86IntelMPFloatingPointer(
6714039Sstacze01@arm.com            X86IntelMPFloatingPointer(),
6814039Sstacze01@arm.com            'intel mp spec floating pointer structure')
6914039Sstacze01@arm.com    intel_mp_table = Param.X86IntelMPConfigTable(
7014039Sstacze01@arm.com            X86IntelMPConfigTable(),
7114039Sstacze01@arm.com            'intel mp spec configuration table')
7214039Sstacze01@arm.com
7314039Sstacze01@arm.comclass LinuxX86System(X86System):
7414039Sstacze01@arm.com    type = 'LinuxX86System'
7514039Sstacze01@arm.com
7614252Sgabeblack@google.com    e820_table = Param.X86E820Table(
7714039Sstacze01@arm.com            X86E820Table(), 'E820 map of physical memory')
7814039Sstacze01@arm.com