Lines Matching +full:enable +full:- +full:charge +full:- +full:control
3 * Module Name: hwxface - Public ACPICA hardware interfaces
11 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
192 !ResetReg->Address)
197 if (ResetReg->SpaceId == ACPI_ADR_SPACE_SYSTEM_IO)
210 Status = AcpiOsWritePort ((ACPI_IO_ADDRESS) ResetReg->Address,
230 * PARAMETERS: Value - Where the value is returned
231 * Reg - GAS register structure
267 * PARAMETERS: Value - Value to be written
268 * Reg - GAS register structure
299 * PARAMETERS: RegisterId - ID of ACPI Bit Register to access
300 * ReturnValue - Value that was read from the register,
308 * SUPPORTS: Bit fields in PM1 Status, PM1 Enable, PM1 Control, and
309 * PM2 Control.
314 * registers. The only multi-bit field is SLP_TYP in the PM1 control
315 * register, but this field does not cross an 8-bit boundary (nor does
344 Status = AcpiHwRegisterRead (BitRegInfo->ParentRegister,
353 Value = ((RegisterValue & BitRegInfo->AccessBitMask)
354 >> BitRegInfo->BitPosition);
358 RegisterId, BitRegInfo->ParentRegister, RegisterValue, Value));
371 * PARAMETERS: RegisterId - ID of ACPI Bit Register to access
372 * Value - Value to write to the register, in bit
381 * SUPPORTS: Bit fields in PM1 Status, PM1 Enable, PM1 Control, and
382 * PM2 Control.
385 * hardware registers (A and B - and B may not exist) is abstracted.
415 * following: PM1 Status, PM1 Enable, PM1 Control, or PM2 Control
417 if (BitRegInfo->ParentRegister != ACPI_REGISTER_PM1_STATUS)
420 * 1) Case for PM1 Enable, PM1 Control, and PM2 Control
425 Status = AcpiHwRegisterRead (BitRegInfo->ParentRegister,
436 ACPI_REGISTER_INSERT_VALUE (RegisterValue, BitRegInfo->BitPosition,
437 BitRegInfo->AccessBitMask, Value);
439 Status = AcpiHwRegisterWrite (BitRegInfo->ParentRegister,
453 BitRegInfo->BitPosition, BitRegInfo->AccessBitMask);
466 RegisterId, BitRegInfo->ParentRegister, Value, RegisterValue));
484 * PARAMETERS: SleepState - Numeric sleep state
485 * *SleepTypeA - Where SLP_TYPa is returned
486 * *SleepTypeB - Where SLP_TYPb is returned
508 * BYTE 0 - Value for the PM1A SLP_TYP register
509 * BYTE 1 - Value for the PM1B SLP_TYP register
510 * BYTE 2-3 - Reserved
513 * Integer 0 - Value for the PM1A SLP_TYP register
514 * Integer 1 - Value for the PM1A SLP_TYP register
552 Info->RelativePathname = AcpiGbl_SleepStateNames[SleepState];
569 if (!Info->ReturnObject)
572 Info->RelativePathname));
579 if (Info->ReturnObject->Common.Type != ACPI_TYPE_PACKAGE)
588 * already been issued by the predefined name module -- there is no
591 Elements = Info->ReturnObject->Package.Elements;
592 switch (Info->ReturnObject->Package.Count)
601 if (Elements[0]->Common.Type != ACPI_TYPE_INTEGER)
609 *SleepTypeA = (UINT8) Elements[0]->Integer.Value;
610 *SleepTypeB = (UINT8) (Elements[0]->Integer.Value >> 8);
616 if ((Elements[0]->Common.Type != ACPI_TYPE_INTEGER) ||
617 (Elements[1]->Common.Type != ACPI_TYPE_INTEGER))
625 *SleepTypeA = (UINT8) Elements[0]->Integer.Value;
626 *SleepTypeB = (UINT8) Elements[1]->Integer.Value;
631 AcpiUtRemoveReference (Info->ReturnObject);
638 Info->RelativePathname));