xref: /freebsd/sys/dev/iavf/iavf_drv_info.h (revision a2f733abcff64628b7771a47089628b7327a88bd)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*  Copyright (c) 2021, Intel Corporation
3  *  All rights reserved.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions are met:
7  *
8  *   1. Redistributions of source code must retain the above copyright notice,
9  *      this list of conditions and the following disclaimer.
10  *
11  *   2. Redistributions in binary form must reproduce the above copyright
12  *      notice, this list of conditions and the following disclaimer in the
13  *      documentation and/or other materials provided with the distribution.
14  *
15  *   3. Neither the name of the Intel Corporation nor the names of its
16  *      contributors may be used to endorse or promote products derived from
17  *      this software without specific prior written permission.
18  *
19  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  *  POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 /**
33  * @file iavf_drv_info.h
34  * @brief device IDs and driver version
35  *
36  * Contains the device IDs tables and the driver version string.
37  *
38  * It must be included after iavf_legacy.h or iavf_iflib.h, and is expected to
39  * be included exactly once in the associated if_iavf file. Thus, it does not
40  * have the standard header guard.
41  */
42 
43 /**
44  * @var iavf_driver_version
45  * @brief driver version string
46  *
47  * Driver version information, used for display as part of an informational
48  * sysctl.
49  */
50 const char iavf_driver_version[] = "3.0.26-k";
51 
52 #define PVIDV(vendor, devid, name) \
53 	PVID(vendor, devid, name " - 3.0.26-k")
54 #define PVIDV_OEM(vendor, devid, svid, sdevid, revid, name) \
55 	PVID_OEM(vendor, devid, svid, sdevid, revid, name " - 3.0.26-k")
56 
57 /**
58  * @var iavf_vendor_info_array
59  * @brief array of PCI devices supported by this driver
60  *
61  * Array of PCI devices which are supported by this driver. Used to determine
62  * whether a given device should be loaded by this driver. This information is
63  * also exported as part of the module information for other tools to analyze.
64  *
65  * @remark Each type of device ID needs to be listed from most-specific entry
66  * to most-generic entry; e.g. PVIDV_OEM()s for a device ID must come before
67  * the PVIDV() for it.
68  */
69 static const pci_vendor_info_t iavf_vendor_info_array[] = {
70 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_VF,
71 	    "Intel(R) Ethernet Virtual Function 700 Series"),
72 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_X722_VF,
73 	    "Intel(R) Ethernet Virtual Function 700 Series (X722)"),
74 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_ADAPTIVE_VF,
75 	    "Intel(R) Ethernet Adaptive Virtual Function"),
76 	PVID_END
77 };
78