diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:55:38 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:55:38 +0000 |
| commit | fc6511217bdfdc36d7a0df332ec293a1f094be1d (patch) | |
| tree | 8b910f37767b67301e4b7d4ca78b00186410d18b /sys/external | |
| parent | 97188cbbd5557570c09523d04cd0830222d67584 (diff) | |
linux: Define IORESOURCE_* to be bits, not indices.
Diffstat (limited to 'sys/external')
| -rw-r--r-- | sys/external/bsd/drm2/include/linux/ioport.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/external/bsd/drm2/include/linux/ioport.h b/sys/external/bsd/drm2/include/linux/ioport.h index 532c214d042..60b90eeb7a4 100644 --- a/sys/external/bsd/drm2/include/linux/ioport.h +++ b/sys/external/bsd/drm2/include/linux/ioport.h @@ -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; |
