VirtualBox

Changeset 94786 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 2, 2022 3:30:07 PM (3 years ago)
Author:
vboxsync
Message:

BIOS: Added trivial APM status (INT 15h/530Ah) support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/apm.c

    r93115 r94786  
    206206    case APM_BUSY:      /* Nothing to do as APM Idle doesn't slow CPU clock. */
    207207        break;
     208    case APM_STATUS:
     209        /* We do not attempt to report battery status. */
     210        BX = 0x01FF;    /* AC line power, battery unknown. */
     211        CX = 0x80FF;    /* No battery. */
     212        DX = 0xFFFF;    /* No idea about remaining battery life. */
     213        break;
    208214    case APM_GET_EVT:
    209215        /// @todo error should be different if interface not connected + engaged
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