Kyösti Mälkki | 3b947e2 | 2021-01-12 15:01:42 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <acpi/acpigen.h> |
| 4 | |
Angel Pons | afd268a | 2021-10-17 13:35:23 +0200 | [diff] [blame] | 5 | static const acpi_cstate_t cst_entries[] = { |
Kyösti Mälkki | 3b947e2 | 2021-01-12 15:01:42 +0200 | [diff] [blame] | 6 | { |
| 7 | .ctype = 1, |
| 8 | .latency = 1, |
| 9 | .power = 1000, |
| 10 | .resource = { |
| 11 | .space_id = ACPI_ADDRESS_SPACE_FIXED, |
| 12 | .bit_width = ACPI_FFIXEDHW_VENDOR_INTEL, |
| 13 | .bit_offset = ACPI_FFIXEDHW_CLASS_MWAIT, |
| 14 | .access_size = ACPI_ACCESS_SIZE_UNDEFINED, |
| 15 | .addrl = 0, |
| 16 | .addrh = 0, |
| 17 | } |
| 18 | }, |
| 19 | { |
| 20 | .ctype = 2, |
| 21 | .latency = 1, |
| 22 | .power = 500, |
| 23 | .resource = { |
| 24 | .space_id = ACPI_ADDRESS_SPACE_FIXED, |
| 25 | .bit_width = ACPI_FFIXEDHW_VENDOR_INTEL, |
| 26 | .bit_offset = ACPI_FFIXEDHW_CLASS_MWAIT, |
| 27 | .access_size = ACPI_ACCESS_SIZE_UNDEFINED, |
| 28 | .addrl = 0x10, |
| 29 | .addrh = 0, |
| 30 | } |
| 31 | }, |
| 32 | }; |
| 33 | |
Angel Pons | afd268a | 2021-10-17 13:35:23 +0200 | [diff] [blame] | 34 | int get_cst_entries(const acpi_cstate_t **entries) |
Kyösti Mälkki | 3b947e2 | 2021-01-12 15:01:42 +0200 | [diff] [blame] | 35 | { |
| 36 | *entries = cst_entries; |
| 37 | return ARRAY_SIZE(cst_entries); |
| 38 | } |