mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[HAL]: Implement ISA BUS address translation.
svn path=/trunk/; revision=47678
This commit is contained in:
parent
fc0a9b1bef
commit
0ae7a75158
1 changed files with 22 additions and 3 deletions
|
@ -24,9 +24,28 @@ HalpTranslateIsaBusAddress(IN PBUS_HANDLER BusHandler,
|
|||
IN OUT PULONG AddressSpace,
|
||||
OUT PPHYSICAL_ADDRESS TranslatedAddress)
|
||||
{
|
||||
DPRINT1("ISA Translate\n");
|
||||
while (TRUE);
|
||||
return FALSE;
|
||||
BOOLEAN Status;
|
||||
|
||||
/* Use system translation */
|
||||
Status = HalpTranslateSystemBusAddress(BusHandler,
|
||||
RootHandler,
|
||||
BusAddress,
|
||||
AddressSpace,
|
||||
TranslatedAddress);
|
||||
|
||||
/* If it didn't work and it was memory address space... */
|
||||
if (!(Status) && (*AddressSpace == 0))
|
||||
{
|
||||
/* Try EISA translation instead */
|
||||
Status = HalTranslateBusAddress(Eisa,
|
||||
BusHandler->BusNumber,
|
||||
BusAddress,
|
||||
AddressSpace,
|
||||
TranslatedAddress);
|
||||
}
|
||||
|
||||
/* Return the result */
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue