The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/qat/include/adf_heartbeat.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: BSD-3-Clause */
    2 /* Copyright(c) 2007-2022 Intel Corporation */
    3 /* $FreeBSD$ */
    4 #ifndef ADF_HEARTBEAT_H_
    5 #define ADF_HEARTBEAT_H_
    6 
    7 #include "adf_cfg_common.h"
    8 
    9 struct adf_accel_dev;
   10 
   11 struct qat_sysctl {
   12         unsigned int hb_sysctlvar;
   13         struct sysctl_oid *oid;
   14 };
   15 
   16 struct adf_heartbeat {
   17         unsigned int hb_sent_counter;
   18         unsigned int hb_failed_counter;
   19         u64 last_hb_check_time;
   20         enum adf_device_heartbeat_status last_hb_status;
   21         struct qat_sysctl heartbeat;
   22         struct qat_sysctl *heartbeat_sent;
   23         struct qat_sysctl *heartbeat_failed;
   24 };
   25 
   26 int adf_heartbeat_init(struct adf_accel_dev *accel_dev);
   27 void adf_heartbeat_clean(struct adf_accel_dev *accel_dev);
   28 
   29 int adf_get_hb_timer(struct adf_accel_dev *accel_dev, unsigned int *value);
   30 int adf_get_heartbeat_status(struct adf_accel_dev *accel_dev);
   31 int adf_heartbeat_status(struct adf_accel_dev *accel_dev,
   32                          enum adf_device_heartbeat_status *hb_status);
   33 #endif /* ADF_HEARTBEAT_H_ */

Cache object: 0625cbe8c66c97a3cddd1e846156f3dd


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.