Some __stdcall declarations in ntoskrnl/hal.

A new include/ddk/kdfuncs.h header.

svn path=/trunk/; revision=1013
This commit is contained in:
Emanuele Aliberti 2000-02-26 22:41:35 +00:00
parent 4b80eae220
commit debfec7180
9 changed files with 127 additions and 61 deletions

View file

@ -0,0 +1,51 @@
#ifndef __INCLUDE_DDK_KDFUNCS_H
#define __INCLUDE_DDK_KDFUNCS_H
/* $Id: kdfuncs.h,v 1.1 2000/02/26 22:41:34 ea Exp $ */
/* --- NTOSKRNL.EXE --- */
extern BOOLEAN KdDebuggerEnabled;
extern BOOLEAN KdDebuggerNotPresent;
BYTE
STDCALL
KdPollBreakIn (
VOID
);
/* --- HAL.DLL --- */
extern ULONG KdComPortInUse;
BOOLEAN
STDCALL
KdPortInitialize (
PKD_PORT_INFORMATION PortInformation,
DWORD Unknown1,
DWORD Unknown2
);
BYTE
STDCALL
KdPortGetByte (
VOID
);
BYTE
STDCALL
KdPortPollByte (
VOID
);
VOID
STDCALL
KdPortPutByte (
UCHAR ByteToSend
);
VOID
STDCALL
KdPortRestore (
VOID
);
VOID
STDCALL
KdPortSave (
VOID
);
#endif /* __INCLUDE_DDK_KDFUNCS_H */

View file

@ -49,6 +49,7 @@ extern "C"
#include <ddk/cmfuncs.h> #include <ddk/cmfuncs.h>
#include <ddk/exfuncs.h> #include <ddk/exfuncs.h>
#include <ddk/mmfuncs.h> #include <ddk/mmfuncs.h>
#include <ddk/kdfuncs.h>
#include <ddk/kefuncs.h> #include <ddk/kefuncs.h>
#include <ddk/iofuncs.h> #include <ddk/iofuncs.h>
#include <ddk/psfuncs.h> #include <ddk/psfuncs.h>

View file

@ -34,19 +34,39 @@ typedef struct _CACHE_SEGMENT
PBCB Bcb; PBCB Bcb;
} CACHE_SEGMENT, *PCACHE_SEGMENT; } CACHE_SEGMENT, *PCACHE_SEGMENT;
NTSTATUS CcFlushCachePage(PCACHE_SEGMENT CacheSeg); NTSTATUS
NTSTATUS CcReleaseCachePage(PBCB Bcb, STDCALL
PCACHE_SEGMENT CacheSeg, CcFlushCachePage (
BOOLEAN Valid); PCACHE_SEGMENT CacheSeg
NTSTATUS CcRequestCachePage(PBCB Bcb, );
ULONG FileOffset, NTSTATUS
PVOID* BaseAddress, STDCALL
PBOOLEAN UptoDate, CcReleaseCachePage (
PCACHE_SEGMENT* CacheSeg); PBCB Bcb,
NTSTATUS CcInitializeFileCache(PFILE_OBJECT FileObject, PCACHE_SEGMENT CacheSeg,
PBCB* Bcb); BOOLEAN Valid
NTSTATUS CcReleaseFileCache(PFILE_OBJECT FileObject, );
PBCB Bcb); NTSTATUS
STDCALL
CcRequestCachePage (
PBCB Bcb,
ULONG FileOffset,
PVOID * BaseAddress,
PBOOLEAN UptoDate,
PCACHE_SEGMENT * CacheSeg
);
NTSTATUS
STDCALL
CcInitializeFileCache (
PFILE_OBJECT FileObject,
PBCB * Bcb
);
NTSTATUS
STDCALL
CcReleaseFileCache (
PFILE_OBJECT FileObject,
PBCB Bcb
);
#include <ddk/cctypes.h> #include <ddk/cctypes.h>

View file

@ -1,4 +1,5 @@
/* /* $Id: view.c,v 1.7 2000/02/26 22:41:34 ea Exp $
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/cc/view.c * FILE: ntoskrnl/cc/view.c
@ -19,7 +20,7 @@
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS CcFlushCachePage(PCACHE_SEGMENT CacheSeg) NTSTATUS STDCALL CcFlushCachePage(PCACHE_SEGMENT CacheSeg)
/* /*
* FUNCTION: Asks the FSD to flush the contents of the page back to disk * FUNCTION: Asks the FSD to flush the contents of the page back to disk
*/ */
@ -34,7 +35,7 @@ NTSTATUS CcFlushCachePage(PCACHE_SEGMENT CacheSeg)
return(STATUS_NOT_IMPLEMENTED); return(STATUS_NOT_IMPLEMENTED);
} }
NTSTATUS CcReleaseCachePage(PBCB Bcb, NTSTATUS STDCALL CcReleaseCachePage(PBCB Bcb,
PCACHE_SEGMENT CacheSeg, PCACHE_SEGMENT CacheSeg,
BOOLEAN Valid) BOOLEAN Valid)
{ {
@ -50,7 +51,7 @@ NTSTATUS CcReleaseCachePage(PBCB Bcb,
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }
NTSTATUS CcRequestCachePage(PBCB Bcb, NTSTATUS STDCALL CcRequestCachePage(PBCB Bcb,
ULONG FileOffset, ULONG FileOffset,
PVOID* BaseAddress, PVOID* BaseAddress,
PBOOLEAN UptoDate, PBOOLEAN UptoDate,
@ -128,7 +129,7 @@ NTSTATUS CcRequestCachePage(PBCB Bcb,
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }
NTSTATUS CcFreeCacheSegment(PFILE_OBJECT FileObject, NTSTATUS STDCALL CcFreeCacheSegment(PFILE_OBJECT FileObject,
PBCB Bcb, PBCB Bcb,
PCACHE_SEGMENT CacheSeg) PCACHE_SEGMENT CacheSeg)
{ {
@ -140,7 +141,7 @@ NTSTATUS CcFreeCacheSegment(PFILE_OBJECT FileObject,
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }
NTSTATUS CcReleaseFileCache(PFILE_OBJECT FileObject, NTSTATUS STDCALL CcReleaseFileCache(PFILE_OBJECT FileObject,
PBCB Bcb) PBCB Bcb)
{ {
PLIST_ENTRY current_entry; PLIST_ENTRY current_entry;
@ -166,7 +167,7 @@ NTSTATUS CcReleaseFileCache(PFILE_OBJECT FileObject,
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }
NTSTATUS CcInitializeFileCache(PFILE_OBJECT FileObject, NTSTATUS STDCALL CcInitializeFileCache(PFILE_OBJECT FileObject,
PBCB* Bcb) PBCB* Bcb)
{ {
DPRINT("CcInitializeFileCache(FileObject %x)\n",FileObject); DPRINT("CcInitializeFileCache(FileObject %x)\n",FileObject);
@ -187,4 +188,4 @@ NTSTATUS CcInitializeFileCache(PFILE_OBJECT FileObject,
} }
/* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: kdbg.c,v 1.4 2000/01/19 16:24:15 ekohl Exp $ /* $Id: kdbg.c,v 1.5 2000/02/26 22:41:35 ea Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -56,7 +56,7 @@
/* GLOBAL VARIABLES *********************************************************/ /* GLOBAL VARIABLES *********************************************************/
ULONG KdComPortInUse = 0; ULONG KdComPortInUse = 0; /* EXPORTED */
/* STATIC VARIABLES *********************************************************/ /* STATIC VARIABLES *********************************************************/

View file

@ -1,4 +1,4 @@
/* $Id: kdebug.c,v 1.4 2000/01/19 16:23:56 ekohl Exp $ /* $Id: kdebug.c,v 1.5 2000/02/26 22:41:35 ea Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -58,10 +58,6 @@ KdDebuggerEnabled = FALSE;
BOOLEAN BOOLEAN
KdDebuggerNotPresent = TRUE; KdDebuggerNotPresent = TRUE;
/* This is exported by hal.dll (Eric Kohl) */
//ULONG
//KdComPortInUse = 0;
/* PRIVATE FUNCTIONS ********************************************************/ /* PRIVATE FUNCTIONS ********************************************************/
@ -130,7 +126,7 @@ KdpPrintString (PANSI_STRING String)
/* PUBLIC FUNCTIONS *********************************************************/ /* PUBLIC FUNCTIONS *********************************************************/
/* NTOSKRNL.KdPollBreakIn */ /* NTOSKRNL.KdPollBreakIn */
/*
BYTE BYTE
STDCALL STDCALL
KdPollBreakIn ( KdPollBreakIn (
@ -139,7 +135,6 @@ KdPollBreakIn (
{ {
return KdPortPollByte(); return KdPortPollByte();
} }
*/
/* EOF */ /* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: main.c,v 1.35 2000/02/26 16:22:27 ea Exp $ /* $Id: main.c,v 1.36 2000/02/26 22:41:35 ea Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -33,6 +33,8 @@
USHORT NtBuildNumber = KERNEL_VERSION_BUILD; /* EXPORTED */ USHORT NtBuildNumber = KERNEL_VERSION_BUILD; /* EXPORTED */
ULONG NtGlobalFlag = 0; /* FIXME: EXPORTED */
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
void set_breakpoint(unsigned int i, unsigned int addr, unsigned int type, void set_breakpoint(unsigned int i, unsigned int addr, unsigned int type,

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.def,v 1.45 2000/02/26 16:22:27 ea Exp $ ; $Id: ntoskrnl.def,v 1.46 2000/02/26 22:41:34 ea Exp $
; ;
; reactos/ntoskrnl/ntoskrnl.def ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -6,10 +6,10 @@
; ;
EXPORTS EXPORTS
InitializeListHead InitializeListHead
CcInitializeFileCache CcInitializeFileCache@8
CcRequestCachePage CcRequestCachePage@20
CcReleaseCachePage CcReleaseCachePage@12
CcReleaseFileCache CcReleaseFileCache@8
DbgPrint DbgPrint
ExAcquireResourceExclusive ExAcquireResourceExclusive
ExAcquireResourceExclusiveLite ExAcquireResourceExclusiveLite
@ -186,7 +186,6 @@ NtAllocateVirtualMemory@24
NtBuildNumber DATA NtBuildNumber DATA
NtClose@4 NtClose@4
NtConnectPort@32 NtConnectPort@32
;NtConnectPort@8
NtCreateEvent@20 NtCreateEvent@20
NtCreateFile@44 NtCreateFile@44
NtCreateSection@28 NtCreateSection@28
@ -198,7 +197,7 @@ NtDuplicateToken@24
NtFindAtom@8 NtFindAtom@8
NtFreeVirtualMemory@16 NtFreeVirtualMemory@16
NtFsControlFile@40 NtFsControlFile@40
;NtGlobalFlag <--- variable? NtGlobalFlag DATA
NtLockFile@40 NtLockFile@40
NtMapViewOfSection@40 NtMapViewOfSection@40
NtNotifyChangeDirectoryFile@36 NtNotifyChangeDirectoryFile@36
@ -216,10 +215,8 @@ NtQuerySecurityObject@20
NtQuerySystemTime@4 NtQuerySystemTime@4
NtQueryVolumeInformationFile@20 NtQueryVolumeInformationFile@20
NtReadFile@36 NtReadFile@36
;NtRequestPort@8
NtRequestPort@20 NtRequestPort@20
NtRequestWaitReplyPort@12 NtRequestWaitReplyPort@12
;NtRequestWaitReplyPort@0
NtSetEvent@8 NtSetEvent@8
NtSetInformationFile@20 NtSetInformationFile@20
NtSetInformationProcess@16 NtSetInformationProcess@16
@ -541,13 +538,14 @@ HalSetRealTimeClock
;IoReadPartitionTable ;IoReadPartitionTable
;IoSetPartitionInformation ;IoSetPartitionInformation
;IoWritePartitionTable ;IoWritePartitionTable
;KdComPortInUse KdComPortInUse DATA
;KdPortGetByte KdPollBreakIn@0
KdPortInitialize KdPortGetByte@0
;KdPortPollByte KdPortInitialize@12
KdPortPutByte KdPortPollByte@0
;KdPortRestore KdPortPutByte@4
;KdPortSave KdPortRestore@0
KdPortSave@0
KeAcquireSpinLock KeAcquireSpinLock
;KeAcquireSpinLockRaiseToSynch ;KeAcquireSpinLockRaiseToSynch
;KeFlushWriteBuffer ;KeFlushWriteBuffer

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.edf,v 1.32 2000/02/26 16:22:27 ea Exp $ ; $Id: ntoskrnl.edf,v 1.33 2000/02/26 22:41:34 ea Exp $
; ;
; reactos/ntoskrnl/ntoskrnl.def ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -6,10 +6,10 @@
; ;
EXPORTS EXPORTS
InitializeListHead InitializeListHead
CcInitializeFileCache CcInitializeFileCache=CcInitializeFileCache@8
CcRequestCachePage CcRequestCachePage=CcRequestCachePage@20
CcReleaseCachePage CcReleaseCachePage=CcReleaseCachePage@12
CcReleaseFileCache CcReleaseFileCache=CcReleaseFileCache@8
DbgPrint DbgPrint
ExAcquireResourceExclusive ExAcquireResourceExclusive
ExAcquireResourceExclusiveLite ExAcquireResourceExclusiveLite
@ -186,7 +186,6 @@ NtAllocateVirtualMemory=NtAllocateVirtualMemory@24
NtBuildNumber DATA NtBuildNumber DATA
NtClose=NtClose@4 NtClose=NtClose@4
NtConnectPort=NtConnectPort@32 NtConnectPort=NtConnectPort@32
;NtConnectPort=NtConnectPort@8
NtCreateEvent=NtCreateEvent@20 NtCreateEvent=NtCreateEvent@20
NtCreateFile=NtCreateFile@44 NtCreateFile=NtCreateFile@44
NtCreateSection=NtCreateSection@28 NtCreateSection=NtCreateSection@28
@ -198,7 +197,7 @@ NtDuplicateToken=NtDuplicateToken@24
NtFindAtom=NtFindAtom@8 NtFindAtom=NtFindAtom@8
NtFreeVirtualMemory=NtFreeVirtualMemory@16 NtFreeVirtualMemory=NtFreeVirtualMemory@16
NtFsControlFile=NtFsControlFile@40 NtFsControlFile=NtFsControlFile@40
;NtGlobalFlag <--- variable NtGlobalFlag DATA
NtLockFile=NtLockFile@40 NtLockFile=NtLockFile@40
NtMapViewOfSection=NtMapViewOfSection@40 NtMapViewOfSection=NtMapViewOfSection@40
NtNotifyChangeDirectoryFile=NtNotifyChangeDirectoryFile@36 NtNotifyChangeDirectoryFile=NtNotifyChangeDirectoryFile@36
@ -217,9 +216,7 @@ NtQuerySystemTime=NtQuerySystemTime@4
NtQueryVolumeInformationFile=NtQueryVolumeInformationFile@20 NtQueryVolumeInformationFile=NtQueryVolumeInformationFile@20
NtReadFile=NtReadFile@36 NtReadFile=NtReadFile@36
NtRequestPort=NtRequestPort@8 NtRequestPort=NtRequestPort@8
;NtRequestPort=NtRequestPort@20
NtRequestWaitReplyPort@12 NtRequestWaitReplyPort@12
;NtRequestWaitReplyPort=NtRequestWaitReplyPort@0
NtSetEvent=NtSetEvent@8 NtSetEvent=NtSetEvent@8
NtSetInformationFile=NtSetInformationFile@20 NtSetInformationFile=NtSetInformationFile@20
NtSetInformationProcess=NtSetInformationProcess@16 NtSetInformationProcess=NtSetInformationProcess@16
@ -539,13 +536,14 @@ HalSetRealTimeClock
;IoReadPartitionTable ;IoReadPartitionTable
;IoSetPartitionInformation ;IoSetPartitionInformation
;IoWritePartitionTable ;IoWritePartitionTable
KdComPortInUse KdComPortInUse DATA
;KdPortGetByte KdPollBreakIn=KdPollBreakIn@0
KdPortGetByte=KdPortGetByte@0
KdPortInitialize=KdPortInitialize@12 KdPortInitialize=KdPortInitialize@12
;KdPortPollByte KdPortPollByte=KdPortPollByte@0
KdPortPutByte=KdPortPutByte@4 KdPortPutByte=KdPortPutByte@4
;KdPortRestore KdPortRestore=KdPortRestore@0
;KdPortSave KdPortSave=KdPortSave@0
KeAcquireSpinLock KeAcquireSpinLock
;KeAcquireSpinLockRaiseToSynch ;KeAcquireSpinLockRaiseToSynch
;KeFlushWriteBuffer ;KeFlushWriteBuffer