Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenisabus.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS HAL 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: hal/halx86/generic/bus/isabus.c 00005 * PURPOSE: 00006 * PROGRAMMERS: Stefan Ginsberg (stefan.ginsberg@reactos.org) 00007 */ 00008 00009 /* INCLUDES *******************************************************************/ 00010 00011 #include <hal.h> 00012 #define NDEBUG 00013 #include <debug.h> 00014 00015 /* GLOBALS ********************************************************************/ 00016 00017 /* PRIVATE FUNCTIONS **********************************************************/ 00018 00019 BOOLEAN 00020 NTAPI 00021 HalpTranslateIsaBusAddress(IN PBUS_HANDLER BusHandler, 00022 IN PBUS_HANDLER RootHandler, 00023 IN PHYSICAL_ADDRESS BusAddress, 00024 IN OUT PULONG AddressSpace, 00025 OUT PPHYSICAL_ADDRESS TranslatedAddress) 00026 { 00027 BOOLEAN Status; 00028 00029 /* Use system translation */ 00030 Status = HalpTranslateSystemBusAddress(BusHandler, 00031 RootHandler, 00032 BusAddress, 00033 AddressSpace, 00034 TranslatedAddress); 00035 00036 /* If it didn't work and it was memory address space... */ 00037 if (!(Status) && (*AddressSpace == 0)) 00038 { 00039 /* Try EISA translation instead */ 00040 Status = HalTranslateBusAddress(Eisa, 00041 BusHandler->BusNumber, 00042 BusAddress, 00043 AddressSpace, 00044 TranslatedAddress); 00045 } 00046 00047 /* Return the result */ 00048 return Status; 00049 } 00050 00051 /* EOF */ Generated on Sat May 26 2012 04:27:23 for ReactOS by
1.7.6.1
|