195c513ecSRafael J. Wysocki		ACPI Time and Alarm (TAD) device attributes.
295c513ecSRafael J. Wysocki
395c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/caps
495c513ecSRafael J. WysockiDate:		March 2018
595c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
695c513ecSRafael J. WysockiDescription:
795c513ecSRafael J. Wysocki		(RO) Hexadecimal bitmask of the TAD attributes are reported by
895c513ecSRafael J. Wysocki		the platform firmware (see ACPI 6.2, section 9.18.2):
995c513ecSRafael J. Wysocki
1095c513ecSRafael J. Wysocki		BIT(0): AC wakeup implemented if set
1195c513ecSRafael J. Wysocki		BIT(1): DC wakeup implemented if set
1295c513ecSRafael J. Wysocki		BIT(2): Get/set real time features implemented if set
1395c513ecSRafael J. Wysocki		BIT(3): Real time accuracy in milliseconds if set
1495c513ecSRafael J. Wysocki		BIT(4): Correct status reported for wakeups from S4/S5 if set
1595c513ecSRafael J. Wysocki		BIT(5): The AC timer wakes up from S4 if set
1695c513ecSRafael J. Wysocki		BIT(6): The AC timer wakes up from S5 if set
1795c513ecSRafael J. Wysocki		BIT(7): The DC timer wakes up from S4 if set
1895c513ecSRafael J. Wysocki		BIT(8): The DC timer wakes up from S5 if set
1995c513ecSRafael J. Wysocki
2095c513ecSRafael J. Wysocki		The other bits are reserved.
2195c513ecSRafael J. Wysocki
2295c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_alarm
2395c513ecSRafael J. WysockiDate:		March 2018
2495c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2595c513ecSRafael J. WysockiDescription:
2695c513ecSRafael J. Wysocki		(RW) The AC alarm timer value.
2795c513ecSRafael J. Wysocki
2895c513ecSRafael J. Wysocki		Reads return the current AC alarm timer value in seconds or
2995c513ecSRafael J. Wysocki		"disabled", if the AC alarm is not set to wake up the system.
3095c513ecSRafael J. Wysocki
3195c513ecSRafael J. Wysocki		Write a new AC alarm timer value in seconds or "disabled" to it
3295c513ecSRafael J. Wysocki		to set the AC alarm timer or to disable it, respectively.
3395c513ecSRafael J. Wysocki
3495c513ecSRafael J. Wysocki		If the AC alarm timer is set through this attribute and it
3595c513ecSRafael J. Wysocki		expires, it will immediately wake up the system from the S3
3695c513ecSRafael J. Wysocki		sleep state (and from S4/S5 too if supported) until its status
3795c513ecSRafael J. Wysocki		is explicitly cleared via the ac_status attribute.
3895c513ecSRafael J. Wysocki
3995c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_policy
4095c513ecSRafael J. WysockiDate:		March 2018
4195c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
4295c513ecSRafael J. WysockiDescription:
4395c513ecSRafael J. Wysocki		(RW) The AC alarm expired timer wake policy (see ACPI 6.2,
4495c513ecSRafael J. Wysocki		Section 9.18 for details).
4595c513ecSRafael J. Wysocki
4695c513ecSRafael J. Wysocki		Reads return the current expired timer wake delay for the AC
4795c513ecSRafael J. Wysocki		alarm timer or "never", if the policy is to discard AC timer
4895c513ecSRafael J. Wysocki		wakeups if the system is on DC power.
4995c513ecSRafael J. Wysocki
5095c513ecSRafael J. Wysocki		Write a new expired timer wake delay for the AC alarm timer in
5195c513ecSRafael J. Wysocki		seconds or "never" to it to set the expired timer wake delay for
5295c513ecSRafael J. Wysocki		the AC alarm timer or to set its expired wake policy to discard
5395c513ecSRafael J. Wysocki		wakeups if the system is on DC power, respectively.
5495c513ecSRafael J. Wysocki
5595c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_status
5695c513ecSRafael J. WysockiDate:		March 2018
5795c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
5895c513ecSRafael J. WysockiDescription:
5995c513ecSRafael J. Wysocki		(RW) The AC alarm status.
6095c513ecSRafael J. Wysocki
6195c513ecSRafael J. Wysocki		Reads return a hexadecimal bitmask representing the AC alarm
6295c513ecSRafael J. Wysocki		timer status with the following meaning of bits (see ACPI 6.2,
6395c513ecSRafael J. Wysocki		Section 9.18.5):
6495c513ecSRafael J. Wysocki
6595c513ecSRafael J. Wysocki		Bit(0): The timer has expired if set.
6695c513ecSRafael J. Wysocki		Bit(1): The timer has woken up the system from a sleep state
6795c513ecSRafael J. Wysocki		        (S3 or S4/S5 if supported) if set.
6895c513ecSRafael J. Wysocki
6995c513ecSRafael J. Wysocki		The other bits are reserved.
7095c513ecSRafael J. Wysocki
7195c513ecSRafael J. Wysocki		Reads also cause the AC alarm timer status to be reset.
7295c513ecSRafael J. Wysocki
7395c513ecSRafael J. Wysocki		Another way to reset the the status of the AC alarm timer is to
7495c513ecSRafael J. Wysocki		write (the number) 0 to this file.
7595c513ecSRafael J. Wysocki
7695c513ecSRafael J. Wysocki		If the status return value indicates that the timer has expired,
7795c513ecSRafael J. Wysocki		it will immediately wake up the system from the S3 sleep state
7895c513ecSRafael J. Wysocki		(and from S4/S5 too if supported) until its status is explicitly
7995c513ecSRafael J. Wysocki		cleared through this attribute.
8095c513ecSRafael J. Wysocki
8195c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_alarm
8295c513ecSRafael J. WysockiDate:		March 2018
8395c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
8495c513ecSRafael J. WysockiDescription:
8595c513ecSRafael J. Wysocki		(RW,optional) The DC alarm timer value.
8695c513ecSRafael J. Wysocki
8795c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
8895c513ecSRafael J. Wysocki		DC timer.
8995c513ecSRafael J. Wysocki
9095c513ecSRafael J. Wysocki		It is analogous to the ac_alarm attribute.
9195c513ecSRafael J. Wysocki
9295c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_policy
9395c513ecSRafael J. WysockiDate:		March 2018
9495c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
9595c513ecSRafael J. WysockiDescription:
9695c513ecSRafael J. Wysocki		(RW,optional) The DC alarm expired timer wake policy.
9795c513ecSRafael J. Wysocki
9895c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
9995c513ecSRafael J. Wysocki		DC timer.
10095c513ecSRafael J. Wysocki
10195c513ecSRafael J. Wysocki		It is analogous to the ac_policy attribute.
10295c513ecSRafael J. Wysocki
10395c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_status
10495c513ecSRafael J. WysockiDate:		March 2018
10595c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
10695c513ecSRafael J. Wysocki
10795c513ecSRafael J. WysockiDescription:
10895c513ecSRafael J. Wysocki		(RW,optional) The DC alarm status.
10995c513ecSRafael J. Wysocki
11095c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
11195c513ecSRafael J. Wysocki		DC timer.
11295c513ecSRafael J. Wysocki
11395c513ecSRafael J. Wysocki		It is analogous to the ac_status attribute.
114