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_fw_counters.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_FW_COUNTERS_H_
    5 #define ADF_FW_COUNTERS_H_
    6 
    7 #include <linux/rwsem.h>
    8 #include "adf_accel_devices.h"
    9 
   10 #define FW_COUNTERS_MAX_STR_LEN 64
   11 #define FW_COUNTERS_MAX_KEY_LEN_IN_BYTES FW_COUNTERS_MAX_STR_LEN
   12 #define FW_COUNTERS_MAX_VAL_LEN_IN_BYTES FW_COUNTERS_MAX_STR_LEN
   13 #define FW_COUNTERS_MAX_SECTION_LEN_IN_BYTES FW_COUNTERS_MAX_STR_LEN
   14 #define ADF_FW_COUNTERS_NO_RESPONSE -1
   15 
   16 struct adf_fw_counters_val {
   17         char key[FW_COUNTERS_MAX_KEY_LEN_IN_BYTES];
   18         char val[FW_COUNTERS_MAX_VAL_LEN_IN_BYTES];
   19         struct list_head list;
   20 };
   21 
   22 struct adf_fw_counters_section {
   23         char name[FW_COUNTERS_MAX_SECTION_LEN_IN_BYTES];
   24         struct list_head list;
   25         struct list_head param_head;
   26 };
   27 
   28 struct adf_fw_counters_data {
   29         struct list_head ae_sec_list;
   30         struct sysctl_oid *debug;
   31         struct rw_semaphore lock;
   32 };
   33 
   34 int adf_fw_counters_add(struct adf_accel_dev *accel_dev);
   35 void adf_fw_counters_remove(struct adf_accel_dev *accel_dev);
   36 int adf_fw_count_ras_event(struct adf_accel_dev *accel_dev,
   37                            u32 *ras_event,
   38                            char *aeidstr);
   39 
   40 #endif /* ADF_FW_COUNTERS_H_ */

Cache object: c2df8ea613065dbadab51feb9450018a


[ 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.