mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
changes in IRP for compatibility
svn path=/trunk/; revision=1351
This commit is contained in:
parent
28d86222cd
commit
cfa0bfd3f1
25 changed files with 296 additions and 404 deletions
|
@ -1 +1 @@
|
|||
loadros ntoskrnl.exe ide.sys vfatfs.sys
|
||||
loadros ntoskrnl.exe ide.sys vfatfs.sys
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: blue.c,v 1.26 2000/07/11 04:08:43 phreak Exp $
|
||||
/* $Id: blue.c,v 1.27 2000/09/12 10:12:12 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -68,7 +68,7 @@ typedef struct _DEVICE_EXTENSION
|
|||
/* FUNCTIONS **************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
STDCALL ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PDEVICE_EXTENSION DeviceExtension;
|
||||
PHYSICAL_ADDRESS BaseAddress;
|
||||
|
@ -120,6 +120,9 @@ ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
/* calculate number of text rows */
|
||||
DeviceExtension->Rows =
|
||||
DeviceExtension->Rows / DeviceExtension->ScanLines;
|
||||
#ifdef BOCHS_30ROWS
|
||||
DeviceExtension->Rows = 25;
|
||||
#endif
|
||||
|
||||
DPRINT ("%d Columns %d Rows %d Scanlines\n",
|
||||
DeviceExtension->Columns,
|
||||
|
@ -154,7 +157,7 @@ ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
|
||||
|
||||
NTSTATUS
|
||||
ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
STDCALL ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation (Irp);
|
||||
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
||||
|
@ -278,7 +281,7 @@ ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
|
||||
|
||||
NTSTATUS
|
||||
ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
STDCALL ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation (Irp);
|
||||
PDEVICE_EXTENSION DeviceExtension;
|
||||
|
@ -574,7 +577,7 @@ ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
|
||||
|
||||
NTSTATUS
|
||||
ScrDispatch (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
STDCALL ScrDispatch (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
|
||||
NTSTATUS Status;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.14 2000/08/20 17:02:09 dwelch Exp $
|
||||
# $Id: makefile,v 1.15 2000/09/12 10:12:12 jean Exp $
|
||||
#
|
||||
#
|
||||
PATH_TO_TOP = ../../..
|
||||
|
@ -36,4 +36,5 @@ dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
|||
|
||||
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
|
||||
|
||||
WARNINGS_ARE_ERRORS = yes
|
||||
include ../../../rules.mak
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: ide.c,v 1.34 2000/08/25 15:56:24 ekohl Exp $
|
||||
/* $Id: ide.c,v 1.35 2000/09/12 10:12:12 jean Exp $
|
||||
*
|
||||
* IDE.C - IDE Disk driver
|
||||
* written by Rex Jolliff
|
||||
|
@ -168,10 +168,10 @@ static int IDEPolledRead(IN WORD Address,
|
|||
IN BYTE DrvHead,
|
||||
IN BYTE Command,
|
||||
OUT BYTE *Buffer);
|
||||
static NTSTATUS IDEDispatchOpenClose(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS IDEDispatchReadWrite(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS IDEDispatchDeviceControl(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static VOID IDEStartIo(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
static NTSTATUS STDCALL IDEDispatchOpenClose(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS STDCALL IDEDispatchReadWrite(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS STDCALL IDEDispatchDeviceControl(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static VOID STDCALL IDEStartIo(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
static IO_ALLOCATION_ACTION IDEAllocateController(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp,
|
||||
IN PVOID MapRegisterBase,
|
||||
|
@ -1101,7 +1101,7 @@ IDEPolledRead(IN WORD Address,
|
|||
//
|
||||
|
||||
static NTSTATUS
|
||||
IDEDispatchOpenClose(IN PDEVICE_OBJECT pDO,
|
||||
STDCALL IDEDispatchOpenClose(IN PDEVICE_OBJECT pDO,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
|
@ -1127,7 +1127,7 @@ IDEDispatchOpenClose(IN PDEVICE_OBJECT pDO,
|
|||
//
|
||||
|
||||
static NTSTATUS
|
||||
IDEDispatchReadWrite(IN PDEVICE_OBJECT pDO,
|
||||
STDCALL IDEDispatchReadWrite(IN PDEVICE_OBJECT pDO,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
ULONG IrpInsertKey;
|
||||
|
@ -1212,7 +1212,7 @@ DPRINT("AdjOffset:%ld:%ld + Length:%ld = AdjExtent:%ld:%ld\n",
|
|||
//
|
||||
|
||||
static NTSTATUS
|
||||
IDEDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
||||
STDCALL IDEDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
NTSTATUS RC;
|
||||
|
@ -1299,7 +1299,7 @@ IDEDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
//
|
||||
|
||||
static VOID
|
||||
IDEStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||
STDCALL IDEStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
LARGE_INTEGER SectorLI;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.17 2000/08/21 00:15:54 ekohl Exp $
|
||||
# $Id: makefile,v 1.18 2000/09/12 10:12:12 jean Exp $
|
||||
#
|
||||
#
|
||||
PATH_TO_TOP = ../../..
|
||||
|
@ -45,4 +45,5 @@ endif
|
|||
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
|
||||
|
||||
WITH_DEBUGGING=yes
|
||||
WARNINGS_ARE_ERRORS = yes
|
||||
include ../../../rules.mak
|
||||
|
|
|
@ -616,7 +616,7 @@ BOOLEAN KbdSynchronizeRoutine(PVOID Context)
|
|||
return(FALSE);
|
||||
}
|
||||
|
||||
VOID KbdStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
VOID STDCALL KbdStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
@ -636,7 +636,7 @@ VOID KbdStartIo(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
DPRINT("KeysRequired %d\n",KeysRequired);
|
||||
}
|
||||
|
||||
NTSTATUS KbdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL KbdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
|
||||
NTSTATUS Status;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.12 2000/08/20 17:02:10 dwelch Exp $
|
||||
# $Id: makefile,v 1.13 2000/09/12 10:12:12 jean Exp $
|
||||
#
|
||||
#
|
||||
PATH_TO_TOP = ../../..
|
||||
|
@ -44,4 +44,5 @@ endif
|
|||
|
||||
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
|
||||
|
||||
WARNINGS_ARE_ERRORS = yes
|
||||
include ../../../rules.mak
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: vidport.c,v 1.14 2000/07/07 11:56:04 ekohl Exp $
|
||||
/* $Id: vidport.c,v 1.15 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* VideoPort driver
|
||||
* Written by Rex Jolliff
|
||||
|
@ -13,9 +13,9 @@
|
|||
|
||||
#define VERSION "0.0.0"
|
||||
|
||||
static VOID VidStartIo(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
static NTSTATUS VidDispatchOpenClose(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS VidDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
static VOID STDCALL VidStartIo(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
static NTSTATUS STDCALL VidDispatchOpenClose(IN PDEVICE_OBJECT pDO, IN PIRP Irp);
|
||||
static NTSTATUS STDCALL VidDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
|
||||
// ------------------------------------------------------- Public Interface
|
||||
|
||||
|
@ -716,6 +716,7 @@ VideoPortZeroDeviceMemory(OUT PVOID Destination,
|
|||
//
|
||||
|
||||
static NTSTATUS
|
||||
STDCALL
|
||||
VidDispatchOpenClose(IN PDEVICE_OBJECT pDO,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
|
@ -742,6 +743,7 @@ VidDispatchOpenClose(IN PDEVICE_OBJECT pDO,
|
|||
//
|
||||
|
||||
static VOID
|
||||
STDCALL
|
||||
VidStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
|
@ -764,6 +766,7 @@ VidStartIo(IN PDEVICE_OBJECT DeviceObject,
|
|||
//
|
||||
|
||||
static NTSTATUS
|
||||
STDCALL
|
||||
VidDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: close.c,v 1.1 2000/07/07 02:14:14 ekohl Exp $
|
||||
/* $Id: close.c,v 1.2 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -53,7 +53,7 @@ NTSTATUS FsdCloseFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject)
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS FsdClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Closes a file
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.6 2000/07/07 02:14:14 ekohl Exp $
|
||||
/* $Id: create.c,v 1.7 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -640,7 +640,7 @@ CHECKPOINT;
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS FsdCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Create or open a file
|
||||
*/
|
||||
|
|
|
@ -309,7 +309,7 @@ DPRINT("Found %S,RC=%x, sector %x entry %x\n",tmpFcb.ObjectName,RC
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS FsdDirectoryControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdDirectoryControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: directory control : read/write directory informations
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: finfo.c,v 1.3 2000/06/29 23:35:50 dwelch Exp $
|
||||
/* $Id: finfo.c,v 1.4 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -122,7 +122,7 @@ NTSTATUS FsdSetDispositionInformation(PFILE_OBJECT FileObject,
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS FsdQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Retrieve the specified file information
|
||||
*/
|
||||
|
@ -183,7 +183,7 @@ NTSTATUS FsdQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
return RC;
|
||||
}
|
||||
|
||||
NTSTATUS VfatSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL VfatSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Retrieve the specified file information
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: iface.c,v 1.42 2000/06/29 23:35:50 dwelch Exp $
|
||||
/* $Id: iface.c,v 1.43 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -156,7 +156,7 @@ NTSTATUS FsdMount(PDEVICE_OBJECT DeviceToMount)
|
|||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
NTSTATUS FsdFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: File system control
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: rw.c,v 1.7 2000/06/29 23:35:51 dwelch Exp $
|
||||
/* $Id: rw.c,v 1.8 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -364,7 +364,7 @@ NTSTATUS FsdWriteFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
|
|||
return (STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
NTSTATUS FsdWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Write to a file
|
||||
*/
|
||||
|
@ -392,7 +392,7 @@ NTSTATUS FsdWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
return(Status);
|
||||
}
|
||||
|
||||
NTSTATUS FsdRead(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL FsdRead(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Read from a file
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: vfat.h,v 1.16 1999/12/16 23:08:17 ekohl Exp $ */
|
||||
/* $Id: vfat.h,v 1.17 2000/09/12 10:12:13 jean Exp $ */
|
||||
|
||||
struct _BootSector {
|
||||
unsigned char magic0, res0, magic1;
|
||||
|
@ -149,13 +149,13 @@ typedef struct __DOSDATE
|
|||
|
||||
// functions called by i/o manager :
|
||||
NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT _DriverObject,PUNICODE_STRING RegistryPath);
|
||||
NTSTATUS FsdDirectoryControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdRead(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdClose(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS FsdQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdDirectoryControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdRead(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdClose(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL FsdQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
|
||||
|
||||
// internal functions in blockdev.c
|
||||
|
@ -225,12 +225,12 @@ ULONG FAT32CountAvailableClusters(PDEVICE_EXTENSION DeviceExt);
|
|||
/*
|
||||
* functions from volume.c
|
||||
*/
|
||||
NTSTATUS VfatQueryVolumeInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL VfatQueryVolumeInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
|
||||
/*
|
||||
* functions from finfo.c
|
||||
*/
|
||||
NTSTATUS VfatSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
NTSTATUS STDCALL VfatSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
|
||||
/*
|
||||
* From create.c
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: volume.c,v 1.3 2000/06/29 23:35:51 dwelch Exp $
|
||||
/* $Id: volume.c,v 1.4 2000/09/12 10:12:13 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -117,7 +117,7 @@ NTSTATUS FsdGetFsSizeInformation(PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS VfatQueryVolumeInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
NTSTATUS STDCALL VfatQueryVolumeInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
/*
|
||||
* FUNCTION: Retrieve the specified file information
|
||||
*/
|
||||
|
|
|
@ -218,12 +218,12 @@ enum
|
|||
IRP_MJ_CREATE_MAILSLOT,
|
||||
IRP_MJ_QUERY_SECURITY,
|
||||
IRP_MJ_SET_SECURITY,
|
||||
IRP_MJ_QUERY_POWER,
|
||||
IRP_MJ_SET_POWER,
|
||||
IRP_MJ_QUERY_POWER,//IRP_MJ_POWER ?
|
||||
IRP_MJ_SET_POWER,//IRP_MJ_SYSTEM_CONTROL ?
|
||||
IRP_MJ_DEVICE_CHANGE,
|
||||
IRP_MJ_QUERY_QUOTA,
|
||||
IRP_MJ_SET_QUOTA,
|
||||
IRP_MJ_PNP_POWER,
|
||||
IRP_MJ_PNP_POWER,//=IRP_MJ_PNP
|
||||
IRP_MJ_MAXIMUM_FUNCTION,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: iotypes.h,v 1.18 2000/06/29 23:35:11 dwelch Exp $
|
||||
/* $Id: iotypes.h,v 1.19 2000/09/12 10:12:10 jean Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -189,6 +189,7 @@ typedef struct _IO_STACK_LOCATION
|
|||
FILE_INFORMATION_CLASS FileInformationClass;
|
||||
ULONG FileIndex;
|
||||
} QueryDirectory;
|
||||
/*
|
||||
struct
|
||||
{
|
||||
ULONG CreateDisposition;
|
||||
|
@ -202,14 +203,15 @@ typedef struct _IO_STACK_LOCATION
|
|||
ULONG OutBufferSize;
|
||||
LARGE_INTEGER TimeOut;
|
||||
} CreateNamedPipe;
|
||||
*/
|
||||
} Parameters;
|
||||
|
||||
struct _DEVICE_OBJECT* DeviceObject;
|
||||
struct _FILE_OBJECT* FileObject;
|
||||
|
||||
PIO_COMPLETION_ROUTINE CompletionRoutine;
|
||||
PVOID CompletionContext;
|
||||
|
||||
struct _DEVICE_OBJECT* DeviceObject;
|
||||
|
||||
struct _FILE_OBJECT* FileObject;
|
||||
} IO_STACK_LOCATION, *PIO_STACK_LOCATION;
|
||||
|
||||
typedef struct _IO_STATUS_BLOCK
|
||||
|
@ -313,12 +315,12 @@ typedef struct _IRP
|
|||
IO_STATUS_BLOCK IoStatus;
|
||||
KPROCESSOR_MODE RequestorMode;
|
||||
BOOLEAN PendingReturned;
|
||||
CHAR StackCount;
|
||||
CHAR CurrentLocation;
|
||||
BOOLEAN Cancel;
|
||||
KIRQL CancelIrql;
|
||||
PDRIVER_CANCEL CancelRoutine;
|
||||
PVOID UserBuffer;
|
||||
PVOID ApcEnvironment;
|
||||
ULONG AllocationFlags;
|
||||
CCHAR ApcEnvironment;// CCHAR or PVOID?
|
||||
UCHAR AllocationFlags;//UCHAR or ULONG?
|
||||
PIO_STATUS_BLOCK UserIosb;
|
||||
PKEVENT UserEvent;
|
||||
union
|
||||
|
@ -330,6 +332,8 @@ typedef struct _IRP
|
|||
} AsynchronousParameters;
|
||||
LARGE_INTEGER AllocationSize;
|
||||
} Overlay;
|
||||
PDRIVER_CANCEL CancelRoutine;
|
||||
PVOID UserBuffer;
|
||||
union
|
||||
{
|
||||
struct
|
||||
|
@ -344,8 +348,6 @@ typedef struct _IRP
|
|||
KAPC Apc;
|
||||
ULONG CompletionKey;
|
||||
} Tail;
|
||||
CHAR StackCount;
|
||||
CHAR CurrentLocation;
|
||||
IO_STACK_LOCATION Stack[1];
|
||||
} IRP, *PIRP;
|
||||
|
||||
|
@ -404,17 +406,60 @@ typedef struct _DEVICE_OBJECT
|
|||
/*
|
||||
* Dispatch routine type declaration
|
||||
*/
|
||||
typedef NTSTATUS (*PDRIVER_DISPATCH)(struct _DEVICE_OBJECT*, IRP*);
|
||||
typedef NTSTATUS STDCALL (*PDRIVER_DISPATCH)(struct _DEVICE_OBJECT*, IRP*);
|
||||
|
||||
|
||||
/*
|
||||
* Fast i/o routine type declaration
|
||||
*/
|
||||
typedef NTSTATUS (*PFAST_IO_DISPATCH)(struct _DEVICE_OBJECT*, IRP*);
|
||||
//typedef NTSTATUS (*PFAST_IO_DISPATCH)(struct _DEVICE_OBJECT*, IRP*);
|
||||
//FIXME : this type is ok for read and write, but not for all routines
|
||||
typedef BOOLEAN STDCALL (*PFAST_IO_ROUTINE) (
|
||||
IN struct _FILE_OBJECT *FileObject,
|
||||
IN PLARGE_INTEGER FileOffset,
|
||||
IN ULONG Length,
|
||||
IN BOOLEAN Wait,
|
||||
IN ULONG LockKey,
|
||||
OUT PVOID Buffer,
|
||||
OUT PIO_STATUS_BLOCK IoStatus,
|
||||
IN struct _DEVICE_OBJECT *DeviceObject
|
||||
);
|
||||
|
||||
typedef struct _FAST_IO_DISPATCH {
|
||||
ULONG SizeOfFastIoDispatch;
|
||||
PFAST_IO_ROUTINE FastIoCheckIfPossible;
|
||||
PFAST_IO_ROUTINE FastIoRead;
|
||||
PFAST_IO_ROUTINE FastIoWrite;
|
||||
PFAST_IO_ROUTINE FastIoQueryBasicInfo;
|
||||
PFAST_IO_ROUTINE FastIoQueryStandardInfo;
|
||||
PFAST_IO_ROUTINE FastIoLock;
|
||||
PFAST_IO_ROUTINE FastIoUnlockSingle;
|
||||
PFAST_IO_ROUTINE FastIoUnlockAll;
|
||||
PFAST_IO_ROUTINE FastIoUnlockAllByKey;
|
||||
PFAST_IO_ROUTINE FastIoDeviceControl;
|
||||
PFAST_IO_ROUTINE AcquireFileForNtCreateSection;
|
||||
PFAST_IO_ROUTINE ReleaseFileForNtCreateSection;
|
||||
PFAST_IO_ROUTINE FastIoDetachDevice;
|
||||
PFAST_IO_ROUTINE FastIoQueryNetworkOpenInfo;
|
||||
PFAST_IO_ROUTINE AcquireForModWrite;
|
||||
PFAST_IO_ROUTINE MdlRead;
|
||||
PFAST_IO_ROUTINE MdlReadComplete;
|
||||
PFAST_IO_ROUTINE PrepareMdlWrite;
|
||||
PFAST_IO_ROUTINE MdlWriteComplete;
|
||||
PFAST_IO_ROUTINE FastIoReadCompressed;
|
||||
PFAST_IO_ROUTINE FastIoWriteCompressed;
|
||||
PFAST_IO_ROUTINE MdlReadCompleteCompressed;
|
||||
PFAST_IO_ROUTINE MdlWriteCompleteCompressed;
|
||||
PFAST_IO_ROUTINE FastIoQueryOpen;
|
||||
PFAST_IO_ROUTINE ReleaseForModWrite;
|
||||
PFAST_IO_ROUTINE AcquireForCcFlush;
|
||||
PFAST_IO_ROUTINE ReleaseForCcFlush;
|
||||
} FAST_IO_DISPATCH, *PFAST_IO_DISPATCH;
|
||||
|
||||
/*
|
||||
* Dispatch routine type declaration
|
||||
*/
|
||||
typedef VOID (*PDRIVER_STARTIO)(struct _DEVICE_OBJECT*, IRP*);
|
||||
typedef VOID STDCALL (*PDRIVER_STARTIO)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
|
||||
|
||||
/*
|
||||
* Dispatch routine type declaration
|
||||
|
|
|
@ -231,6 +231,7 @@ typedef struct _KDEVICE_QUEUE_ENTRY
|
|||
{
|
||||
LIST_ENTRY Entry;
|
||||
ULONG Key;
|
||||
BOOLEAN Inserted;
|
||||
} KDEVICE_QUEUE_ENTRY, *PKDEVICE_QUEUE_ENTRY;
|
||||
|
||||
typedef struct _WAIT_CONTEXT_BLOCK
|
||||
|
|
|
@ -14,7 +14,7 @@ typedef ULONG KAFFINITY, *PKAFFINITY;
|
|||
/*
|
||||
* Various other types (all quite pointless)
|
||||
*/
|
||||
typedef ULONG KPROCESSOR_MODE;
|
||||
typedef CCHAR KPROCESSOR_MODE;
|
||||
typedef UCHAR KIRQL;
|
||||
typedef KIRQL* PKIRQL;
|
||||
typedef ULONG IO_ALLOCATION_ACTION;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
/* $Id: display.c,v 1.7 2000/07/01 18:23:06 ekohl Exp $
|
||||
/* $Id: display.c,v 1.8 2000/09/12 10:12:11 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -130,6 +130,9 @@ HalInitializeDisplay (PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
ScanLines = (inb_p (CRTC_DATA) & 0x1F) + 1;
|
||||
SizeY = SizeY / ScanLines;
|
||||
|
||||
#ifdef BOCHS_30ROWS
|
||||
SizeY=25;
|
||||
#endif
|
||||
HalClearDisplay ();
|
||||
|
||||
DisplayInitialized = TRUE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: device.c,v 1.21 2000/09/10 13:54:01 ekohl Exp $
|
||||
/* $Id: device.c,v 1.22 2000/09/12 10:12:11 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -234,7 +234,7 @@ IoRegisterDriverReinitialization(PDRIVER_OBJECT DriverObject,
|
|||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS IopDefaultDispatchFunction(PDEVICE_OBJECT DeviceObject,
|
||||
NTSTATUS STDCALL IopDefaultDispatchFunction(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
Irp->IoStatus.Status = STATUS_NOT_IMPLEMENTED;
|
||||
|
|
|
@ -85,9 +85,14 @@ NTSTATUS STDCALL NtCreateNamedPipeFile(
|
|||
StackLoc->Control = 0;
|
||||
StackLoc->DeviceObject = FileObject->DeviceObject;
|
||||
StackLoc->FileObject = FileObject;
|
||||
StackLoc->Parameters.CreateNamedPipe.CreateDisposition =
|
||||
CreateDisposition;
|
||||
StackLoc->Parameters.CreateNamedPipe.CreateOptions = CreateOptions;
|
||||
StackLoc->Parameters.Create.Options = (CreateOptions & FILE_VALID_OPTION_FLAGS);
|
||||
StackLoc->Parameters.Create.Options |= (CreateDisposition << 24);
|
||||
// StackLoc->Parameters.CreateNamedPipe.CreateDisposition =
|
||||
// CreateDisposition;
|
||||
// StackLoc->Parameters.CreateNamedPipe.CreateOptions = CreateOptions;
|
||||
/*
|
||||
FIXME : this informations can't be added in Parameters struct because this struct
|
||||
must be four WORDs long
|
||||
StackLoc->Parameters.CreateNamedPipe.ShareAccess = ShareAccess;
|
||||
StackLoc->Parameters.CreateNamedPipe.WriteModeMessage = WriteModeMessage;
|
||||
StackLoc->Parameters.CreateNamedPipe.ReadModeMessage = ReadModeMessage;
|
||||
|
@ -103,6 +108,7 @@ NTSTATUS STDCALL NtCreateNamedPipeFile(
|
|||
{
|
||||
StackLoc->Parameters.CreateNamedPipe.TimeOut.QuadPart = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
Status = IoCallDriver(FileObject->DeviceObject,Irp);
|
||||
if (Status == STATUS_PENDING)
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
#
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
#HOST = mingw32-windows
|
||||
|
||||
# uncomment if you use bochs and it displays only 30 rows
|
||||
# BOCHS_30ROWS = yes
|
||||
|
||||
ifeq ($(HOST),mingw32-linux)
|
||||
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
||||
endif
|
||||
|
@ -53,11 +58,16 @@ DEBUGGING_CFLAGS =
|
|||
OPTIMIZATIONS = -O2
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(WARNINGS_ARE_ERRORS),yes)
|
||||
EXTRA_CFLAGS = -Werror
|
||||
endif
|
||||
|
||||
ifeq ($(BOCHS_30ROWS),yes)
|
||||
DEFINES = -DDBG -DBOCHS_30ROWS
|
||||
else
|
||||
DEFINES = -DDBG
|
||||
endif
|
||||
|
||||
ifeq ($(WIN32_LEAN_AND_MEAN),yes)
|
||||
LEAN_AND_MEAN_DEFINE = -DWIN32_LEAN_AND_MEAN
|
||||
|
|
Loading…
Reference in a new issue