E820.py revision 9338
17119Sgblack@eecs.umich.edu# Copyright (c) 2008 The Hewlett-Packard Development Company
27119Sgblack@eecs.umich.edu# All rights reserved.
37120Sgblack@eecs.umich.edu#
47120Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
57120Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
67120Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
77120Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
87120Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
97120Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
107120Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
117120Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
127120Sgblack@eecs.umich.edu#
137120Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
147120Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
157119Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
167119Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
177119Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
187119Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
197119Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
207119Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
217119Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
227119Sgblack@eecs.umich.edu# this software without specific prior written permission.
237119Sgblack@eecs.umich.edu#
247119Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
257119Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
267119Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
277119Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
287119Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
297119Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
307119Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
317119Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
327119Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
337119Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
347119Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
357119Sgblack@eecs.umich.edu#
367119Sgblack@eecs.umich.edu# Authors: Gabe Black
377119Sgblack@eecs.umich.edu
387119Sgblack@eecs.umich.edufrom m5.params import *
397119Sgblack@eecs.umich.edufrom m5.SimObject import SimObject
407119Sgblack@eecs.umich.edu
417119Sgblack@eecs.umich.educlass X86E820Entry(SimObject):
427119Sgblack@eecs.umich.edu    type = 'X86E820Entry'
437119Sgblack@eecs.umich.edu    cxx_class = 'X86ISA::E820Entry'
447205Sgblack@eecs.umich.edu    cxx_header = 'arch/x86/bios/e820.hh'
457205Sgblack@eecs.umich.edu
467205Sgblack@eecs.umich.edu    addr = Param.Addr(0, 'address of the beginning of the region')
477205Sgblack@eecs.umich.edu    size = Param.MemorySize('0B', 'size of the region')
487205Sgblack@eecs.umich.edu    range_type = Param.UInt64('type of the region')
497205Sgblack@eecs.umich.edu
507205Sgblack@eecs.umich.educlass X86E820Table(SimObject):
517205Sgblack@eecs.umich.edu    type = 'X86E820Table'
527205Sgblack@eecs.umich.edu    cxx_class = 'X86ISA::E820Table'
537205Sgblack@eecs.umich.edu    cxx_header = 'arch/x86/bios/e820.hh'
547205Sgblack@eecs.umich.edu
557205Sgblack@eecs.umich.edu    entries = VectorParam.X86E820Entry('entries for the e820 table')
567205Sgblack@eecs.umich.edu