Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

112 lines
1.9 KiB

/*++
Copyright (C) 1991-1995 Microsoft Corporation
Module Name:
ioproc.c
Abstract:
Stub functions for UP hals.
Environment:
Kernel mode only.
--*/
#include "halp.h"
#include "iousage.h"
UCHAR HalName[] = "DeskStation Technology UniFlex PCI/Eisa/Isa HAL";
VOID
HalpInitializePCIBus (
VOID
);
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,HalStartNextProcessor)
#pragma alloc_text(INIT,HalReportResourceUsage)
#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
}
BOOLEAN
HalStartNextProcessor (
IN PLOADER_PARAMETER_BLOCK pLoaderBlock,
IN PKPROCESSOR_STATE pProcessorState
)
{
// no other processors
return FALSE;
}
VOID
HalReportResourceUsage (
VOID
)
{
INTERFACE_TYPE interfacetype;
ANSI_STRING AHalName;
UNICODE_STRING UHalName;
switch (HalpBusType) {
case UNIFLEX_MACHINE_TYPE_ISA:
case UNIFLEX_MACHINE_TYPE_EISA: interfacetype = Isa; break;
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
}