summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-07-28 07:57:48 +0000
committerdfr <dfr@FreeBSD.org>1999-07-28 07:57:48 +0000
commit37dec27558a97e62dc2669724f0b5a5c01f68004 (patch)
tree5672adb8a1af1c7d22f04417b999392ec13d2791 /sys/pci/pci.c
parentebe74fdfd56f23f10570dee683db44117f20e4f8 (diff)
downloadFreeBSD-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/pci/pci.c')
-rw-r--r--sys/pci/pci.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index c2091f3..c6184da 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci.c,v 1.111 1999/07/27 04:28:14 mdodd Exp $
+ * $Id: pci.c,v 1.112 1999/07/27 05:08:36 mdodd Exp $
*
*/
@@ -1333,6 +1333,10 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
case SYS_RES_DRQ: /* passthru for child isa */
break;
+#ifdef __alpha__
+ case SYS_RES_DENSE:
+ case SYS_RES_BWX:
+#endif
case SYS_RES_MEMORY:
if (isdefault) {
map = pci_mapno(cfg, *rid);
@@ -1389,6 +1393,10 @@ pci_release_resource(device_t dev, device_t child, int type, int rid,
case SYS_RES_DRQ: /* passthru for child isa */
break;
+#ifdef __alpha__
+ case SYS_RES_DENSE:
+ case SYS_RES_BWX:
+#endif
case SYS_RES_MEMORY:
case SYS_RES_IOPORT:
/*
@@ -1416,6 +1424,10 @@ pci_release_resource(device_t dev, device_t child, int type, int rid,
case SYS_RES_DRQ: /* passthru for child isa */
break;
+#ifdef __alpha__
+ case SYS_RES_DENSE:
+ case SYS_RES_BWX:
+#endif
case SYS_RES_MEMORY:
case SYS_RES_IOPORT:
if (map != -1)
OpenPOWER on IntegriCloud