diff options
author | dfr <dfr@FreeBSD.org> | 1999-07-28 07:57:48 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-07-28 07:57:48 +0000 |
commit | 37dec27558a97e62dc2669724f0b5a5c01f68004 (patch) | |
tree | 5672adb8a1af1c7d22f04417b999392ec13d2791 /sys/amd64 | |
parent | ebe74fdfd56f23f10570dee683db44117f20e4f8 (diff) | |
download | FreeBSD-src-37dec27558a97e62dc2669724f0b5a5c01f68004.zip FreeBSD-src-37dec27558a97e62dc2669724f0b5a5c01f68004.tar.gz |
Add support for SYS_RES_DENSE and SYS_RES_BWX resource types. These are
equivalent to SYS_RES_MEMORY for x86 but for alpha, the rman_get_virtual()
address of the resource is initialised to point into either dense-mapped
or bwx-mapped space respectively, allowing direct memory pointers to be
used to device memory.
Reviewed by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/resource.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/amd64/include/resource.h b/sys/amd64/include/resource.h index 0307182..adcf0ce 100644 --- a/sys/amd64/include/resource.h +++ b/sys/amd64/include/resource.h @@ -35,9 +35,11 @@ * with support for legacy ISA devices and drivers. */ -#define SYS_RES_IRQ 1 -#define SYS_RES_DRQ 2 -#define SYS_RES_MEMORY 3 -#define SYS_RES_IOPORT 4 +#define SYS_RES_IRQ 1 /* interrupt lines */ +#define SYS_RES_DRQ 2 /* isa dma lines */ +#define SYS_RES_MEMORY 3 /* i/o memory */ +#define SYS_RES_IOPORT 4 /* i/o ports */ +#define SYS_RES_DENSE SYS_RES_MEMORY +#define SYS_RES_BWX SYS_RES_MEMORY #endif /* !_MACHINE_RESOURCE_H_ */ |