xref: /freebsd/sys/dev/iavf/iavf_drv_info.h (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
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 /*$FreeBSD$*/
32 
33 /**
34  * @file iavf_drv_info.h
35  * @brief device IDs and driver version
36  *
37  * Contains the device IDs tables and the driver version string.
38  *
39  * It must be included after iavf_legacy.h or iavf_iflib.h, and is expected to
40  * be included exactly once in the associated if_iavf file. Thus, it does not
41  * have the standard header guard.
42  */
43 
44 /**
45  * @var iavf_driver_version
46  * @brief driver version string
47  *
48  * Driver version information, used for display as part of an informational
49  * sysctl.
50  */
51 const char iavf_driver_version[] = "3.0.26-k";
52 
53 #define PVIDV(vendor, devid, name) \
54 	PVID(vendor, devid, name " - 3.0.26-k")
55 #define PVIDV_OEM(vendor, devid, svid, sdevid, revid, name) \
56 	PVID_OEM(vendor, devid, svid, sdevid, revid, name " - 3.0.26-k")
57 
58 /**
59  * @var iavf_vendor_info_array
60  * @brief array of PCI devices supported by this driver
61  *
62  * Array of PCI devices which are supported by this driver. Used to determine
63  * whether a given device should be loaded by this driver. This information is
64  * also exported as part of the module information for other tools to analyze.
65  *
66  * @remark Each type of device ID needs to be listed from most-specific entry
67  * to most-generic entry; e.g. PVIDV_OEM()s for a device ID must come before
68  * the PVIDV() for it.
69  */
70 static pci_vendor_info_t iavf_vendor_info_array[] = {
71 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_VF,
72 	    "Intel(R) Ethernet Virtual Function 700 Series"),
73 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_X722_VF,
74 	    "Intel(R) Ethernet Virtual Function 700 Series (X722)"),
75 	PVIDV(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_ADAPTIVE_VF,
76 	    "Intel(R) Ethernet Adaptive Virtual Function"),
77 	PVID_END
78 };
79