2013-03-14 21:04:13 +00:00
|
|
|
/*
|
2007-09-03 01:57:36 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
2015-11-04 13:30:52 +00:00
|
|
|
* FILE: hal/halppc/generic/isa.c
|
2007-09-03 01:57:36 +00:00
|
|
|
* 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");
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2007-09-03 01:57:36 +00:00
|
|
|
/*
|
|
|
|
* Probe for plug and play support
|
|
|
|
*/
|
|
|
|
return(TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-11-29 23:16:39 +00:00
|
|
|
BOOLEAN NTAPI
|
2007-09-03 01:57:36 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2008-11-29 23:16:39 +00:00
|
|
|
ULONG NTAPI
|
2007-09-03 01:57:36 +00:00
|
|
|
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 */
|