summaryrefslogtreecommitdiff
path: root/src/arch/x86/bios
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-05-25 20:15:44 -0700
committerNathan Binkert <nate@binkert.org>2010-05-25 20:15:44 -0700
commitbb589d463b6f0d7b5024a90470547034e0ef5d1e (patch)
tree757986a9bfac34ab555b36dda0c65fef7c0e6c6f /src/arch/x86/bios
parent13d64906c24349f48418e378050950b4e06daa36 (diff)
downloadgem5-bb589d463b6f0d7b5024a90470547034e0ef5d1e.tar.xz
x86: put back code that I accidentally deleted
Diffstat (limited to 'src/arch/x86/bios')
-rw-r--r--src/arch/x86/bios/ACPI.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/x86/bios/ACPI.py b/src/arch/x86/bios/ACPI.py
index 6b513a472..671ed902d 100644
--- a/src/arch/x86/bios/ACPI.py
+++ b/src/arch/x86/bios/ACPI.py
@@ -33,6 +33,31 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+from m5.params import *
+from m5.SimObject import SimObject
+
+# ACPI description table header. Subclasses contain and handle the actual
+# contents as appropriate for that type of table.
+class X86ACPISysDescTable(SimObject):
+ type = 'X86ACPISysDescTable'
+ cxx_class = 'X86ISA::ACPI::SysDescTable'
+ abstract = True
+
+ oem_id = Param.String('', 'string identifying the oem')
+ oem_table_id = Param.String('', 'oem table ID')
+ oem_revision = Param.UInt32(0, 'oem revision number for the table')
+
+ creator_id = Param.String('',
+ 'string identifying the generator of the table')
+ creator_revision = Param.UInt32(0,
+ 'revision number for the creator of the table')
+
+class X86ACPIRSDT(X86ACPISysDescTable):
+ type = 'X86ACPIRSDT'
+ cxx_class = 'X86ISA::ACPI::RSDT'
+
+ entries = VectorParam.X86ACPISysDescTable([], 'system description tables')
+
class X86ACPIXSDT(X86ACPISysDescTable):
type = 'X86ACPIXSDT'
cxx_class = 'X86ISA::ACPI::XSDT'