LCOV - code coverage report
Current view: top level - spdk/lib/env_dpdk - pci_virtio.c (source / functions) Hit Total Coverage
Test: Combined Lines: 1 3 33.3 %
Date: 2024-07-15 16:11:34 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*   SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  *   Copyright (C) 2017 Intel Corporation.
       3                 :            :  *   All rights reserved.
       4                 :            :  */
       5                 :            : 
       6                 :            : #include "env_internal.h"
       7                 :            : 
       8                 :            : #include "spdk/pci_ids.h"
       9                 :            : 
      10                 :            : static struct spdk_pci_id virtio_pci_driver_id[] = {
      11                 :            :         { SPDK_PCI_DEVICE(SPDK_PCI_VID_VIRTIO, PCI_DEVICE_ID_VIRTIO_SCSI_MODERN) },
      12                 :            :         { SPDK_PCI_DEVICE(SPDK_PCI_VID_VIRTIO, PCI_DEVICE_ID_VIRTIO_BLK_MODERN) },
      13                 :            :         { SPDK_PCI_DEVICE(SPDK_PCI_VID_VIRTIO, PCI_DEVICE_ID_VIRTIO_SCSI_LEGACY) },
      14                 :            :         { SPDK_PCI_DEVICE(SPDK_PCI_VID_VIRTIO, PCI_DEVICE_ID_VIRTIO_BLK_LEGACY) },
      15                 :            :         { .vendor_id = 0, /* sentinel */ },
      16                 :            : };
      17                 :            : 
      18                 :            : struct spdk_pci_driver *
      19                 :          0 : spdk_pci_virtio_get_driver(void)
      20                 :            : {
      21                 :          0 :         return spdk_pci_get_driver("virtio");
      22                 :            : }
      23                 :            : 
      24                 :       2879 : SPDK_PCI_DRIVER_REGISTER(virtio, virtio_pci_driver_id,
      25                 :            :                          SPDK_PCI_DRIVER_NEED_MAPPING | SPDK_PCI_DRIVER_WC_ACTIVATE);

Generated by: LCOV version 1.14