Angel Pons | 7544e2f | 2020-04-03 01:23:10 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpigen.h> |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 4 | |
Angel Pons | afd268a | 2021-10-17 13:35:23 +0200 | [diff] [blame] | 5 | static const acpi_cstate_t cst_entries[] = { |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 6 | { |
Elyes HAOUAS | 8ab989e | 2016-07-30 17:46:17 +0200 | [diff] [blame] | 7 | /* ACPI C1 / CPU C1 */ |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 8 | 1, 0x01, 1000, |
Elyes HAOUAS | 8ee161d | 2019-03-03 12:49:56 +0100 | [diff] [blame] | 9 | { ACPI_ADDRESS_SPACE_FIXED, 1, 2, 1, 0, 0 } |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 10 | }, |
| 11 | { |
Elyes HAOUAS | 8ab989e | 2016-07-30 17:46:17 +0200 | [diff] [blame] | 12 | /* ACPI C2 / CPU C2 */ |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 13 | 2, 0x01, 500, |
Elyes HAOUAS | 8ee161d | 2019-03-03 12:49:56 +0100 | [diff] [blame] | 14 | { ACPI_ADDRESS_SPACE_FIXED, 1, 2, 1, 0x10, 0 } |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 15 | }, |
| 16 | }; |
| 17 | |
Angel Pons | afd268a | 2021-10-17 13:35:23 +0200 | [diff] [blame] | 18 | int get_cst_entries(const acpi_cstate_t **entries) |
Patrick Georgi | 021b703 | 2012-11-06 11:05:38 +0100 | [diff] [blame] | 19 | { |
| 20 | *entries = cst_entries; |
| 21 | return ARRAY_SIZE(cst_entries); |
| 22 | } |