aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/cxl/test/mock.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2021-10-29 12:51:53 -0700
committerDan Williams <dan.j.williams@intel.com>2021-11-15 11:03:00 -0800
commit814dff9ae234d70003b8733a637fec621c90f0bc (patch)
treea6ca7b056fe30c97f28b289476a62e6e7bf19843 /tools/testing/cxl/test/mock.h
parentcxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers (diff)
downloadlinux-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.h6
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,