NT4/private/ntos/nthals/halalpha/ioproc.c
2020-09-30 17:12:29 +02:00

105 lines
1.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
ioproc.c
Abstract:
Stub functions for UP hals.
Author:
Ken Reneris (kenr) 22-Jan-1991
Environment:
Kernel mode only.
Revision History:
Added to Avanti Hals (Sameer Dekate) 04-May-1994
--*/
#include "halp.h"
#include "iousage.h"
UCHAR HalName[] = "Alpha Compatible PCI/Eisa/Isa HAL";
BOOLEAN
HalpInitMP (
IN ULONG Phase,
IN PLOADER_PARAMETER_BLOCK LoaderBlock
);
VOID HalpInitializePciBuses (VOID);
VOID HalpInitOtherBuses (VOID);
#ifdef ALLOC_PRAGMA
#pragma alloc_text(INIT,HalpInitMP)
#pragma alloc_text(INIT,HalReportResourceUsage)
#pragma alloc_text(INIT,HalpInitOtherBuses)
#endif
BOOLEAN
HalpInitMP (
IN ULONG Phase,
IN PLOADER_PARAMETER_BLOCK LoaderBlock
)
{
return TRUE;
// do nothing
}
VOID
HalpResetAllProcessors (
VOID
)
{
// Just return, that will invoke the standard PC reboot code
}
VOID
HalReportResourceUsage (
VOID
)
{
INTERFACE_TYPE interfacetype;
ANSI_STRING AHalName;
UNICODE_STRING UHalName;
switch (HalpBusType) {
case MACHINE_TYPE_ISA: interfacetype = Isa; break;
case MACHINE_TYPE_EISA: interfacetype = Eisa; break;
#if 0
case MACHINE_TYPE_MCA: interfacetype = MicroChannel; break;
#endif // 0
default: interfacetype = Internal; break;
}
RtlInitAnsiString (&AHalName, HalName);
RtlAnsiStringToUnicodeString (&UHalName, &AHalName, TRUE);
HalpReportResourceUsage (
&UHalName, // descriptive name
interfacetype // device space interface type
);
RtlFreeUnicodeString (&UHalName);
}
VOID
HalpInitOtherBuses (
VOID
)
{
// no other internal buses supported
}