acpi.hh revision 6216:2f4020838149
18706Sandreas.hansson@arm.com/*
28706Sandreas.hansson@arm.com * Copyright (c) 2008 The Hewlett-Packard Development Company
38706Sandreas.hansson@arm.com * All rights reserved.
48706Sandreas.hansson@arm.com *
58706Sandreas.hansson@arm.com * Redistribution and use of this software in source and binary forms,
68706Sandreas.hansson@arm.com * with or without modification, are permitted provided that the
78706Sandreas.hansson@arm.com * following conditions are met:
88706Sandreas.hansson@arm.com *
98706Sandreas.hansson@arm.com * The software must be used only for Non-Commercial Use which means any
108706Sandreas.hansson@arm.com * use which is NOT directed to receiving any direct monetary
118706Sandreas.hansson@arm.com * compensation for, or commercial advantage from such use.  Illustrative
128706Sandreas.hansson@arm.com * examples of non-commercial use are academic research, personal study,
135369Ssaidi@eecs.umich.edu * teaching, education and corporate research & development.
143005Sstever@eecs.umich.edu * Illustrative examples of commercial use are distributing products for
153005Sstever@eecs.umich.edu * commercial advantage and providing services using the software for
163005Sstever@eecs.umich.edu * commercial advantage.
173005Sstever@eecs.umich.edu *
183005Sstever@eecs.umich.edu * If you wish to use this software or functionality therein that may be
193005Sstever@eecs.umich.edu * covered by patents for commercial use, please contact:
203005Sstever@eecs.umich.edu *     Director of Intellectual Property Licensing
213005Sstever@eecs.umich.edu *     Office of Strategy and Technology
223005Sstever@eecs.umich.edu *     Hewlett-Packard Company
233005Sstever@eecs.umich.edu *     1501 Page Mill Road
243005Sstever@eecs.umich.edu *     Palo Alto, California  94304
253005Sstever@eecs.umich.edu *
263005Sstever@eecs.umich.edu * Redistributions of source code must retain the above copyright notice,
273005Sstever@eecs.umich.edu * this list of conditions and the following disclaimer.  Redistributions
283005Sstever@eecs.umich.edu * in binary form must reproduce the above copyright notice, this list of
293005Sstever@eecs.umich.edu * conditions and the following disclaimer in the documentation and/or
303005Sstever@eecs.umich.edu * other materials provided with the distribution.  Neither the name of
313005Sstever@eecs.umich.edu * the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
323005Sstever@eecs.umich.edu * contributors may be used to endorse or promote products derived from
333005Sstever@eecs.umich.edu * this software without specific prior written permission.  No right of
343005Sstever@eecs.umich.edu * sublicense is granted herewith.  Derivatives of the software and
353005Sstever@eecs.umich.edu * output created using the software may be prepared, but only for
363005Sstever@eecs.umich.edu * Non-Commercial Uses.  Derivatives of the software may be shared with
373005Sstever@eecs.umich.edu * others provided: (i) the others agree to abide by the list of
383005Sstever@eecs.umich.edu * conditions herein which includes the Non-Commercial Use restrictions;
393005Sstever@eecs.umich.edu * and (ii) such Derivatives of the software include the above copyright
403005Sstever@eecs.umich.edu * notice to acknowledge the contribution from this software where
412710SN/A * applicable, this list of conditions and the disclaimer below.
422710SN/A *
433005Sstever@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
442889SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
456654Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
466654Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
476654Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
486654Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
496654Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
502667SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
516654Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
526654Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
536654Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
545457Ssaidi@eecs.umich.edu *
556654Snate@binkert.org * Authors: Gabe Black
566654Snate@binkert.org */
575457Ssaidi@eecs.umich.edu
586654Snate@binkert.org#ifndef __ARCH_X86_BIOS_ACPI_HH__
598169SLisa.Hsu@amd.com#define __ARCH_X86_BIOS_ACPI_HH__
608169SLisa.Hsu@amd.com
618169SLisa.Hsu@amd.com#include <string>
626654Snate@binkert.org#include <vector>
633395Shsul@eecs.umich.edu
646981SLisa.Hsu@amd.com#include "base/types.hh"
653448Shsul@eecs.umich.edu#include "sim/sim_object.hh"
665369Ssaidi@eecs.umich.edu
673394Shsul@eecs.umich.educlass Port;
683444Sktlim@umich.edu
693444Sktlim@umich.educlass X86ACPIRSDPParams;
703444Sktlim@umich.edu
713444Sktlim@umich.educlass X86ACPISysDescTableParams;
722424SN/Aclass X86ACPIRSDTParams;
732957SN/Aclass X86ACPIXSDTParams;
742957SN/A
753323Shsul@eecs.umich.edunamespace X86ISA
763005Sstever@eecs.umich.edu{
777787SAli.Saidi@ARM.com
787787SAli.Saidi@ARM.comnamespace ACPI
795514SMichael.Adler@intel.com{
802957SN/A
815514SMichael.Adler@intel.comclass RSDT;
825514SMichael.Adler@intel.comclass XSDT;
835514SMichael.Adler@intel.comclass SysDescTable;
845514SMichael.Adler@intel.com
858467Snilay@cs.wisc.educlass RSDP : public SimObject
863444Sktlim@umich.edu{
872957SN/A  protected:
888482Snilay@cs.wisc.edu    typedef X86ACPIRSDPParams Params;
898482Snilay@cs.wisc.edu
908482Snilay@cs.wisc.edu    static const char signature[];
918482Snilay@cs.wisc.edu
928467Snilay@cs.wisc.edu    std::string oemID;
932957SN/A    uint8_t revision;
942957SN/A
952957SN/A    RSDT * rsdt;
962957SN/A    XSDT * xsdt;
972957SN/A
982957SN/A  public:
998167SLisa.Hsu@amd.com    RSDP(Params *p);
1008167SLisa.Hsu@amd.com};
1018167SLisa.Hsu@amd.com
1025369Ssaidi@eecs.umich.educlass SysDescTable : public SimObject
1038167SLisa.Hsu@amd.com{
1048167SLisa.Hsu@amd.com  protected:
1058167SLisa.Hsu@amd.com    typedef X86ACPISysDescTableParams Params;
1068167SLisa.Hsu@amd.com
1078167SLisa.Hsu@amd.com    const char * signature;
1088167SLisa.Hsu@amd.com    uint8_t revision;
1098167SLisa.Hsu@amd.com
1108168SLisa.Hsu@amd.com    std::string oemID;
1118168SLisa.Hsu@amd.com    std::string oemTableID;
1128168SLisa.Hsu@amd.com    uint32_t oemRevision;
1138168SLisa.Hsu@amd.com
1148167SLisa.Hsu@amd.com    std::string creatorID;
1158167SLisa.Hsu@amd.com    uint32_t creatorRevision;
1168168SLisa.Hsu@amd.com
1175369Ssaidi@eecs.umich.edu  public:
1185369Ssaidi@eecs.umich.edu    SysDescTable(Params *p, const char * _signature, uint8_t _revision);
1195369Ssaidi@eecs.umich.edu};
1205369Ssaidi@eecs.umich.edu
1215369Ssaidi@eecs.umich.educlass RSDT : public SysDescTable
1228167SLisa.Hsu@amd.com{
1235369Ssaidi@eecs.umich.edu  protected:
1245369Ssaidi@eecs.umich.edu    typedef X86ACPIRSDTParams Params;
1252801SN/A
1262801SN/A    std::vector<SysDescTable *> entries;
1275514SMichael.Adler@intel.com
1285514SMichael.Adler@intel.com  public:
1295514SMichael.Adler@intel.com    RSDT(Params *p);
1305514SMichael.Adler@intel.com};
1312418SN/A
1326391Sksewell@umich.educlass XSDT : public SysDescTable
1336391Sksewell@umich.edu{
1346391Sksewell@umich.edu  protected:
1356642Sksewell@umich.edu    typedef X86ACPIXSDTParams Params;
1366391Sksewell@umich.edu
1378649Snilay@cs.wisc.edu    std::vector<SysDescTable *> entries;
1382833SN/A
1392833SN/A  public:
1402833SN/A    XSDT(Params *p);
1412833SN/A};
1422833SN/A
1432833SN/A} // namespace ACPI
1445514SMichael.Adler@intel.com
1455514SMichael.Adler@intel.com} // namespace X86ISA
1462833SN/A
1472833SN/A#endif // __ARCH_X86_BIOS_E820_HH__
1482833SN/A