diff options
author | 2021-10-29 12:51:53 -0700 | |
---|---|---|
committer | 2021-11-15 11:03:00 -0800 | |
commit | 814dff9ae234d70003b8733a637fec621c90f0bc (patch) | |
tree | a6ca7b056fe30c97f28b289476a62e6e7bf19843 /tools/testing/cxl/test/mock.h | |
parent | cxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers (diff) | |
download | linux-dev-814dff9ae234d70003b8733a637fec621c90f0bc.tar.xz linux-dev-814dff9ae234d70003b8733a637fec621c90f0bc.zip |
cxl/test: Mock acpi_table_parse_cedt()
Now that cxl_acpi has been converted to use the core ACPI CEDT sub-table
parser, update cxl_test to inject CFMWS and CHBS data directly into
cxl_acpi's handlers.
Cc: Alison Schofield <alison.schofield@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/163553711363.2509508.17428994087868269952.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/cxl/test/mock.h')
-rw-r--r-- | tools/testing/cxl/test/mock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/cxl/test/mock.h b/tools/testing/cxl/test/mock.h index 805a94cb3fbe..15ed0fd877e4 100644 --- a/tools/testing/cxl/test/mock.h +++ b/tools/testing/cxl/test/mock.h @@ -6,9 +6,9 @@ struct cxl_mock_ops { struct list_head list; bool (*is_mock_adev)(struct acpi_device *dev); - acpi_status (*acpi_get_table)(char *signature, u32 instance, - struct acpi_table_header **out_table); - void (*acpi_put_table)(struct acpi_table_header *table); + int (*acpi_table_parse_cedt)(enum acpi_cedt_type id, + acpi_tbl_entry_handler_arg handler_arg, + void *arg); bool (*is_mock_bridge)(struct device *dev); acpi_status (*acpi_evaluate_integer)(acpi_handle handle, acpi_string pathname, |