mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.2 KiB
86 lines
1.2 KiB
#if defined (JENSEN)
|
|
|
|
/*++
|
|
|
|
Copyright (c) 1992 Digital Equipment Corporation
|
|
|
|
Module Name:
|
|
|
|
jxmapio.c
|
|
|
|
Abstract:
|
|
|
|
This maps I/O addresses used by the HAL on Alpha/Jensen.
|
|
|
|
Author:
|
|
|
|
Jeff McLeman (mcleman) 24-Jun-1992
|
|
|
|
Environment:
|
|
|
|
Kernel mode
|
|
|
|
Revision History:
|
|
|
|
12-Jul-1992 Jeff McLeman (mcleman)
|
|
Remove RTC mapping since this is done with VTI access routines.
|
|
|
|
--*/
|
|
|
|
#include "halp.h"
|
|
#include "jnsndef.h"
|
|
|
|
//
|
|
// Define global data used to locate the EISA control space.
|
|
//
|
|
|
|
PVOID HalpEisaControlBase;
|
|
|
|
BOOLEAN
|
|
HalpMapIoSpace (
|
|
VOID
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This routine maps the HAL I/O space for an Alpha/Jensen
|
|
system using the Quasi VA.
|
|
|
|
Arguments:
|
|
|
|
None.
|
|
|
|
Return Value:
|
|
|
|
If the initialization is successfully completed, than a value of TRUE
|
|
is returned. Otherwise, a value of FALSE is returned.
|
|
|
|
--*/
|
|
|
|
{
|
|
|
|
//
|
|
// Map EISA control space.
|
|
//
|
|
|
|
|
|
|
|
HalpEisaControlBase = (PVOID)DMA_VIRTUAL_BASE;
|
|
|
|
|
|
//
|
|
// If mapped address is NULL, then return FALSE as the function
|
|
// value. Otherwise, return TRUE.
|
|
//
|
|
|
|
if (HalpEisaControlBase == NULL) {
|
|
return FALSE;
|
|
|
|
} else {
|
|
return TRUE;
|
|
}
|
|
}
|
|
|
|
#endif
|