-/* $Id: isapnp.c,v 1.8 2003/11/14 17:13:24 weiden Exp $
+/* $Id: isapnp.c,v 1.9 2004/02/10 16:22:54 navaraf Exp $
*
* PROJECT: ReactOS ISA PnP Bus driver
* FILE: isapnp.c
{
DbgPrint("ISA Plug and Play Bus Driver\n");
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)ISAPNPDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)ISAPNPDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)ISAPNPDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)ISAPNPDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)ISAPNPDispatchDeviceControl;
- DriverObject->MajorFunction[IRP_MJ_PNP] = (PDRIVER_DISPATCH)ISAPNPControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = ISAPNPDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = ISAPNPDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = ISAPNPDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = ISAPNPDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = ISAPNPDispatchDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_PNP] = ISAPNPControl;
DriverObject->DriverExtension->AddDevice = ISAPNPAddDevice;
return STATUS_SUCCESS;
-/* $Id: pci.c,v 1.5 2003/12/12 21:54:42 ekohl Exp $
+/* $Id: pci.c,v 1.6 2004/02/10 16:22:55 navaraf Exp $
*
* PROJECT: ReactOS PCI Bus driver
* FILE: pci.c
{
DbgPrint("Peripheral Component Interconnect Bus Driver\n");
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH) PciDispatchDeviceControl;
- DriverObject->MajorFunction[IRP_MJ_PNP] = (PDRIVER_DISPATCH) PciPnpControl;
- DriverObject->MajorFunction[IRP_MJ_POWER] = (PDRIVER_DISPATCH) PciPowerControl;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = PciDispatchDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_PNP] = PciPnpControl;
+ DriverObject->MajorFunction[IRP_MJ_POWER] = PciPowerControl;
DriverObject->DriverExtension->AddDevice = PciAddDevice;
return STATUS_SUCCESS;
-/* $Id: beep.c,v 1.17 2003/11/17 02:12:48 hyperion Exp $
+/* $Id: beep.c,v 1.18 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#define NDEBUG
#include <debug.h>
-
/* TYEPEDEFS ***************************************************************/
typedef struct _BEEP_DEVICE_EXTENSION
static NTSTATUS STDCALL
-BeepCreate(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
+BeepCreate(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
/*
* FUNCTION: Handles user mode requests
* ARGUMENTS:
}
-static NTSTATUS STDCALL
+static VOID STDCALL
BeepUnload(PDRIVER_OBJECT DriverObject)
{
DPRINT("BeepUnload() called!\n");
- return(STATUS_SUCCESS);
}
DPRINT("Beep Device Driver 0.0.3\n");
DriverObject->Flags = 0;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)BeepCreate;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)BeepClose;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)BeepCleanup;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)BeepDeviceControl;
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)BeepUnload;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = BeepCreate;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = BeepClose;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = BeepCleanup;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = BeepDeviceControl;
+ DriverObject->DriverUnload = BeepUnload;
Status = IoCreateDevice(DriverObject,
sizeof(DEVICE_EXTENSION),
-/* $Id: blue.c,v 1.43 2004/01/28 20:51:44 ekohl Exp $
+/* $Id: blue.c,v 1.44 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
DPRINT ("Screen Driver 0.0.6\n");
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH) ScrCreate;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH) ScrDispatch;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH) ScrDispatch;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH) ScrWrite;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL ] = (PDRIVER_DISPATCH) ScrIoControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = ScrCreate;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = ScrDispatch;
+ DriverObject->MajorFunction[IRP_MJ_READ] = ScrDispatch;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = ScrWrite;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL ] = ScrIoControl;
IoCreateDevice (DriverObject,
sizeof(DEVICE_EXTENSION),
-/* $Id: bootvid.c,v 1.5 2003/11/17 02:12:48 hyperion Exp $
+/* $Id: bootvid.c,v 1.6 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return TRUE;
}
-NTSTATUS STDCALL_FUNC
+NTSTATUS STDCALL
VidDispatch(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
PIO_STACK_LOCATION piosStack = IoGetCurrentIrpStackLocation(Irp);
BootVidDriverObject = DriverObject;
/* register driver routines */
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)VidDispatch;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)VidDispatch;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] =
- (PDRIVER_DISPATCH)VidDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = VidDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = VidDispatch;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = VidDispatch;
DriverObject->DriverUnload = NULL;
/* create device */
-/* $Id: debugout.c,v 1.2 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: debugout.c,v 1.3 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#include <rosrtl/string.h>
/* FUNCTIONS */
-NTSTATUS STDCALL_FUNC
+NTSTATUS STDCALL
DebugOutDispatch(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
PIO_STACK_LOCATION piosStack = IoGetCurrentIrpStackLocation(Irp);
return nErrCode;
}
-NTSTATUS STDCALL
+VOID STDCALL
DebugOutUnload(PDRIVER_OBJECT DriverObject)
{
- return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS Status;
/* register driver routines */
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH) DebugOutDispatch;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH) DebugOutDispatch;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH) DebugOutDispatch;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH) DebugOutDispatch;
- /* DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = (PDRIVER_DISPATCH) DebugOutDispatch; */
- DriverObject->DriverUnload = (PDRIVER_UNLOAD) DebugOutUnload;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = DebugOutDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = DebugOutDispatch;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = DebugOutDispatch;
+ DriverObject->MajorFunction[IRP_MJ_READ] = DebugOutDispatch;
+ /* DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = DebugOutDispatch; */
+ DriverObject->DriverUnload = DebugOutUnload;
/* create device */
RtlRosInitUnicodeStringFromLiteral(&DeviceName, L"\\Device\\DebugOut");
DPRINT ("Floppy driver\n");
/* Export other driver entry points... */
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)FloppyDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)FloppyDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)FloppyDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)FloppyDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] =
- (PDRIVER_DISPATCH)FloppyDispatchDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = FloppyDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = FloppyDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = FloppyDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = FloppyDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = FloppyDispatchDeviceControl;
/* Try to detect controller and abort if it fails */
if (!FloppyCreateController (DriverObject,
-/* $Id: ide.c,v 1.59 2003/09/20 20:12:43 weiden Exp $
+/* $Id: ide.c,v 1.60 2004/02/10 16:22:55 navaraf Exp $
*
* IDE.C - IDE Disk driver
* written by Rex Jolliff
ULONG Bus;
ULONG Slot;
ULONG Size;
- ULONG i;
NTSTATUS ReturnedStatus = STATUS_NO_SUCH_DEVICE;
NTSTATUS Status;
INT ControllerIdx = 0;
IDE_DRIVE_IDENTIFY DrvParms;
PDEVICE_OBJECT DiskDeviceObject;
PDEVICE_OBJECT PartitionDeviceObject;
- PIDE_DEVICE_EXTENSION DiskDeviceExtension;
UNICODE_STRING UnicodeDeviceDirName;
OBJECT_ATTRIBUTES DeviceDirAttributes;
HANDLE Handle;
default:
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
Irp->IoStatus.Information = 0;
- KEBUGCHECK((ULONG)Irp);
+ KeBugCheck((ULONG)Irp);
IoCompleteRequest(Irp, IO_NO_INCREMENT);
IoStartNextPacket(DeviceObject, FALSE);
break;
}
-static NTSTATUS STDCALL
+static VOID STDCALL
MPU401Unload(PDRIVER_OBJECT DriverObject)
{
DPRINT("MPU401Unload() called!\n");
- return(STATUS_SUCCESS);
}
// DeviceExtension->RegistryPath = RegistryPath;
DriverObject->Flags = 0;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)MPU401Create;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)MPU401Close;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)MPU401Cleanup;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)MPU401DeviceControl;
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)MPU401Unload;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = MPU401Create;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = MPU401Close;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = MPU401Cleanup;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = MPU401DeviceControl;
+ DriverObject->DriverUnload = MPU401Unload;
// Major hack to just get this damn thing working:
Status = InitDevice(RegistryPath, DriverObject); // ????
Prototypes for functions in settings.c :
*/
-NTSTATUS EnumDeviceKeys(
+NTSTATUS STDCALL EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
IN PVOID Context);
-NTSTATUS LoadSettings(
+NTSTATUS STDCALL LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,
-NTSTATUS EnumDeviceKeys(
+NTSTATUS STDCALL EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
-NTSTATUS LoadSettings(
+NTSTATUS STDCALL LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,
-/* $Id: null.c,v 1.12 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: null.c,v 1.13 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return (nErrCode);
}
-NTSTATUS STDCALL
+VOID STDCALL
NullUnload(PDRIVER_OBJECT DriverObject)
{
- return(STATUS_SUCCESS);
}
NTSTATUS STDCALL
NTSTATUS nErrCode;
/* register driver routines */
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)NullDispatch;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)NullDispatch;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)NullDispatch;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)NullDispatch;
- /* DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = (PDRIVER_DISPATCH)NullDispatch; */
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)NullUnload;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = NullDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = NullDispatch;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = NullDispatch;
+ DriverObject->MajorFunction[IRP_MJ_READ] = NullDispatch;
+ /* DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = NullDispatch; */
+ DriverObject->DriverUnload = NullUnload;
/* create null device */
RtlRosInitUnicodeStringFromLiteral(&wstrDeviceName, L"\\Device\\Null");
-/* $Id: parallel.c,v 1.10 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: parallel.c,v 1.11 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
}
DeviceObject->Flags=0;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)Dispatch;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)Dispatch;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)Dispatch;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = Dispatch;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = Dispatch;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = Dispatch;
DriverObject->DriverUnload = NULL;
return(STATUS_SUCCESS);
DPRINT("Ramdisk driver\n");
/* Export other driver entry points... */
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)RamdrvDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)RamdrvDispatchOpenClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)RamdrvDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)RamdrvDispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)RamdrvDispatchDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = RamdrvDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = RamdrvDispatchOpenClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = RamdrvDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = RamdrvDispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = RamdrvDispatchDeviceControl;
// create device and symbolic link
outl_p(PORT,Offset);
}
-NTSTATUS Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS STDCALL
+Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* FUNCTION: Handles user mode requests
* ARGUMENTS:
}
-IO_ALLOCATION_ACTION SoundProgramDMA(
+IO_ALLOCATION_ACTION STDCALL SoundProgramDMA(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID MapRegisterBase,
-NTSTATUS EnumDeviceKeys(
+NTSTATUS STDCALL EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
-NTSTATUS LoadSettings(
+NTSTATUS STDCALL LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,
}
-static NTSTATUS STDCALL
+static VOID STDCALL
BlasterUnload(PDRIVER_OBJECT DriverObject)
{
DPRINT("BlasterUnload() called!\n");
- return(STATUS_SUCCESS);
}
// DeviceExtension->RegistryPath = RegistryPath;
DriverObject->Flags = 0;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)BlasterCreate;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)BlasterClose;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)BlasterCleanup;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)BlasterDeviceControl;
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)BlasterUnload;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = BlasterCreate;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = BlasterClose;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = BlasterCleanup;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = BlasterDeviceControl;
+ DriverObject->DriverUnload = BlasterUnload;
// Major hack to just get this damn thing working:
- Status = InitDevice(RegistryPath, DriverObject); // ????
+ Status = InitDevice(RegistryPath->Buffer, DriverObject); // ????
// DPRINT("Enumerating devices at %wZ\n", RegistryPath);
Prototypes for functions in settings.c :
*/
-NTSTATUS EnumDeviceKeys(
+NTSTATUS STDCALL EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
IN PVOID Context);
-NTSTATUS LoadSettings(
+NTSTATUS STDCALL LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,
SB16 sb16;
sb_status sb16_getenvironment(void);
-NTSTATUS Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS STDCALL Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* FUNCTION: Handles user mode requests
* ARGUMENTS:
#if 0
-NTSTATUS TestWrite(PIRP Irp, PIO_STACK_LOCATION Stk)
+NTSTATUS STDCALL TestWrite(PIRP Irp, PIO_STACK_LOCATION Stk)
{
PVOID Address;
return(STATUS_SUCCESS);
}
-NTSTATUS TestDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS STDCALL TestDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* FUNCTION: Handles user mode requests
* ARGUMENTS:
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: cdfs.c,v 1.11 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: cdfs.c,v 1.12 2004/02/10 16:22:55 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* Initialize driver data */
DeviceObject->Flags = DO_DIRECT_IO;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)CdfsClose;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)CdfsCleanup;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)CdfsCreate;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)CdfsRead;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)CdfsWrite;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = CdfsClose;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = CdfsCleanup;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = CdfsCreate;
+ DriverObject->MajorFunction[IRP_MJ_READ] = CdfsRead;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = CdfsWrite;
DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
- (PDRIVER_DISPATCH)CdfsFileSystemControl;
+ CdfsFileSystemControl;
DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
- (PDRIVER_DISPATCH)CdfsDirectoryControl;
+ CdfsDirectoryControl;
DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
- (PDRIVER_DISPATCH)CdfsQueryInformation;
+ CdfsQueryInformation;
DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] =
- (PDRIVER_DISPATCH)CdfsSetInformation;
+ CdfsSetInformation;
DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH)CdfsQueryVolumeInformation;
+ CdfsQueryVolumeInformation;
DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH)CdfsSetVolumeInformation;
+ CdfsSetVolumeInformation;
DriverObject->DriverUnload = NULL;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: fs_rec.c,v 1.7 2003/09/20 20:31:57 weiden Exp $
+/* $Id: fs_rec.c,v 1.8 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
DeviceCount = 0;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)FsRecCreate;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)FsRecClose;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)FsRecClose;
- DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = (PDRIVER_DISPATCH)FsRecFsControl;
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)FsRecUnload;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = FsRecCreate;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = FsRecClose;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = FsRecClose;
+ DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = FsRecFsControl;
+ DriverObject->DriverUnload = FsRecUnload;
ConfigInfo = IoGetConfigurationInformation();
-/* $Id: msfs.c,v 1.6 2003/09/20 20:31:57 weiden Exp $
+/* $Id: msfs.c,v 1.7 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
DbgPrint("Mailslot FSD 0.0.1\n");
DriverObject->Flags = 0;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)MsfsCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = MsfsCreate;
DriverObject->MajorFunction[IRP_MJ_CREATE_MAILSLOT] =
- (PDRIVER_DISPATCH)MsfsCreateMailslot;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)MsfsClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)MsfsRead;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)MsfsWrite;
+ MsfsCreateMailslot;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = MsfsClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = MsfsRead;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = MsfsWrite;
DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
- (PDRIVER_DISPATCH)MsfsQueryInformation;
+ MsfsQueryInformation;
DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] =
- (PDRIVER_DISPATCH)MsfsSetInformation;
+ MsfsSetInformation;
// DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
-// (PDRIVER_DISPATCH)MsfsDirectoryControl;
-// DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = (PDRIVER_DISPATCH)MsfsFlushBuffers;
-// DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = (PDRIVER_DISPATCH)MsfsShutdown;
+// MsfsDirectoryControl;
+// DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = MsfsFlushBuffers;
+// DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = MsfsShutdown;
// DriverObject->MajorFunction[IRP_MJ_QUERY_SECURITY] =
-// (PDRIVER_DISPATCH)MsfsQuerySecurity;
+// MsfsQuerySecurity;
// DriverObject->MajorFunction[IRP_MJ_SET_SECURITY] =
-// (PDRIVER_DISPATCH)MsfsSetSecurity;
+// MsfsSetSecurity;
DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
- (PDRIVER_DISPATCH)MsfsFileSystemControl;
+ MsfsFileSystemControl;
DriverObject->DriverUnload = NULL;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: mup.c,v 1.2 2003/09/20 22:44:21 weiden Exp $
+/* $Id: mup.c,v 1.3 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* Initialize driver data */
DeviceObject->Flags = DO_DIRECT_IO;
-// DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)NtfsClose;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)MupCreate;
- DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = (PDRIVER_DISPATCH)MupCreate;
- DriverObject->MajorFunction[IRP_MJ_CREATE_MAILSLOT] = (PDRIVER_DISPATCH)MupCreate;
-// DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)NtfsRead;
-// DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)NtfsWrite;
+// DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = MupCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = MupCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE_MAILSLOT] = MupCreate;
+// DriverObject->MajorFunction[IRP_MJ_READ] = NtfsRead;
+// DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsWrite;
// DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
-// (PDRIVER_DISPATCH)NtfsFileSystemControl;
+// NtfsFileSystemControl;
// DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
-// (PDRIVER_DISPATCH)NtfsDirectoryControl;
+// NtfsDirectoryControl;
// DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
-// (PDRIVER_DISPATCH)NtfsQueryInformation;
+// NtfsQueryInformation;
// DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
-// (PDRIVER_DISPATCH)NtfsQueryVolumeInformation;
+// NtfsQueryVolumeInformation;
// DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
-// (PDRIVER_DISPATCH)NtfsSetVolumeInformation;
+// NtfsSetVolumeInformation;
DriverObject->DriverUnload = NULL;
-/* $Id: npfs.c,v 1.7 2003/09/20 20:31:57 weiden Exp $
+/* $Id: npfs.c,v 1.8 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
DbgPrint("Named Pipe FSD 0.0.2\n");
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)NpfsCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = NpfsCreate;
DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] =
- (PDRIVER_DISPATCH)NpfsCreateNamedPipe;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)NpfsClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)NpfsRead;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)NpfsWrite;
+ NpfsCreateNamedPipe;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = NpfsClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = NpfsRead;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = NpfsWrite;
DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
- (PDRIVER_DISPATCH)NpfsQueryInformation;
+ NpfsQueryInformation;
DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] =
- (PDRIVER_DISPATCH)NpfsSetInformation;
+ NpfsSetInformation;
DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH)NpfsQueryVolumeInformation;
-// DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)NpfsCleanup;
-// DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = (PDRIVER_DISPATCH)NpfsFlushBuffers;
+ NpfsQueryVolumeInformation;
+// DriverObject->MajorFunction[IRP_MJ_CLEANUP] = NpfsCleanup;
+// DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = NpfsFlushBuffers;
// DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
-// (PDRIVER_DISPATCH)NpfsDirectoryControl;
+// NpfsDirectoryControl;
DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
- (PDRIVER_DISPATCH)NpfsFileSystemControl;
+ NpfsFileSystemControl;
// DriverObject->MajorFunction[IRP_MJ_QUERY_SECURITY] =
-// (PDRIVER_DISPATCH)NpfsQuerySecurity;
+// NpfsQuerySecurity;
// DriverObject->MajorFunction[IRP_MJ_SET_SECURITY] =
-// (PDRIVER_DISPATCH)NpfsSetSecurity;
+// NpfsSetSecurity;
DriverObject->DriverUnload = NULL;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: ntfs.c,v 1.4 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: ntfs.c,v 1.5 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* Initialize driver data */
DeviceObject->Flags = DO_DIRECT_IO;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH) NtfsClose;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH) NtfsCreate;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH) NtfsRead;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH) NtfsWrite;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = NtfsCreate;
+ DriverObject->MajorFunction[IRP_MJ_READ] = NtfsRead;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsWrite;
DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
- (PDRIVER_DISPATCH) NtfsFileSystemControl;
+ NtfsFileSystemControl;
DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
- (PDRIVER_DISPATCH) NtfsDirectoryControl;
+ NtfsDirectoryControl;
DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
- (PDRIVER_DISPATCH) NtfsQueryInformation;
+ NtfsQueryInformation;
DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH) NtfsQueryVolumeInformation;
+ NtfsQueryVolumeInformation;
DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH) NtfsSetVolumeInformation;
+ NtfsSetVolumeInformation;
DriverObject->DriverUnload = NULL;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: template.c,v 1.5 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: template.c,v 1.6 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* FUNCTIONS ****************************************************************/
-NTSTATUS
+NTSTATUS STDCALL
FsdCloseFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject)
/*
}
-NTSTATUS
+NTSTATUS STDCALL
FsdOpenFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject,
PWSTR FileName)
}
-BOOLEAN
+BOOLEAN STDCALL
FsdHasFileSystem(PDEVICE_OBJECT DeviceToMount)
/*
* FUNCTION: Tests if the device contains a filesystem that can be mounted
}
-NTSTATUS
+NTSTATUS STDCALL
FsdMountDevice(PDEVICE_EXTENSION DeviceExt,
PDEVICE_OBJECT DeviceToMount)
/*
}
-NTSTATUS
+NTSTATUS STDCALL
FsdReadFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject,
PVOID Buffer,
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: iface.c,v 1.73 2003/11/17 02:12:49 hyperion Exp $
+/* $Id: iface.c,v 1.74 2004/02/10 16:22:56 navaraf Exp $
*
* PROJECT: ReactOS kernel
* FILE: drivers/fs/vfat/iface.c
VfatGlobalData->DeviceObject = DeviceObject;
DeviceObject->Flags = DO_DIRECT_IO;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] = (PDRIVER_DISPATCH)VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_READ] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_SET_INFORMATION] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] = VfatBuildRequest;
DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH)VfatBuildRequest;
+ VfatBuildRequest;
DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
- (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = (PDRIVER_DISPATCH)VfatShutdown;
- DriverObject->MajorFunction[IRP_MJ_LOCK_CONTROL] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)VfatBuildRequest;
- DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = (PDRIVER_DISPATCH)VfatBuildRequest;
+ VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = VfatShutdown;
+ DriverObject->MajorFunction[IRP_MJ_LOCK_CONTROL] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = VfatBuildRequest;
+ DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = VfatBuildRequest;
DriverObject->DriverUnload = NULL;
DPRINT("KeysRequired %d\n",KeysRequired);
}
-NTSTATUS KbdInternalDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS STDCALL KbdInternalDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION stk;
PINTERNAL_I8042_HOOK_KEYBOARD hookKeyboard;
DPRINT("Keyboard Driver 0.0.4\n");
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)KbdDispatch;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)KbdDispatch;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)KbdDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = KbdDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = KbdDispatch;
+ DriverObject->MajorFunction[IRP_MJ_READ] = KbdDispatch;
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] =
- (PDRIVER_DISPATCH)KbdInternalDeviceControl;
+ KbdInternalDeviceControl;
DriverObject->DriverStartIo = KbdStartIo;
return ioStatus.Status;
}
-NTSTATUS STDCALL_FUNC MouseClassDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS STDCALL MouseClassDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
NTSTATUS Status;
}
}
-NTSTATUS STDCALL_FUNC MouseClassInternalDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
+NTSTATUS STDCALL MouseClassInternalDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
// Retrieve GDI's callback
UNICODE_STRING SymlinkName = ROS_STRING_INITIALIZER(L"\\??\\MouseClass"); NTSTATUS Status;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)MouseClassDispatch;
-// DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)MouseClassDispatch;
-// DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)MouseClassDispatch;
- DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = (PDRIVER_DISPATCH)MouseClassInternalDeviceControl; // to get GDI callback
-// DriverObject->DriverStartIo = (PDRIVER_STARTIO)MouseClassStartIo;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = MouseClassDispatch;
+// DriverObject->MajorFunction[IRP_MJ_CLOSE] = MouseClassDispatch;
+// DriverObject->MajorFunction[IRP_MJ_READ] = MouseClassDispatch;
+ DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = MouseClassInternalDeviceControl; // to get GDI callback
+// DriverObject->DriverStartIo = MouseClassStartIo;
Status = IoCreateDevice(DriverObject,
sizeof(DEVICE_EXTENSION),
return STATUS_UNSUCCESSFUL;
}
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)PS2MouseDispatch;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)PS2MouseDispatch;
- DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = (PDRIVER_DISPATCH)PS2MouseInternalDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = PS2MouseDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = PS2MouseDispatch;
+ DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = PS2MouseInternalDeviceControl;
DriverObject->DriverStartIo = PS2MouseStartIo;
DeviceObject = AllocatePointerDevice(DriverObject);
return STATUS_UNSUCCESSFUL;
}
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)SerialMouseDispatch;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)SerialMouseDispatch;
- DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = (PDRIVER_DISPATCH)SerialMouseInternalDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = SerialMouseDispatch;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = SerialMouseDispatch;
+ DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = SerialMouseInternalDeviceControl;
DriverObject->DriverStartIo = SerialMouseStartIo;
return STATUS_SUCCESS;
extern LIST_ENTRY OrphanAdapterListHead;
\f
-VOID MainUnload(
+VOID STDCALL MainUnload(
PDRIVER_OBJECT DriverObject)
/*
* FUNCTION: Unloads the driver
InitializeListHead(&OrphanAdapterListHead);
KeInitializeSpinLock(&OrphanAdapterListLock);
- DriverObject->DriverUnload = (PDRIVER_UNLOAD)MainUnload;
+ DriverObject->DriverUnload = MainUnload;
/*
* until we have PNP support, query the enum key and NdisFindDevice() each one
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: class2.c,v 1.47 2004/02/07 21:36:56 gvg Exp $
+/* $Id: class2.c,v 1.48 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
DPRINT("ScsiClassInitialize() called!\n");
- DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)ScsiClassCreateClose;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)ScsiClassCreateClose;
- DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)ScsiClassReadWrite;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)ScsiClassReadWrite;
- DriverObject->MajorFunction[IRP_MJ_SCSI] = (PDRIVER_DISPATCH)ScsiClassInternalIoControl;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)ScsiClassDeviceDispatch;
- DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = (PDRIVER_DISPATCH)ScsiClassShutdownFlush;
- DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = (PDRIVER_DISPATCH)ScsiClassShutdownFlush;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = ScsiClassCreateClose;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = ScsiClassCreateClose;
+ DriverObject->MajorFunction[IRP_MJ_READ] = ScsiClassReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = ScsiClassReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_SCSI] = ScsiClassInternalIoControl;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = ScsiClassDeviceDispatch;
+ DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = ScsiClassShutdownFlush;
+ DriverObject->MajorFunction[IRP_MJ_FLUSH_BUFFERS] = ScsiClassShutdownFlush;
if (InitializationData->ClassStartIo)
{
DriverObject->DriverStartIo = InitializationData->ClassStartIo;
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: videoprt.c,v 1.1 2004/01/19 15:56:53 navaraf Exp $
+ * $Id: videoprt.c,v 1.2 2004/02/10 16:22:56 navaraf Exp $
*/
#include "videoprt.h"
MPDriverObject->DeviceObject = MPDeviceObject;
/* Initialize the miniport drivers dispatch table */
- MPDriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH) VidDispatchOpen;
- MPDriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH) VidDispatchClose;
- MPDriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH) VidDispatchDeviceControl;
+ MPDriverObject->MajorFunction[IRP_MJ_CREATE] = VidDispatchOpen;
+ MPDriverObject->MajorFunction[IRP_MJ_CLOSE] = VidDispatchClose;
+ MPDriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = VidDispatchDeviceControl;
/* Initialize our device extension */
DeviceExtension =
#define IOCTL_AFD_CONNECT \
AFD_CTL_CODE(10, METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define IOCTL_AFD_GETNAME \
+ AFD_CTL_CODE(11, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
typedef struct _FILE_REQUEST_BIND {
SOCKADDR Name;
INT Status;
} FILE_REPLY_CONNECT, *PFILE_REPLY_CONNECT;
+
+typedef struct _FILE_REQUEST_GETNAME {
+ BOOL Peer;
+} FILE_REQUEST_GETNAME, *PFILE_REQUEST_GETNAME;
+
+typedef struct _FILE_REPLY_GETNAME {
+ INT Status;
+ SOCKADDR Name;
+ INT NameSize;
+} FILE_REPLY_GETNAME, *PFILE_REPLY_GETNAME;
+
#include <poppack.h>
#endif /*__AFD_SHARED_H */
#define __INCLUDE_DDK_I386_PAGESIZE_H
#define PAGE_SIZE (4096)
+#define PAGE_SHIFT 12L
#endif /* __INCLUDE_DDK_I386_PAGESIZE_H */
#ifndef _INCLUDE_DDK_MMFUNCS_H
#define _INCLUDE_DDK_MMFUNCS_H
-/* $Id: mmfuncs.h,v 1.19 2003/12/31 05:33:03 jfilby Exp $ */
+/* $Id: mmfuncs.h,v 1.20 2004/02/10 16:22:56 navaraf Exp $ */
/* MEMORY MANAGMENT ******************************************************/
* FUNCTION: Takes a count in bytes and returns the number of pages
* required to hold it
*/
-#define BYTES_TO_PAGES(size) (?)
+#define BYTES_TO_PAGES(Size) \
+ ((ULONG) ((ULONG_PTR) (Size) >> PAGE_SHIFT) + (((ULONG) (Size) & (PAGE_SIZE - 1)) != 0))
DWORD
STDCALL
-/* $Id: haltypes.h,v 1.5 2003/12/30 18:34:58 fireball Exp $
+/* $Id: haltypes.h,v 1.6 2004/02/10 16:22:56 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#ifndef __INCLUDE_NTOS_HALTYPES_H
#define __INCLUDE_NTOS_HALTYPES_H
-#ifdef __GNUC__
-#define STDCALL_FUNC STDCALL
-#define FASTCALL_FUNC FASTCALL
-#else
-#define STDCALL_FUNC(a) (__stdcall a )
-#define FASTCALL_FUNC(a) (__fastcall a )
-#endif /*__GNUC__*/
+#ifndef STDCALL_FUNC
+#define STDCALL_FUNC(a) (STDCALL a)
+#endif
+#ifndef FASTCALL_FUNC
+#define FASTCALL_FUNC(a) (FASTCALL a)
+#endif
#include "types.h"
-/* $Id: rtltypes.h,v 1.12 2004/02/01 20:45:18 ekohl Exp $
+/* $Id: rtltypes.h,v 1.13 2004/02/10 16:22:56 navaraf Exp $
*
*/
ULONG NumberOfBits;
} RTL_BITMAP_RUN, *PRTL_BITMAP_RUN;
-#ifdef __GNUC__
-#define STDCALL_FUNC STDCALL
-#else
-#define STDCALL_FUNC(a) (__stdcall a )
-#endif /*__GNUC__*/
-
+#ifndef STDCALL_FUNC
+#define STDCALL_FUNC(a) (STDCALL a)
+#endif
typedef NTSTATUS STDCALL_FUNC
(*PRTL_QUERY_REGISTRY_ROUTINE) (PWSTR ValueName,
#include <basetsd.h>
-#ifdef __GNUC__
-#define STDCALL_FUNC STDCALL
-#else
-#define STDCALL_FUNC(a) (__stdcall a )
-#endif /*__GNUC__*/
+#ifndef STDCALL_FUNC
+#define STDCALL_FUNC(a) (STDCALL a)
+#endif
/* Fixed precision types */
typedef signed char INT8, *PINT8;
#define STDCALL __stdcall
#define CDECL __cdecl
#endif
-#define CALLBACK STDCALL_FUNC
+#define CALLBACK STDCALL
#define PASCAL WINAPI
#else
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: profile.c,v 1.6 2003/10/12 17:05:44 hbirr Exp $
+/* $Id: profile.c,v 1.7 2004/02/10 16:22:57 navaraf Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/dbg/profile.c
return STATUS_SUCCESS;
}
-VOID STDCALL_FUNC
+VOID STDCALL
KdbProfilerThreadMain(PVOID Context)
{
for (;;)