Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux linux: Define PCI_CLASS_...



details:   https://anonhg.NetBSD.org/src/rev/253222cafe7f
branches:  trunk
changeset: 362442:253222cafe7f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 27 14:23:08 2022 +0000

description:
linux: Define PCI_CLASS_DISPLAY_OTHER, wanted by radeon/amdgpu.

diffstat:

 sys/external/bsd/drm2/include/linux/pci.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9de0b7327c1c -r 253222cafe7f sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Sun Feb 27 14:22:50 2022 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Sun Feb 27 14:23:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.h,v 1.52 2022/02/27 14:22:29 riastradh Exp $       */
+/*     $NetBSD: pci.h,v 1.53 2022/02/27 14:23:08 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -90,6 +90,12 @@
 
 #define        PCI_CLASS_DISPLAY_VGA                                           \
        ((PCI_CLASS_DISPLAY << 8) | PCI_SUBCLASS_DISPLAY_VGA)
+CTASSERT(PCI_CLASS_DISPLAY_VGA == 0x0300);
+
+#define        PCI_CLASS_DISPLAY_OTHER                                         \
+       ((PCI_CLASS_DISPLAY << 8) | PCI_SUBCLASS_DISPLAY_MISC)
+CTASSERT(PCI_CLASS_DISPLAY_OTHER == 0x0380);
+
 #define        PCI_CLASS_BRIDGE_ISA                                            \
        ((PCI_CLASS_BRIDGE << 8) | PCI_SUBCLASS_BRIDGE_ISA)
 CTASSERT(PCI_CLASS_BRIDGE_ISA == 0x0601);



Home | Main Index | Thread Index | Old Index