【正文】
Status and Control Functions query and/or control the power state of the system and /or devices. ? PM Event Polling returns information about a power event . ? OEM Defined Functions are reserved for OEM APM implementations including OEM Defined Function and OEM Installation check. 2/27/2023 42 APM Standard Functions Call APM Standard Functions Call Overview APM Standard Functions Call sample. 2/27/2023 43 APM Standard Functions Call Overview ? Set Power State(07h). ? Get Power State(0Ah). ? Get Capabilities(10h). 2/27/2023 44 ? Call “ Set Power State” function ? INT 15h ? AH = 53H APM ? AL = 07H (Set Power State) ? BX = Power device ID ? CX = Power state ? Returns: if function successful Carry = 0。 if function failed Carry = 1, AH = Error Code APM Standard Functions Call Sample 2/27/2023 45 OEM Defined Functions Call ? OEM APM Installation Check(80h) ? OEM APM Function(80h) 2/27/2023 46 OEM APM Installation Check ? This call checks to see if the APM BIOS supports OEM hardwaredependent functions. ? INT 15h ? AH = 53H APM ? AL = 80H OEM APM ? BH = 7FH Installation check ? Returns : if functions successful Carry = 0, BX = OEM ID, or Carry = 1, AH = Error Code( OEM –Defined ). 2/27/2023 47 OEM APM Function(80h) ? This function accesses OEM productspecific APM functions. ? AH = 53H APM ? AL = 80H OEM APM ? BH = 00H7EH, 80HFFH OEM Defined ? Returns : if functions successful Carry = 0, or Carry = 1, AH = Error Code( OEM –Defined ). 2/27/2023 48 5. Firmware Error Codes ? Error Code Groupings ? Some Important Error Code 2/27/2023 49 Error Code Groupings ? Interface and general errors 00h1Fh ? CPU Errors 20h3Fh ? Device errors 40h5Fh ? System errors 60h7Fh ? PM Event Errors 80h9Fh ? Reserved errors A0hFEh ? Undefined function FFh 2/27/2023 50 Some Important Error Code ? 01h Power Management functionality disabled. ? 09h Unrecognized Device ID. ? 60h Unable to enter requested state 2/27/2023 51 6. Summaries ? APM BIOS Interface masks the details of hardware specific . This allow a developer without the knowledge of hardware to develop applications controlling the Power Management. ? APM BIOS municates with hardware and OS Driver to enhanced the Power Management effectiveness. ? APM BIOS control the hardware power consumption 2/27/2023 52 7. QA ? Thanks A Lot! 2/27/2023 53 演講完畢,謝謝觀看!