VirtualBox

Changeset 24078 in vbox for trunk/src


Ignore:
Timestamp:
Oct 26, 2009 2:16:50 PM (15 years ago)
Author:
vboxsync
Message:

DevACPI: order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r22793 r24078  
    20022002}
    20032003
     2004static DECLCALLBACK(void) acpiReset(PPDMDEVINS pDevIns)
     2005{
     2006    ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *);
     2007
     2008    s->pm1a_en           = 0;
     2009    s->pm1a_sts          = 0;
     2010    s->pm1a_ctl          = 0;
     2011    s->pm_timer_initial  = TMTimerGet(s->CTX_SUFF(ts));
     2012    acpiPMTimerReset(s);
     2013    s->uBatteryIndex     = 0;
     2014    s->uSystemInfoIndex  = 0;
     2015    s->gpe0_en           = 0;
     2016    s->gpe0_sts          = 0;
     2017    s->uSleepState       = 0;
     2018
     2019    /** @todo Should we really reset PM base? */
     2020    acpiUpdatePmHandlers(s, PM_PORT_BASE);
     2021
     2022    acpiPlantTables(s);
     2023}
     2024
     2025/**
     2026 * Relocates the GC pointer members.
     2027 */
     2028static DECLCALLBACK(void) acpiRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
     2029{
     2030    ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *);
     2031    s->tsRC = TMTimerRCPtr(s->CTX_SUFF(ts));
     2032}
     2033
    20042034/**
    20052035 * Construct a device instance for a VM.
     
    22192249
    22202250    return rc;
    2221 }
    2222 
    2223 /**
    2224  * Relocates the GC pointer members.
    2225  */
    2226 static DECLCALLBACK(void) acpiRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    2227 {
    2228     ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *);
    2229     s->tsRC = TMTimerRCPtr(s->CTX_SUFF(ts));
    2230 }
    2231 
    2232 static DECLCALLBACK(void) acpiReset(PPDMDEVINS pDevIns)
    2233 {
    2234     ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *);
    2235 
    2236     s->pm1a_en           = 0;
    2237     s->pm1a_sts          = 0;
    2238     s->pm1a_ctl          = 0;
    2239     s->pm_timer_initial  = TMTimerGet(s->CTX_SUFF(ts));
    2240     acpiPMTimerReset(s);
    2241     s->uBatteryIndex     = 0;
    2242     s->uSystemInfoIndex  = 0;
    2243     s->gpe0_en           = 0;
    2244     s->gpe0_sts          = 0;
    2245     s->uSleepState       = 0;
    2246 
    2247     /** @todo Should we really reset PM base? */
    2248     acpiUpdatePmHandlers(s, PM_PORT_BASE);
    2249 
    2250     acpiPlantTables(s);
    22512251}
    22522252
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette