LCOV - code coverage report
Current view: top level - lib/env_dpdk - pci_idxd.c (source / functions) Hit Total Coverage
Test: ut_cov_unit.info Lines: 0 3 0.0 %
Date: 2024-12-06 22:28:46 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*   SPDX-License-Identifier: BSD-3-Clause
       2             :  *   Copyright (C) 2020 Intel Corporation.
       3             :  *   All rights reserved.
       4             :  */
       5             : 
       6             : #include "env_internal.h"
       7             : 
       8             : #include "spdk/pci_ids.h"
       9             : 
      10             : #define SPDK_IDXD_PCI_DEVICE(DEVICE_ID) SPDK_PCI_DEVICE(SPDK_PCI_VID_INTEL, DEVICE_ID)
      11             : static struct spdk_pci_id idxd_driver_id[] = {
      12             :         {SPDK_IDXD_PCI_DEVICE(PCI_DEVICE_ID_INTEL_DSA)},
      13             :         {SPDK_IDXD_PCI_DEVICE(PCI_DEVICE_ID_INTEL_IAA)},
      14             :         { .vendor_id = 0, /* sentinel */ },
      15             : };
      16             : 
      17             : struct spdk_pci_driver *
      18           0 : spdk_pci_idxd_get_driver(void)
      19             : {
      20           0 :         return spdk_pci_get_driver("idxd");
      21             : }
      22             : 
      23           0 : SPDK_PCI_DRIVER_REGISTER(idxd, idxd_driver_id, SPDK_PCI_DRIVER_NEED_MAPPING);

Generated by: LCOV version 1.15