diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1999-07-28 07:57:48 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1999-07-28 07:57:48 +0000 |
commit | aa595accc9c977d6c3a31769fde1d0353385a3c1 (patch) | |
tree | d5127ba7582f545f27c0cfc4b1492d67f5337915 /sys/pci/pci.c | |
parent | 62562698d8d8c8e271fdb571402a7f913d794aca (diff) | |
download | src-aa595accc9c977d6c3a31769fde1d0353385a3c1.tar.gz src-aa595accc9c977d6c3a31769fde1d0353385a3c1.zip |
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>
Notes
Notes:
svn path=/head/; revision=49157
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r-- | sys/pci/pci.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c index c2091f325af0..c6184dac1b9f 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) |