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 IORESOURCE...



details:   https://anonhg.NetBSD.org/src/rev/d5b8f694d5b9
branches:  trunk
changeset: 1028747:d5b8f694d5b9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:55:38 2021 +0000

description:
linux: Define IORESOURCE_* to be bits, not indices.

diffstat:

 sys/external/bsd/drm2/include/linux/ioport.h |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 135d859ad501 -r d5b8f694d5b9 sys/external/bsd/drm2/include/linux/ioport.h
--- a/sys/external/bsd/drm2/include/linux/ioport.h      Sun Dec 19 11:55:24 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ioport.h      Sun Dec 19 11:55:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ioport.h,v 1.6 2021/12/19 10:57:27 riastradh Exp $     */
+/*     $NetBSD: ioport.h,v 1.7 2021/12/19 11:55:38 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,9 +35,10 @@
 #include <sys/types.h>
 #include <sys/bus.h>
 
-#define        IORESOURCE_IO   0
-#define        IORESOURCE_MEM  1
-#define        IORESOURCE_IRQ  2
+#define        IORESOURCE_IO           __BIT(0)
+#define        IORESOURCE_MEM          __BIT(1)
+#define        IORESOURCE_IRQ          __BIT(2)
+#define        IORESOURCE_UNSET        __BIT(3)
 
 struct resource {
        bus_addr_t start;



Home | Main Index | Thread Index | Old Index