platform/x86/intel/pmt: telemetry: Export API to read telemetry
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 29 Nov 2023 22:21:22 +0000 (14:21 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 13:53:43 +0000 (14:53 +0100)
commit416eeb2e1fc7b60ab0c7ced26ab966dd7733357d
tree9e4b2f3266b94d3e53978815b372188c25bfb0f9
parent4d1b7efee3fc703c64bacc37c4824888c5f26e8b
platform/x86/intel/pmt: telemetry: Export API to read telemetry

Export symbols to allow access to Intel PMT Telemetry data on available
devices. Provides APIs to search, register, and read telemetry using a
kref managed pointer that serves as a handle to a telemetry endpoint.
To simplify searching for present devices, have the IDA start at 1
instead of 0 so that 0 can be used to indicate end of search.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129222132.2331261-11-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmt/class.c
drivers/platform/x86/intel/pmt/class.h
drivers/platform/x86/intel/pmt/telemetry.c
drivers/platform/x86/intel/pmt/telemetry.h [new file with mode: 0644]