Some fixes in the TDI initial files.

svn path=/trunk/; revision=791
This commit is contained in:
Emanuele Aliberti 1999-11-21 23:48:14 +00:00
parent a7e6e9c1f8
commit e510811de7
6 changed files with 123 additions and 72 deletions

View file

@ -1,14 +1,14 @@
# $Id: Makefile,v 1.1 1999/11/20 20:41:28 ea Exp $ # $Id: Makefile,v 1.2 1999/11/21 23:48:13 ea Exp $
# #
# TDI.SYS build spec # TDI.SYS build spec
# #
TARGETNAME=tdi TARGETNAME=tdi
BASE_CFLAGS = -I../../include BASE_CFLAGS = -I../../../include
OBJECTS_CTE = cte/stubs.o OBJECTS_CTE = cte/stubs.o cte/string.o
OBJECTS_TDI = tdi/stubs.o tdi/obsolete.o OBJECTS_TDI = tdi/stubs.o tdi/obsolete.o tdi/handler.o
OBJECTS_MISC = misc/main.o misc/$(TARGETNAME).coff OBJECTS_MISC = misc/main.o misc/$(TARGETNAME).coff
@ -32,12 +32,13 @@ CLEAN_FILES = \
$(TARGETNAME).sys $(TARGETNAME).sym $(TARGETNAME).sys $(TARGETNAME).sym
endif endif
$(TARGETNAME).sys: $(OBJECTS) $(TARGETNAME).def $(TARGETNAME).sys: $(OBJECTS) misc/$(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o $(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \ $(DLLTOOL) \
--dllname $(TARGETNAME).sys \ --dllname $(TARGETNAME).sys \
--def $(TARGETNAME).def \ --def misc/$(TARGETNAME).def \
--output-lib $(TARGETNAME).a --output-lib $(TARGETNAME).a \
--kill-at
$(CC) \ $(CC) \
--subsystem=native \ --subsystem=native \
-mdll \ -mdll \
@ -51,14 +52,15 @@ $(TARGETNAME).sys: $(OBJECTS) $(TARGETNAME).def
-Wl,--defsym,_edata=__data_end__ \ -Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \ -Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $(TARGETNAME).o \ -Wl,--base-file,base.tmp $(TARGETNAME).o \
-specs=../../specs \ -specs=../../../specs \
../../ntoskrnl/ntoskrnl.a ../../../ntoskrnl/ntoskrnl.a
- $(RM) junk.tmp - $(RM) junk.tmp
$(DLLTOOL) \ $(DLLTOOL) \
--dllname $(TARGETNAME).sys \ --dllname $(TARGETNAME).sys \
--base-file base.tmp \ --base-file base.tmp \
--output-exp temp.exp \ --output-exp temp.exp \
--def $(TARGETNAME).def --def misc/$(TARGETNAME).def \
--kill-at
- $(RM) base.tmp - $(RM) base.tmp
$(CC) \ $(CC) \
--subsystem=native \ --subsystem=native \
@ -67,7 +69,7 @@ $(TARGETNAME).sys: $(OBJECTS) $(TARGETNAME).def
-e _DllMain@8 \ -e _DllMain@8 \
-o $(TARGETNAME).sys \ -o $(TARGETNAME).sys \
$(TARGETNAME).o \ $(TARGETNAME).o \
../../ntoskrnl/ntoskrnl.a \ ../../../ntoskrnl/ntoskrnl.a \
-Wl,--image-base,0x0 \ -Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \ -Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \ -Wl,--section-alignment,0x1000 \
@ -75,7 +77,7 @@ $(TARGETNAME).sys: $(OBJECTS) $(TARGETNAME).def
-Wl,--defsym,_edata=__data_end__ \ -Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \ -Wl,--defsym,_etext=etext \
-Wl,temp.exp \ -Wl,temp.exp \
-specs=../../specs -specs=../../../specs
- $(RM) temp.exp - $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym $(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.1 1999/11/20 20:41:29 ea Exp $ /* $Id: stubs.c,v 1.2 1999/11/21 23:48:13 ea Exp $
* *
*/ */
#include <ntos.h> #include <ntos.h>
@ -98,10 +98,10 @@ CTESignal (
BOOLEAN BOOLEAN
STDCALL STDCALL
CTEStartTimer ( CTEStartTimer (
DOWRD Unknown0, DWORD Unknown0,
DOWRD Unknown1, DWORD Unknown1,
DOWRD Unknown2, DWORD Unknown2,
DOWRD Unknown3 DWORD Unknown3
) )
{ {
return FALSE; return FALSE;

View file

@ -1,47 +1,47 @@
; $Id: tdi.def,v 1.1 1999/11/20 10:21:18 ea Exp $ ; $Id: tdi.def,v 1.2 1999/11/21 23:48:13 ea Exp $
; ;
; TDI.SYS Kernel Module - ReactOS Operating System ; TDI.SYS Kernel Module - ReactOS Operating System
; ;
LIBRARY TDI.SYS LIBRARY TDI.SYS
EXPORTS EXPORTS
CTEAllocateString CTEAllocateString@8
CTEBlock CTEBlock@4
CTEInitEvent CTEInitEvent@8
CTEInitString CTEInitString@8
CTEInitTimer CTEInitTimer@4
CTEInitialize CTEInitialize@0
CTELogEvent CTELogEvent@28
CTEScheduleEvent CTEScheduleEvent@8
CTESignal CTESignal@8
CTEStartTimer CTEStartTimer@16
CTESystemUpTime CTESystemUpTime@0
TdiBuildNetbiosAddress TdiBuildNetbiosAddress@12
TdiBuildNetbiosAddressEa TdiBuildNetbiosAddressEa@12
TdiCopyBufferToMdl TdiCopyBufferToMdl@24
TdiCopyMdlToBuffer TdiCopyMdlToBuffer@24
TdiDefaultChainedRcvDatagramHandler TdiDefaultChainedRcvDatagramHandler@40
TdiDefaultChainedRcvExpeditedHandler TdiDefaultChainedRcvExpeditedHandler@28
TdiDefaultChainedReceiveHandler TdiDefaultChainedReceiveHandler@28
TdiDefaultConnectHandler TdiDefaultConnectHandler@36
TdiDefaultDisconnectHandler TdiDefaultDisconnectHandler@28
TdiDefaultErrorHandler TdiDefaultErrorHandler@8
TdiDefaultRcvDatagramHandler TdiDefaultRcvDatagramHandler@44
TdiDefaultRcvExpeditedHandler TdiDefaultRcvExpeditedHandler@32
TdiDefaultReceiveHandler TdiDefaultReceiveHandler@32
TdiDefaultSendPossibleHandler TdiDefaultSendPossibleHandler@12
TdiDeregisterAddressChangeHandler TdiDeregisterAddressChangeHandler@4
TdiDeregisterDeviceObject TdiDeregisterDeviceObject@4
TdiDeregisterNetAddress TdiDeregisterNetAddress@4
TdiDeregisterNotificationHandler TdiDeregisterNotificationHandler@4
TdiInitialize TdiInitialize@0
TdiMapBuffer TdiMapBuffer@4
TdiMapUserRequest TdiMapUserRequest@12
TdiOpenNetbiosAddress TdiOpenNetbiosAddress@16
TdiRegisterAddressChangeHandler TdiRegisterAddressChangeHandler@12
TdiRegisterDeviceObject TdiRegisterDeviceObject@8
TdiRegisterNetAddress TdiRegisterNetAddress@8
TdiRegisterNotificationHandler TdiRegisterNotificationHandler@12
TdiReturnChainedReceives TdiReturnChainedReceives@8
TdiUnmapBuffer TdiUnmapBuffer@4
; EOF ; EOF

View file

@ -0,0 +1,47 @@
; $Id: tdi.edf,v 1.1 1999/11/21 23:48:13 ea Exp $
;
; TDI.SYS Kernel Module - ReactOS Operating System
;
LIBRARY TDI.SYS
EXPORTS
CTEAllocateString=CTEAllocateString@8
CTEBlock=CTEBlock@4
CTEInitEvent=CTEInitEvent@8
CTEInitString=CTEInitString@8
CTEInitTimer=CTEInitTimer@4
CTEInitialize=CTEInitialize@0
CTELogEvent=CTELogEvent@28
CTEScheduleEvent=CTEScheduleEvent@8
CTESignal=CTESignal@8
CTEStartTimer=CTEStartTimer@16
CTESystemUpTime=CTESystemUpTime@0
TdiBuildNetbiosAddress=TdiBuildNetbiosAddress@12
TdiBuildNetbiosAddressEa=TdiBuildNetbiosAddressEa@12
TdiCopyBufferToMdl=TdiCopyBufferToMdl@24
TdiCopyMdlToBuffer=TdiCopyMdlToBuffer@24
TdiDefaultChainedRcvDatagramHandler=TdiDefaultChainedRcvDatagramHandler@40
TdiDefaultChainedRcvExpeditedHandler=TdiDefaultChainedRcvExpeditedHandler@28
TdiDefaultChainedReceiveHandler=TdiDefaultChainedReceiveHandler@28
TdiDefaultConnectHandler=TdiDefaultConnectHandler@36
TdiDefaultDisconnectHandler=TdiDefaultDisconnectHandler@28
TdiDefaultErrorHandler=TdiDefaultErrorHandler@8
TdiDefaultRcvDatagramHandler=TdiDefaultRcvDatagramHandler@44
TdiDefaultRcvExpeditedHandler=TdiDefaultRcvExpeditedHandler@32
TdiDefaultReceiveHandler=TdiDefaultReceiveHandler@32
TdiDefaultSendPossibleHandler=TdiDefaultSendPossibleHandler@12
TdiDeregisterAddressChangeHandler=TdiDeregisterAddressChangeHandler@4
TdiDeregisterDeviceObject=TdiDeregisterDeviceObject@4
TdiDeregisterNetAddress=TdiDeregisterNetAddress@4
TdiDeregisterNotificationHandler=TdiDeregisterNotificationHandler@4
TdiInitialize=TdiInitialize@0
TdiMapBuffer=TdiMapBuffer@4
TdiMapUserRequest=TdiMapUserRequest@12
TdiOpenNetbiosAddress=TdiOpenNetbiosAddress@16
TdiRegisterAddressChangeHandler=TdiRegisterAddressChangeHandler@12
TdiRegisterDeviceObject=TdiRegisterDeviceObject@8
TdiRegisterNetAddress=TdiRegisterNetAddress@8
TdiRegisterNotificationHandler=TdiRegisterNotificationHandler@12
TdiReturnChainedReceives=TdiReturnChainedReceives@8
TdiUnmapBuffer=TdiUnmapBuffer@4
; EOF

View file

@ -1,9 +1,10 @@
/* $Id: obsolete.c,v 1.1 1999/11/20 20:41:29 ea Exp $ /* $Id: obsolete.c,v 1.2 1999/11/21 23:48:14 ea Exp $
* *
*/ */
VOID VOID
STDCALL STDCALL
TdiMapBuffer ( TdiMapBuffer (
DWORD Unknown0
) )
{ {
/* This function is absolete */ /* This function is absolete */
@ -13,6 +14,7 @@ TdiMapBuffer (
VOID VOID
STDCALL STDCALL
TdiUnmapBuffer ( TdiUnmapBuffer (
DWORD Unknown0
) )
{ {
/* This function is obsolete */ /* This function is obsolete */

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.1 1999/11/20 20:41:29 ea Exp $ /* $Id: stubs.c,v 1.2 1999/11/21 23:48:14 ea Exp $
* *
*/ */
#include <ntos.h> #include <ntos.h>
@ -30,12 +30,12 @@ NTSTATUS
STDCALL STDCALL
TdiCopyBufferToMdl ( TdiCopyBufferToMdl (
IN PVOID SourceBuffer, IN PVOID SourceBuffer,
IN ULONG SourceOffset, IN ULONG SourceOffset,
IN ULONG SourceBytesToCopy, IN ULONG SourceBytesToCopy,
IN PMDL DestinationMdlChain, IN PMDL DestinationMdlChain,
IN ULONG DestinationOffset, IN ULONG DestinationOffset,
IN PULONG BytesCopied IN PULONG BytesCopied
) )
{ {
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
@ -44,13 +44,13 @@ TdiCopyBufferToMdl (
NTSTATUS NTSTATUS
STDCALL STDCALL
TdiCopyMdlToBuffer ( TdiCopyMdlToBuffer (
IN PMDL SourceMdlChain, IN PMDL SourceMdlChain,
IN ULONG SourceOffset, IN ULONG SourceOffset,
IN PVOID DestinationBuffer, IN PVOID DestinationBuffer,
IN ULONG DestinationOffset, IN ULONG DestinationOffset,
IN ULONG DestinationBufferSize, IN ULONG DestinationBufferSize,
OUT PULONG BytesCopied OUT PULONG BytesCopied
) )
{ {
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }