E820.py revision 5610
13005Sstever@eecs.umich.edu# Copyright (c) 2008 The Hewlett-Packard Development Company
23005Sstever@eecs.umich.edu# All rights reserved.
33005Sstever@eecs.umich.edu#
43005Sstever@eecs.umich.edu# Redistribution and use of this software in source and binary forms,
53005Sstever@eecs.umich.edu# with or without modification, are permitted provided that the
63005Sstever@eecs.umich.edu# following conditions are met:
73005Sstever@eecs.umich.edu#
83005Sstever@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any
93005Sstever@eecs.umich.edu# use which is NOT directed to receiving any direct monetary
103005Sstever@eecs.umich.edu# compensation for, or commercial advantage from such use.  Illustrative
113005Sstever@eecs.umich.edu# examples of non-commercial use are academic research, personal study,
123005Sstever@eecs.umich.edu# teaching, education and corporate research & development.
133005Sstever@eecs.umich.edu# Illustrative examples of commercial use are distributing products for
143005Sstever@eecs.umich.edu# commercial advantage and providing services using the software for
153005Sstever@eecs.umich.edu# commercial advantage.
163005Sstever@eecs.umich.edu#
173005Sstever@eecs.umich.edu# If you wish to use this software or functionality therein that may be
183005Sstever@eecs.umich.edu# covered by patents for commercial use, please contact:
193005Sstever@eecs.umich.edu#     Director of Intellectual Property Licensing
203005Sstever@eecs.umich.edu#     Office of Strategy and Technology
213005Sstever@eecs.umich.edu#     Hewlett-Packard Company
223005Sstever@eecs.umich.edu#     1501 Page Mill Road
233005Sstever@eecs.umich.edu#     Palo Alto, California  94304
243005Sstever@eecs.umich.edu#
253005Sstever@eecs.umich.edu# Redistributions of source code must retain the above copyright notice,
263005Sstever@eecs.umich.edu# this list of conditions and the following disclaimer.  Redistributions
273005Sstever@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
283005Sstever@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
292889SN/A# other materials provided with the distribution.  Neither the name of
302889SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
312710SN/A# contributors may be used to endorse or promote products derived from
322710SN/A# this software without specific prior written permission.  No right of
332934SN/A# sublicense is granted herewith.  Derivatives of the software and
342934SN/A# output created using the software may be prepared, but only for
352549SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
362995SN/A# others provided: (i) the others agree to abide by the list of
372549SN/A# conditions herein which includes the Non-Commercial Use restrictions;
382889SN/A# and (ii) such Derivatives of the software include the above copyright
392710SN/A# notice to acknowledge the contribution from this software where
402917SN/A# applicable, this list of conditions and the disclaimer below.
412710SN/A#
422917SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
432948SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
442995SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
452995SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
462995SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
472995SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
482995SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
492995SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
502710SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
512710SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
522710SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
532710SN/A#
542710SN/A# Authors: Gabe Black
552710SN/A
562710SN/Afrom m5.params import *
572934SN/Afrom m5.SimObject import SimObject
582934SN/A
592934SN/Aclass X86E820Entry(SimObject):
602953SN/A    type = 'X86E820Entry'
612934SN/A    cxx_class = 'X86ISA::E820Entry'
622934SN/A
632934SN/A    addr = Param.Addr(0, 'address of the beginning of the region')
642953SN/A    size = Param.MemorySize('0B', 'size of the region')
652934SN/A    range_type = Param.UInt64('type of the region')
662934SN/A
672934SN/Aclass X86E820Table(SimObject):
682953SN/A    type = 'X86E820Table'
692566SN/A    cxx_class = 'X86ISA::E820Table'
703005Sstever@eecs.umich.edu
713005Sstever@eecs.umich.edu    entries = VectorParam.X86E820Entry([], 'entries for the e820 table')
722995SN/A