mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
QAT in-tree driver ported from out-of-tree release available from 01.org. The driver exposes complete cryptography and data compression API in the kernel and integrates with Open Crypto Framework. Details of supported operations, devices and usage can be found in man and on 01.org. Patch co-authored by: Krzysztof Zdziarski <krzysztofx.zdziarski@intel.com> Patch co-authored by: Michal Jaraczewski <michalx.jaraczewski@intel.com> Patch co-authored by: Michal Gulbicki <michalx.gulbicki@intel.com> Patch co-authored by: Julian Grajkowski <julianx.grajkowski@intel.com> Patch co-authored by: Piotr Kasierski <piotrx.kasierski@intel.com> Patch co-authored by: Adam Czupryna <adamx.czupryna@intel.com> Patch co-authored by: Konrad Zelazny <konradx.zelazny@intel.com> Patch co-authored by: Katarzyna Rucinska <katarzynax.kargol@intel.com> Patch co-authored by: Lukasz Kolodzinski <lukaszx.kolodzinski@intel.com> Patch co-authored by: Zbigniew Jedlinski <zbigniewx.jedlinski@intel.com> Reviewed by: markj, jhb (OCF integration) Reviewed by: debdrup, pauamma (docs) Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34632
33 lines
951 B
C
33 lines
951 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
/* Copyright(c) 2007-2022 Intel Corporation */
|
|
/* $FreeBSD$ */
|
|
#ifndef ADF_HEARTBEAT_H_
|
|
#define ADF_HEARTBEAT_H_
|
|
|
|
#include "adf_cfg_common.h"
|
|
|
|
struct adf_accel_dev;
|
|
|
|
struct qat_sysctl {
|
|
unsigned int hb_sysctlvar;
|
|
struct sysctl_oid *oid;
|
|
};
|
|
|
|
struct adf_heartbeat {
|
|
unsigned int hb_sent_counter;
|
|
unsigned int hb_failed_counter;
|
|
u64 last_hb_check_time;
|
|
enum adf_device_heartbeat_status last_hb_status;
|
|
struct qat_sysctl heartbeat;
|
|
struct qat_sysctl *heartbeat_sent;
|
|
struct qat_sysctl *heartbeat_failed;
|
|
};
|
|
|
|
int adf_heartbeat_init(struct adf_accel_dev *accel_dev);
|
|
void adf_heartbeat_clean(struct adf_accel_dev *accel_dev);
|
|
|
|
int adf_get_hb_timer(struct adf_accel_dev *accel_dev, unsigned int *value);
|
|
int adf_get_heartbeat_status(struct adf_accel_dev *accel_dev);
|
|
int adf_heartbeat_status(struct adf_accel_dev *accel_dev,
|
|
enum adf_device_heartbeat_status *hb_status);
|
|
#endif /* ADF_HEARTBEAT_H_ */
|