mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
75 lines
1.6 KiB
C
75 lines
1.6 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: ntoskrnl/hal/isa.c
|
|
* PURPOSE: Interfaces to the ISA bus
|
|
* PROGRAMMER: David Welch (welch@mcmail.com)
|
|
* UPDATE HISTORY:
|
|
* 05/06/98: Created
|
|
*/
|
|
|
|
/* INCLUDES ***************************************************************/
|
|
|
|
#include <hal.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
BOOLEAN HalIsaProbe(VOID)
|
|
/*
|
|
* FUNCTION: Probes for an ISA bus
|
|
* RETURNS: True if detected
|
|
* NOTE: Since ISA is the default we are called last and always return
|
|
* true
|
|
*/
|
|
{
|
|
DbgPrint("Assuming ISA bus\n");
|
|
|
|
/*
|
|
* Probe for plug and play support
|
|
*/
|
|
return(TRUE);
|
|
}
|
|
|
|
|
|
BOOLEAN NTAPI
|
|
HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler,
|
|
ULONG BusNumber,
|
|
PHYSICAL_ADDRESS BusAddress,
|
|
PULONG AddressSpace,
|
|
PPHYSICAL_ADDRESS TranslatedAddress)
|
|
{
|
|
BOOLEAN Result;
|
|
|
|
Result = HalTranslateBusAddress(PCIBus,
|
|
BusNumber,
|
|
BusAddress,
|
|
AddressSpace,
|
|
TranslatedAddress);
|
|
if (Result != FALSE)
|
|
return Result;
|
|
|
|
Result = HalTranslateBusAddress(Internal,
|
|
BusNumber,
|
|
BusAddress,
|
|
AddressSpace,
|
|
TranslatedAddress);
|
|
return Result;
|
|
}
|
|
|
|
ULONG NTAPI
|
|
HalpGetIsaInterruptVector(PVOID BusHandler,
|
|
ULONG BusNumber,
|
|
ULONG BusInterruptLevel,
|
|
ULONG BusInterruptVector,
|
|
PKIRQL Irql,
|
|
PKAFFINITY Affinity)
|
|
{
|
|
ULONG Vector = IRQ2VECTOR(BusInterruptVector);
|
|
*Irql = VECTOR2IRQL(Vector);
|
|
*Affinity = 0xFFFFFFFF;
|
|
return Vector;
|
|
}
|
|
/* EOF */
|