* Do not include debug.h into the main header.
* Remove one time inclusions from the main header and put them back where they belong.
* Improve header inclusions.
CORE-7716
svn path=/trunk/; revision=61948
#include "precomp.h"
+#include <debug.h>
+
/* Global CSQ struct that the CSQ functions initialize and use */
IO_CSQ Csq;
InsertTailList(&IrpQueue, &Irp->Tail.Overlay.ListEntry);
KeReleaseSemaphore(&QueueSemaphore, 0, 1, FALSE);
}
-
* 15-Feb-2004 vizzini - Created
*/
+#pragma once
+
#include <csq.h>
/*
VOID NTAPI
CsqCompleteCanceledIrp(PIO_CSQ Csq, PIRP Irp);
-
#include "precomp.h"
+#include <ntddk.h>
+#include <debug.h>
+
+#include "ioctl.h"
+#include "readwrite.h"
+
/*
* Global controller info structures. Each controller gets one. Since the system
* will probably have only one, with four being a very unlikely maximum, a static
return STATUS_SUCCESS;
}
-
* 15-Feb-2004 vizzini - Created
*/
+#pragma once
+
#define MAX_DEVICE_NAME 255
#define MAX_ARC_PATH_LEN 255
#define MAX_DRIVES_PER_CONTROLLER 4
#define GEOMETRY_144_TRACKSPERCYLINDER 2
#define GEOMETRY_144_SECTORSPERTRACK 18
#define GEOMETRY_144_BYTESPERSECTOR 512
-
#include "precomp.h"
+#include <debug.h>
+
/*
* Hardware Support Routines
*/
-
static BOOLEAN NTAPI
ReadyForWrite(PCONTROLLER_INFO ControllerInfo)
/*
INFO_(FLOPPY, "MAIN_STATUS_REGISTER =0x%x\n", READ_PORT_UCHAR(ControllerInfo->BaseAddress + MAIN_STATUS_REGISTER));
INFO_(FLOPPY, "DIGITAL_INPUT_REGISTER = 0x%x\n", READ_PORT_UCHAR(ControllerInfo->BaseAddress + DIGITAL_INPUT_REGISTER));
}
-
* in favor of shifts or bitfields
*/
+#pragma once
+
#define FLOPPY_DEFAULT_IRQ 0x6
#define FDC_PORT_BYTES 0x8
NTSTATUS NTAPI
HwTurnOffMotor(PCONTROLLER_INFO ControllerInfo);
-
#include "precomp.h"
+#include <debug.h>
NTSTATUS NTAPI
DeviceIoctl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
StopMotor(DriveInfo->ControllerInfo);
return;
}
-
* 15-Feb-2004 vizzini - Created
*/
+#pragma once
+
DRIVER_DISPATCH DeviceIoctl;
NTSTATUS NTAPI
VOID NTAPI
DeviceIoctlPassive(PDRIVE_INFO DriveInfo, PIRP Irp);
-
-#include <ntddk.h>
-#include <debug.h>
+#include <wdm.h>
#include "floppy.h"
#include "csqrtns.h"
#include "hardware.h"
-#include "csqrtns.h"
-#include "ioctl.h"
-#include "readwrite.h"
#include "precomp.h"
+#include <debug.h>
static IO_ALLOCATION_ACTION NTAPI
MapRegisterCallback(PDEVICE_OBJECT DeviceObject,
IoCompleteRequest(Irp, IO_DISK_INCREMENT);
StopMotor(DriveInfo->ControllerInfo);
}
-
* 15-Feb-2004 vizzini - Created
*/
+#pragma once
+
DRIVER_DISPATCH ReadWrite;
NTSTATUS NTAPI
VOID NTAPI
ReadWritePassive(PDRIVE_INFO DriveInfo, PIRP Irp);
-