linux/drivers/platform/x86/intel/pmt/class.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _INTEL_PMT_CLASS_H
#define _INTEL_PMT_CLASS_H

#include <linux/xarray.h>
#include <linux/types.h>
#include <linux/bits.h>
#include <linux/err.h>
#include <linux/io.h>

#include "../vsec.h"
#include "telemetry.h"

/* PMT access types */
#define ACCESS_BARID
#define ACCESS_LOCAL

/* PMT discovery base address/offset register layout */
#define GET_BIR(v)
#define GET_ADDRESS(v)

struct pci_dev;

struct telem_endpoint {};

struct intel_pmt_header {};

struct intel_pmt_entry {};

struct intel_pmt_namespace {};

bool intel_pmt_is_early_client_hw(struct device *dev);
int intel_pmt_dev_create(struct intel_pmt_entry *entry,
			 struct intel_pmt_namespace *ns,
			 struct intel_vsec_device *dev, int idx);
void intel_pmt_dev_destroy(struct intel_pmt_entry *entry,
			   struct intel_pmt_namespace *ns);
#endif