mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
More cleanups
svn path=/trunk/; revision=2094
This commit is contained in:
parent
72a83f69ee
commit
6c6bb5f62e
13 changed files with 76 additions and 123 deletions
|
@ -1,11 +1,13 @@
|
||||||
# $Id: makefile,v 1.5 2001/07/15 21:19:00 rex Exp $
|
# $Id: makefile,v 1.6 2001/07/24 18:37:46 ekohl Exp $
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
PATH_TO_TOP = ../../..
|
PATH_TO_TOP = ../../..
|
||||||
|
|
||||||
TARGET = keyboard
|
TARGET = keyboard
|
||||||
|
|
||||||
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
|
OBJECTS = $(TARGET).o $(TARGET).coff
|
||||||
|
|
||||||
|
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
|
||||||
|
|
||||||
CFLAGS = -D__NTDRIVER__ -O2 -I. -g
|
CFLAGS = -D__NTDRIVER__ -O2 -I. -g
|
||||||
|
|
||||||
|
@ -14,7 +16,7 @@ all: $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
.phony: all
|
.phony: all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- $(RM) $(TARGET).o $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
|
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: clean
|
.phony: clean
|
||||||
|
|
||||||
|
@ -23,12 +25,14 @@ install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
|
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
|
||||||
|
|
||||||
|
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
|
||||||
|
|
||||||
WARNINGS_ARE_ERRORS = yes
|
WARNINGS_ARE_ERRORS = yes
|
||||||
include ../../../rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
2
reactos/drivers/input/mouclass/.cvsignore
Normal file
2
reactos/drivers/input/mouclass/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
mouclass.coff
|
||||||
|
mouclass.sys.unstripped
|
|
@ -1,20 +1,22 @@
|
||||||
# $Id: makefile,v 1.5 2001/07/15 21:19:00 rex Exp $
|
# $Id: makefile,v 1.6 2001/07/24 18:38:04 ekohl Exp $
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
TARGET = mouclass
|
TARGET = mouclass
|
||||||
|
|
||||||
PATH_TO_TOP = ../../..
|
PATH_TO_TOP = ../../..
|
||||||
|
|
||||||
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
|
OBJECTS = $(TARGET).o $(TARGET).coff
|
||||||
|
|
||||||
|
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
|
||||||
|
|
||||||
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
||||||
|
|
||||||
all: $(TARGET).sys
|
all: $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: all
|
.phony: all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- $(RM) $(TARGET).o $(TARGET).coff junk.tmp base.tmp temp.exp mouclass.sys
|
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: clean
|
.phony: clean
|
||||||
|
|
||||||
|
@ -23,38 +25,13 @@ install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
$(TARGET).sys: $(OBJECTS)
|
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
|
||||||
$(CC) \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o junk.tmp \
|
|
||||||
-Wl,--defsym,_end=end \
|
|
||||||
-Wl,--defsym,_edata=__data_end__ \
|
|
||||||
-Wl,--defsym,_etext=etext \
|
|
||||||
-Wl,--base-file,base.tmp \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) junk.tmp
|
|
||||||
$(DLLTOOL) \
|
|
||||||
--dllname $(TARGET).sys \
|
|
||||||
--base-file base.tmp \
|
|
||||||
--output-exp temp.exp \
|
|
||||||
--kill-at
|
|
||||||
- $(RM) base.tmp
|
|
||||||
$(CC) \
|
|
||||||
--verbose \
|
|
||||||
-Wl,--image-base,0x10000 \
|
|
||||||
-Wl,-e,_DriverEntry@8 \
|
|
||||||
-Wl,temp.exp \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o $(TARGET).sys \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) temp.exp
|
|
||||||
|
|
||||||
|
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
|
||||||
|
|
||||||
include ../../../rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
2
reactos/drivers/input/psaux/.cvsignore
Normal file
2
reactos/drivers/input/psaux/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
psaux.coff
|
||||||
|
psaux.sys.unstripped
|
|
@ -84,6 +84,9 @@ void controller_wait(void)
|
||||||
int controller_wait_for_input(void)
|
int controller_wait_for_input(void)
|
||||||
{
|
{
|
||||||
int timeout;
|
int timeout;
|
||||||
|
LARGE_INTEGER Millisecond_Timeout;
|
||||||
|
|
||||||
|
Millisecond_Timeout.QuadPart = 1;
|
||||||
|
|
||||||
for(timeout = KEYBOARD_INIT_TIMEOUT; timeout > 0; timeout--)
|
for(timeout = KEYBOARD_INIT_TIMEOUT; timeout > 0; timeout--)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +95,7 @@ int controller_wait_for_input(void)
|
||||||
if(return_value >= 0) return return_value;
|
if(return_value >= 0) return return_value;
|
||||||
|
|
||||||
// Sleep for one millisecond
|
// Sleep for one millisecond
|
||||||
KeDelayExecutionThread (KernelMode, FALSE, 1);
|
KeDelayExecutionThread (KernelMode, FALSE, &Millisecond_Timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint("PSAUX: Timed out on waiting for input from controller\n");
|
DbgPrint("PSAUX: Timed out on waiting for input from controller\n");
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
# $Id: makefile,v 1.5 2001/07/15 21:19:00 rex Exp $
|
# $Id: makefile,v 1.6 2001/07/24 18:38:40 ekohl Exp $
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
TARGET = psaux
|
|
||||||
|
|
||||||
PATH_TO_TOP = ../../..
|
PATH_TO_TOP = ../../..
|
||||||
|
|
||||||
OBJECTS = $(TARGET).o controller.o mouse.o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
|
TARGET = psaux
|
||||||
|
|
||||||
|
OBJECTS = $(TARGET).o controller.o mouse.o $(TARGET).coff
|
||||||
|
|
||||||
|
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
|
||||||
|
|
||||||
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
||||||
|
|
||||||
all: $(TARGET).sys
|
all: $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: all
|
.phony: all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- $(RM) *.o $(TARGET).coff junk.tmp base.tmp temp.exp psaux.sys
|
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: clean
|
.phony: clean
|
||||||
|
|
||||||
|
@ -23,38 +25,13 @@ install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
$(TARGET).sys: $(OBJECTS)
|
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
|
||||||
$(CC) \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o junk.tmp \
|
|
||||||
-Wl,--defsym,_end=end \
|
|
||||||
-Wl,--defsym,_edata=__data_end__ \
|
|
||||||
-Wl,--defsym,_etext=etext \
|
|
||||||
-Wl,--base-file,base.tmp \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) junk.tmp
|
|
||||||
$(DLLTOOL) \
|
|
||||||
--dllname $(TARGET).sys \
|
|
||||||
--base-file base.tmp \
|
|
||||||
--output-exp temp.exp \
|
|
||||||
--kill-at
|
|
||||||
- $(RM) base.tmp
|
|
||||||
$(CC) \
|
|
||||||
--verbose \
|
|
||||||
-Wl,--image-base,0x10000 \
|
|
||||||
-Wl,-e,_DriverEntry@8 \
|
|
||||||
-Wl,temp.exp \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o $(TARGET).sys \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) temp.exp
|
|
||||||
|
|
||||||
|
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
|
||||||
|
|
||||||
include ../../../rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
|
@ -148,6 +148,9 @@ BOOLEAN detect_ps2_port(void)
|
||||||
{
|
{
|
||||||
int loops;
|
int loops;
|
||||||
BOOLEAN return_value = FALSE;
|
BOOLEAN return_value = FALSE;
|
||||||
|
LARGE_INTEGER Millisecond_Timeout;
|
||||||
|
|
||||||
|
Millisecond_Timeout.QuadPart = 1;
|
||||||
|
|
||||||
return TRUE; // The rest of this code fails under BOCHs
|
return TRUE; // The rest of this code fails under BOCHs
|
||||||
|
|
||||||
|
@ -177,7 +180,7 @@ BOOLEAN detect_ps2_port(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
KeDelayExecutionThread (KernelMode, FALSE, 1);
|
KeDelayExecutionThread (KernelMode, FALSE, &Millisecond_Timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
|
|
|
@ -36,7 +36,8 @@ BOOLEAN MouseSynchronizeRoutine(PVOID Context)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID PS2MouseStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
VOID STDCALL
|
||||||
|
PS2MouseStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
|
||||||
|
@ -49,7 +50,8 @@ VOID PS2MouseStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS PS2MouseDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
NTSTATUS STDCALL
|
||||||
|
PS2MouseDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
|
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -100,7 +102,8 @@ VOID PS2MouseInitializeDataQueue(PVOID Context)
|
||||||
DeviceExtension->MouseInputData = ExAllocatePool(NonPagedPool, sizeof(MOUSE_INPUT_DATA) * MOUSE_BUFFER_SIZE); */
|
DeviceExtension->MouseInputData = ExAllocatePool(NonPagedPool, sizeof(MOUSE_INPUT_DATA) * MOUSE_BUFFER_SIZE); */
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS PS2MouseInternalDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
NTSTATUS STDCALL
|
||||||
|
PS2MouseInternalDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||||
{
|
{
|
||||||
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
|
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
|
|
2
reactos/drivers/input/sermouse/.cvsignore
Normal file
2
reactos/drivers/input/sermouse/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sermouse.coff
|
||||||
|
sermouse.sys.unstripped
|
|
@ -1,20 +1,22 @@
|
||||||
# $Id: makefile,v 1.5 2001/07/15 21:19:00 rex Exp $
|
# $Id: makefile,v 1.6 2001/07/24 18:39:02 ekohl Exp $
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
TARGET = sermouse
|
|
||||||
|
|
||||||
PATH_TO_TOP = ../../..
|
PATH_TO_TOP = ../../..
|
||||||
|
|
||||||
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
|
TARGET = sermouse
|
||||||
|
|
||||||
|
OBJECTS = $(TARGET).o $(TARGET).coff
|
||||||
|
|
||||||
|
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
|
||||||
|
|
||||||
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
||||||
|
|
||||||
all: $(TARGET).sys
|
all: $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: all
|
.phony: all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- $(RM) $(TARGET).o $(TARGET).coff junk.tmp base.tmp temp.exp sermouse.sys
|
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
|
||||||
|
|
||||||
.phony: clean
|
.phony: clean
|
||||||
|
|
||||||
|
@ -23,38 +25,13 @@ install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
$(TARGET).sys: $(OBJECTS)
|
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
|
||||||
$(CC) \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o junk.tmp \
|
|
||||||
-Wl,--defsym,_end=end \
|
|
||||||
-Wl,--defsym,_edata=__data_end__ \
|
|
||||||
-Wl,--defsym,_etext=etext \
|
|
||||||
-Wl,--base-file,base.tmp \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) junk.tmp
|
|
||||||
$(DLLTOOL) \
|
|
||||||
--dllname $(TARGET).sys \
|
|
||||||
--base-file base.tmp \
|
|
||||||
--output-exp temp.exp \
|
|
||||||
--kill-at
|
|
||||||
- $(RM) base.tmp
|
|
||||||
$(CC) \
|
|
||||||
--verbose \
|
|
||||||
-Wl,--image-base,0x10000 \
|
|
||||||
-Wl,-e,_DriverEntry@8 \
|
|
||||||
-Wl,temp.exp \
|
|
||||||
-specs=../../svc_specs \
|
|
||||||
-mdll \
|
|
||||||
-o $(TARGET).sys \
|
|
||||||
$(OBJECTS)
|
|
||||||
- $(RM) temp.exp
|
|
||||||
|
|
||||||
|
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
|
||||||
|
|
||||||
include ../../../rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
|
@ -2,3 +2,4 @@ base.tmp
|
||||||
junk.tmp
|
junk.tmp
|
||||||
temp.exp
|
temp.exp
|
||||||
class2.coff
|
class2.coff
|
||||||
|
class2.sys.unstripped
|
||||||
|
|
|
@ -2,3 +2,4 @@ base.tmp
|
||||||
junk.tmp
|
junk.tmp
|
||||||
temp.exp
|
temp.exp
|
||||||
disk.coff
|
disk.coff
|
||||||
|
disk.sys.unstripped
|
|
@ -2,3 +2,4 @@ base.tmp
|
||||||
junk.tmp
|
junk.tmp
|
||||||
temp.exp
|
temp.exp
|
||||||
scsiport.coff
|
scsiport.coff
|
||||||
|
scsiport.sys.unstripped
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue