The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5a402a3ae3975abb573ca9b53ff8cfe204c3771f

commit 5a402a3ae3975abb573ca9b53ff8cfe204c3771f
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2021-03-23 17:13:15 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2021-03-24 22:35:18 +0000

    LinuxKPI: add pci_ids.h
    
    brcm80211 include pci_ids.h directly while historically we were tracking
    IDs in pci.h.  Move the current set of IDs from pci.h to pci_ids.h and
    while here add IDs for Realtek and Broadcom as well as a network class
    as needed by their wireless drivers.
    
    We still include pci_ids.h from pci.h so this should not change anything.
    
    MFC-after:      2 weeks
    Reviewed-by:    hselasky
    Differential Revision:  https://reviews.freebsd.org/D29400
---
 sys/compat/linuxkpi/common/include/linux/pci.h     | 29 +--------
 sys/compat/linuxkpi/common/include/linux/pci_ids.h | 72 ++++++++++++++++++++++
 2 files changed, 73 insertions(+), 28 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h 
b/sys/compat/linuxkpi/common/include/linux/pci.h
index ddb3f0b222a5..7962da994854 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -54,6 +54,7 @@
 #include <linux/errno.h>
 #include <asm/atomic.h>
 #include <linux/device.h>
+#include <linux/pci_ids.h>
 
 struct pci_device_id {
        uint32_t        vendor;
@@ -67,35 +68,7 @@ struct pci_device_id {
 
 #define        MODULE_DEVICE_TABLE(bus, table)
 
-#define        PCI_BASE_CLASS_DISPLAY          0x03
-#define        PCI_CLASS_DISPLAY_VGA           0x0300
-#define        PCI_CLASS_DISPLAY_OTHER         0x0380
-#define        PCI_BASE_CLASS_BRIDGE           0x06
-#define        PCI_CLASS_BRIDGE_ISA            0x0601
-
 #define        PCI_ANY_ID                      -1U
-#define        PCI_VENDOR_ID_APPLE             0x106b
-#define        PCI_VENDOR_ID_ASUSTEK           0x1043
-#define        PCI_VENDOR_ID_ATI               0x1002
-#define        PCI_VENDOR_ID_DELL              0x1028
-#define        PCI_VENDOR_ID_HP                0x103c
-#define        PCI_VENDOR_ID_IBM               0x1014
-#define        PCI_VENDOR_ID_INTEL             0x8086
-#define        PCI_VENDOR_ID_MELLANOX                  0x15b3
-#define        PCI_VENDOR_ID_REDHAT_QUMRANET   0x1af4
-#define        PCI_VENDOR_ID_SERVERWORKS       0x1166
-#define        PCI_VENDOR_ID_SONY              0x104d
-#define        PCI_VENDOR_ID_TOPSPIN                   0x1867
-#define        PCI_VENDOR_ID_VIA               0x1106
-#define        PCI_SUBVENDOR_ID_REDHAT_QUMRANET        0x1af4
-#define        PCI_DEVICE_ID_ATI_RADEON_QY     0x5159
-#define        PCI_DEVICE_ID_MELLANOX_TAVOR            0x5a44
-#define        PCI_DEVICE_ID_MELLANOX_TAVOR_BRIDGE     0x5a46
-#define        PCI_DEVICE_ID_MELLANOX_ARBEL_COMPAT     0x6278
-#define        PCI_DEVICE_ID_MELLANOX_ARBEL            0x6282
-#define        PCI_DEVICE_ID_MELLANOX_SINAI_OLD        0x5e8c
-#define        PCI_DEVICE_ID_MELLANOX_SINAI            0x6274
-#define        PCI_SUBDEVICE_ID_QEMU           0x1100
 
 #define PCI_DEVFN(slot, func)   ((((slot) & 0x1f) << 3) | ((func) & 0x07))
 #define PCI_SLOT(devfn)                (((devfn) >> 3) & 0x1f)
diff --git a/sys/compat/linuxkpi/common/include/linux/pci_ids.h 
b/sys/compat/linuxkpi/common/include/linux/pci_ids.h
new file mode 100644
index 000000000000..519d1b6eb663
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/pci_ids.h
@@ -0,0 +1,72 @@
+/*-
+ * Copyright (c) 2010 Isilon Systems, Inc.
+ * Copyright (c) 2010 iX Systems, Inc.
+ * Copyright (c) 2010 Panasas, Inc.
+ * Copyright (c) 2013-2016 Mellanox Technologies, Ltd.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice unmodified, this list of conditions, and the following
+ *    disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef        _LINUXKPI_LINUX_PCI_IDS_H
+#define        _LINUXKPI_LINUX_PCI_IDS_H
+
+#define        PCI_CLASS_NETWORK_OTHER         0x0280
+
+#define        PCI_BASE_CLASS_DISPLAY          0x03
+#define        PCI_CLASS_DISPLAY_VGA           0x0300
+#define        PCI_CLASS_DISPLAY_OTHER         0x0380
+
+#define        PCI_BASE_CLASS_BRIDGE           0x06
+#define        PCI_CLASS_BRIDGE_ISA            0x0601
+
+
+/* XXX We should really generate these and use them throughout the tree. */
+
+#define        PCI_VENDOR_ID_APPLE             0x106b
+#define        PCI_VENDOR_ID_ASUSTEK           0x1043
+#define        PCI_VENDOR_ID_ATI               0x1002
+#define        PCI_VENDOR_ID_BROADCOM                  0x14e4
+#define        PCI_VENDOR_ID_DELL              0x1028
+#define        PCI_VENDOR_ID_HP                0x103c
+#define        PCI_VENDOR_ID_IBM               0x1014
+#define        PCI_VENDOR_ID_INTEL             0x8086
+#define        PCI_VENDOR_ID_MELLANOX                  0x15b3
+#define        PCI_VENDOR_ID_REALTEK                   0x10ec
+#define        PCI_VENDOR_ID_REDHAT_QUMRANET   0x1af4
+#define        PCI_VENDOR_ID_SERVERWORKS       0x1166
+#define        PCI_VENDOR_ID_SONY              0x104d
+#define        PCI_VENDOR_ID_TOPSPIN                   0x1867
+#define        PCI_VENDOR_ID_VIA               0x1106
+#define        PCI_SUBVENDOR_ID_REDHAT_QUMRANET        0x1af4
+#define        PCI_DEVICE_ID_ATI_RADEON_QY     0x5159
+#define        PCI_DEVICE_ID_MELLANOX_TAVOR            0x5a44
+#define        PCI_DEVICE_ID_MELLANOX_TAVOR_BRIDGE     0x5a46
+#define        PCI_DEVICE_ID_MELLANOX_ARBEL_COMPAT     0x6278
+#define        PCI_DEVICE_ID_MELLANOX_ARBEL            0x6282
+#define        PCI_DEVICE_ID_MELLANOX_SINAI_OLD        0x5e8c
+#define        PCI_DEVICE_ID_MELLANOX_SINAI            0x6274
+#define        PCI_SUBDEVICE_ID_QEMU           0x1100
+
+#endif /* _LINUXKPI_LINUX_PCI_IDS_H */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "[email protected]"

Reply via email to