reactos/reactos/include/ddk/halfuncs.h
Casper Hornstrup 2d947f6f92 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
Changes for compiling with w32api

	* include/ddk/haltypes.h: Move ...
	* include/ntos/haltypes.h: ... here.
	* include/ddk/obtypes.h: Move ...
	* include/ntos/obtypes.h: ... here.
	* include/ddk/i386/tss.h: Move ...
	* include/ntos/tss.h: ... here.
	* include/errors.h, include/windows.h: #include_next <windows.h>.
	* include/ntos.h: Include "ntos/haltypes.h", "ntos/obtypes.h", and
	"ntos/tss.h".
	* include/ddk/defines.h (EXPORTED, IMPORTED): Move to
	include/ntos/types.h.
	* include/ddk/exfuncs.h, include/ddk/mmtypes.h, include/ntos/except.h,
	include/ntos/file.h, include/ole32/guiddef.h, include/win32k/color.h,
	lib/msafd/include/debug.h, lib/user32/include/debug.h,
	lib/ws2_32/include/debug.h, lib/ws2help/debug.h,
	ntoskrnl/include/internal/debug.h, ntoskrnl/ke/i386/bthread.S,
	ntoskrnl/rtl/error.c: Don't define macros if previously defined.
	* include/ddk/halfuncs.h: Include <ntos/haltypes.h>.
	* include/ddk/iotypes.h: Include <ntos/obtypes.h>.
	* include/ddk/ketypes.h (MB_FLAGS_*, LOADER_MODULE, ADDRESS_RANGE,
	LOADER_PARAMETER_BLOCK): Move to include/ntos/types.h.
	* include/ddk/ntddk.h: #include_next <ddk/ntddk.h>.
	* include/ddk/ntifs.h: #include_next <ddk/ntifs.h>.
	* include/napi/shared_data.h (SharedUserData): Undefine before defining.
	* include/ntos/rtl.h (RtlUpcaseUnicodeString): Correct prototype.
	* include/ntos/zwtypes.h (THREAD_STATE): Add.
	* lib/ntdll/rtl/unicode.c (RtlUpcaseUnicodeString): Match new prototype.
	* ntoskrnl/rtl/unicode.c (RtlUpcaseUnicodeString): Ditto.
	* lib/string/Makefile: Include Makefile.$(ARCH). Don't include
	makefile.$(ARCH).
	* ntoskrnl/ex/sysinfo.c, ntoskrnl/include/internal/ntoskrnl.h,
	* ntoskrnl/include/internal/ob.h, ntoskrnl/ob/handle.c: Include <ntos.h>.
	* ntoskrnl/ke/i386/syscall.S: Don't include <ddk/defines.h>.
	(KernelMode, UserMode): Define.
	* ntoskrnl/ke/i386/stkswitch.S, ntoskrnl/ke/i386/tskswitch.S,
	ntoskrnl/ke/i386/v86m_sup.S: Include <ntos/tss.h>

svn path=/trunk/; revision=4789
2003-05-28 18:09:10 +00:00

319 lines
6.1 KiB
C

#ifndef __INCLUDE_DDK_HALFUNCS_H
#define __INCLUDE_DDK_HALFUNCS_H
/* $Id: halfuncs.h,v 1.5 2003/05/28 18:09:09 chorns Exp $ */
#include <ntos/haltypes.h>
VOID STDCALL
HalAcquireDisplayOwnership(IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
NTSTATUS STDCALL
HalAdjustResourceList(PCM_RESOURCE_LIST Resources);
NTSTATUS STDCALL
HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject,
IN PDEVICE_OBJECT DeviceObject,
IN ULONG NumberOfMapRegisters,
IN PDRIVER_CONTROL ExecutionRoutine,
IN PVOID Context);
PVOID STDCALL
HalAllocateCommonBuffer(PADAPTER_OBJECT AdapterObject,
ULONG Length,
PPHYSICAL_ADDRESS LogicalAddress,
BOOLEAN CacheEnabled);
PVOID STDCALL
HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject,
IN OUT PULONG NumberOfMapRegisters);
BOOLEAN STDCALL
HalAllProcessorsStarted(VOID);
NTSTATUS STDCALL
HalAssignSlotResources(
PUNICODE_STRING RegistryPath,
PUNICODE_STRING DriverClassName,
PDRIVER_OBJECT DriverObject,
PDEVICE_OBJECT DeviceObject,
INTERFACE_TYPE BusType,
ULONG BusNumber,
ULONG SlotNumber,
PCM_RESOURCE_LIST *AllocatedResources
);
BOOLEAN STDCALL
HalBeginSystemInterrupt(ULONG Vector,
KIRQL Irql,
PKIRQL OldIrql);
VOID STDCALL
HalCalibratePerformanceCounter(ULONG Count);
/*
FASTCALL
HalClearSoftwareInterrupt
*/
BOOLEAN STDCALL
HalDisableSystemInterrupt(ULONG Vector,
ULONG Unknown2);
VOID STDCALL
HalDisplayString(IN PCH String);
BOOLEAN STDCALL
HalEnableSystemInterrupt(ULONG Vector,
ULONG Unknown2,
ULONG Unknown3);
VOID STDCALL
HalEndSystemInterrupt(KIRQL Irql,
ULONG Unknown2);
/*
* HalExamineMBR() is not exported explicitly.
* It is exported by the HalDispatchTable.
*
* VOID
* HalExamineMBR(PDEVICE_OBJECT DeviceObject,
* ULONG SectorSize,
* ULONG MBRTypeIdentifier,
* PVOID Buffer);
*/
BOOLEAN STDCALL
HalFlushCommonBuffer(ULONG Unknown1,
ULONG Unknown2,
ULONG Unknown3,
ULONG Unknown4,
ULONG Unknown5,
ULONG Unknown6,
ULONG Unknown7,
ULONG Unknown8);
VOID STDCALL
HalFreeCommonBuffer(PADAPTER_OBJECT AdapterObject,
ULONG Length,
PHYSICAL_ADDRESS LogicalAddress,
PVOID VirtualAddress,
BOOLEAN CacheEnabled);
PADAPTER_OBJECT STDCALL
HalGetAdapter(PDEVICE_DESCRIPTION DeviceDescription,
PULONG NumberOfMapRegisters);
ULONG STDCALL
HalGetBusData(BUS_DATA_TYPE BusDataType,
ULONG BusNumber,
ULONG SlotNumber,
PVOID Buffer,
ULONG Length);
ULONG STDCALL
HalGetBusDataByOffset(BUS_DATA_TYPE BusDataType,
ULONG BusNumber,
ULONG SlotNumber,
PVOID Buffer,
ULONG Offset,
ULONG Length);
/* Is this function really exported ?? */
ULONG
HalGetDmaAlignmentRequirement(VOID);
BOOLEAN STDCALL
HalGetEnvironmentVariable(IN PCH Name,
OUT PCH Value,
IN USHORT ValueLength);
ULONG STDCALL
HalGetInterruptVector(INTERFACE_TYPE InterfaceType,
ULONG BusNumber,
ULONG BusInterruptLevel,
ULONG BusInterruptVector,
PKIRQL Irql,
PKAFFINITY Affinity);
VOID STDCALL
HalInitializeProcessor(ULONG ProcessorNumber,
PVOID ProcessorStack);
BOOLEAN STDCALL
HalInitSystem(ULONG BootPhase,
PLOADER_PARAMETER_BLOCK LoaderBlock);
BOOLEAN STDCALL
HalMakeBeep(ULONG Frequency);
VOID STDCALL
HalQueryDisplayParameters(PULONG DispSizeX,
PULONG DispSizeY,
PULONG CursorPosX,
PULONG CursorPosY);
VOID STDCALL
HalQueryRealTimeClock(PTIME_FIELDS Time);
/*
* HalQuerySystemInformation() is not exported explicitly.
* It is exported by the HalDispatchTable.
*
* VOID
* HalQuerySystemInformation(VOID);
*/
ULONG STDCALL
HalReadDmaCounter(PADAPTER_OBJECT AdapterObject);
VOID STDCALL
HalReportResourceUsage(VOID);
VOID STDCALL
HalRequestIpi(ULONG Unknown);
/*
FASTCALL
HalRequestSoftwareInterrupt
*/
VOID STDCALL
HalReturnToFirmware(ULONG Action);
ULONG STDCALL
HalSetBusData(BUS_DATA_TYPE BusDataType,
ULONG BusNumber,
ULONG SlotNumber,
PVOID Buffer,
ULONG Length);
ULONG STDCALL
HalSetBusDataByOffset(BUS_DATA_TYPE BusDataType,
ULONG BusNumber,
ULONG SlotNumber,
PVOID Buffer,
ULONG Offset,
ULONG Length);
VOID STDCALL
HalSetDisplayParameters(ULONG CursorPosX,
ULONG CursorPosY);
BOOLEAN STDCALL
HalSetEnvironmentVariable(IN PCH Name,
IN PCH Value);
/*
HalSetProfileInterval
*/
VOID STDCALL
HalSetRealTimeClock(PTIME_FIELDS Time);
/*
HalSetTimeIncrement
*/
BOOLEAN STDCALL
HalStartNextProcessor(ULONG Unknown1,
ULONG Unknown2);
/*
HalStartProfileInterrupt
*/
/*
HalStopProfileInterrupt
*/
ULONG FASTCALL
HalSystemVectorDispatchEntry(ULONG Unknown1,
ULONG Unknown2,
ULONG Unknown3);
BOOLEAN STDCALL
HalTranslateBusAddress(INTERFACE_TYPE InterfaceType,
ULONG BusNumber,
PHYSICAL_ADDRESS BusAddress,
PULONG AddressSpace,
PPHYSICAL_ADDRESS TranslatedAddress);
/*
* Kernel debugger support functions
*/
BOOLEAN STDCALL
KdPortInitialize(PKD_PORT_INFORMATION PortInformation,
DWORD Unknown1,
DWORD Unknown2);
BOOLEAN STDCALL
KdPortGetByte(PUCHAR ByteRecieved);
BOOLEAN STDCALL
KdPortPollByte(PUCHAR ByteRecieved);
VOID STDCALL
KdPortPutByte(UCHAR ByteToSend);
/*
* Port I/O functions
*/
VOID STDCALL
READ_PORT_BUFFER_UCHAR(PUCHAR Port,
PUCHAR Value,
ULONG Count);
VOID STDCALL
READ_PORT_BUFFER_ULONG(PULONG Port,
PULONG Value,
ULONG Count);
VOID STDCALL
READ_PORT_BUFFER_USHORT(PUSHORT Port,
PUSHORT Value,
ULONG Count);
UCHAR STDCALL
READ_PORT_UCHAR(PUCHAR Port);
ULONG STDCALL
READ_PORT_ULONG(PULONG Port);
USHORT STDCALL
READ_PORT_USHORT(PUSHORT Port);
VOID STDCALL
WRITE_PORT_BUFFER_UCHAR(PUCHAR Port,
PUCHAR Value,
ULONG Count);
VOID STDCALL
WRITE_PORT_BUFFER_ULONG(PULONG Port,
PULONG Value,
ULONG Count);
VOID STDCALL
WRITE_PORT_BUFFER_USHORT(PUSHORT Port,
PUSHORT Value,
ULONG Count);
VOID STDCALL
WRITE_PORT_UCHAR(PUCHAR Port,
UCHAR Value);
VOID STDCALL
WRITE_PORT_ULONG(PULONG Port,
ULONG Value);
VOID STDCALL
WRITE_PORT_USHORT(PUSHORT Port,
USHORT Value);
#endif /* __INCLUDE_DDK_HALDDK_H */
/* EOF */