Go to the source code of this file.
◆ GEOMETRY_144_BYTESPERSECTOR
#define GEOMETRY_144_BYTESPERSECTOR 512 |
◆ GEOMETRY_144_CYLINDERS
#define GEOMETRY_144_CYLINDERS 80 |
◆ GEOMETRY_144_MEDIATYPE
◆ GEOMETRY_144_SECTORSPERTRACK
#define GEOMETRY_144_SECTORSPERTRACK 18 |
◆ GEOMETRY_144_TRACKSPERCYLINDER
#define GEOMETRY_144_TRACKSPERCYLINDER 2 |
◆ MAX_ARC_PATH_LEN
◆ MAX_CONTROLLERS
◆ MAX_DEVICE_NAME
◆ MAX_DRIVES_PER_CONTROLLER
#define MAX_DRIVES_PER_CONTROLLER 4 |
◆ CONTROLLER_INFO
◆ DRIVE_INFO
◆ PCONTROLLER_INFO
◆ PDRIVE_INFO
◆ DriverEntry()
Definition at line 16 of file battc.c.
18{
19 DPRINT(
"Battery class driver initialized\n");
20
22}
◆ ResetChangeFlag()
Definition at line 291 of file floppy.c.
306{
308
311
312 TRACE_(FLOPPY,
"ResetChangeFlag called\n");
313
314
316
317
319
320
322
323
325 {
326 WARN_(FLOPPY,
"ResetChangeFlag(): HwSeek failed; returning STATUS_IO_DEVICE_ERROR\n");
329 }
330
332
334 {
335 WARN_(FLOPPY,
"ResetChangeFlag(): HwSenseInterruptStatus failed; bailing out\n");
338 }
339
340
342 {
343 WARN_(FLOPPY,
"ResetChangeFlag(): HwSeek failed; returning STATUS_IO_DEVICE_ERROR\n");
346 }
347
349
351 {
352 WARN_(FLOPPY,
"ResetChangeFlag(): HwSenseInterruptStatus #2 failed; bailing\n");
355 }
356
357
359 {
360 WARN_(FLOPPY,
"ResetChangeFlag(): HwDiskChanged failed; returning STATUS_IO_DEVICE_ERROR\n");
363 }
364
366
367
368 if(DiskChanged)
370
371
373}
NTSTATUS NTAPI HwSeek(PDRIVE_INFO DriveInfo, UCHAR Cylinder)
NTSTATUS NTAPI HwSenseInterruptStatus(PCONTROLLER_INFO ControllerInfo)
NTSTATUS NTAPI HwDiskChanged(PDRIVE_INFO DriveInfo, PBOOLEAN DiskChanged)
VOID NTAPI KeClearEvent(IN PKEVENT Event)
static NTSTATUS NTAPI Recalibrate(PDRIVE_INFO DriveInfo)
NTSTATUS NTAPI WaitForControllerInterrupt(PCONTROLLER_INFO ControllerInfo, PLARGE_INTEGER Timeout)
VOID NTAPI StartMotor(PDRIVE_INFO DriveInfo)
VOID NTAPI StopMotor(PCONTROLLER_INFO ControllerInfo)
struct _CONTROLLER_INFO * ControllerInfo
#define STATUS_IO_DEVICE_ERROR
#define STATUS_NO_MEDIA_IN_DEVICE
Referenced by DeviceIoctlPassive(), and ReadWritePassive().
◆ SignalMediaChanged()
Definition at line 1097 of file floppy.c.
1108{
1110
1111 TRACE_(FLOPPY,
"SignalMediaChanged called\n");
1112
1114
1115
1117 {
1119 Irp->IoStatus.Information = 0;
1120 return;
1121 }
1122
1123
1126 Irp->IoStatus.Information = 0;
1127
1128
1129
1130
1131
1132
1133
1134
1137}
VOID NTAPI IoSetHardErrorOrVerifyDevice(IN PIRP Irp, IN PDEVICE_OBJECT DeviceObject)
#define STATUS_VERIFY_REQUIRED
_In_ PDEVICE_OBJECT DeviceObject
#define IoIsErrorUserInduced(Status)
Referenced by DeviceIoctlPassive(), and ReadWritePassive().
◆ StartMotor()
Definition at line 96 of file floppy.c.
111{
114
115 TRACE_(FLOPPY,
"StartMotor called\n");
116
118 {
119
120 INFO_(FLOPPY,
"StartMotor: motor turner-offer is already running; waiting for it\n");
122 INFO_(FLOPPY,
"StartMotor: wait satisfied\n");
123 }
124
126
128 {
129 WARN_(FLOPPY,
"StartMotor(): warning: HwTurnOnMotor failed\n");
130 }
131}
NTSTATUS NTAPI HwTurnOnMotor(PDRIVE_INFO DriveInfo)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
BOOLEAN NTAPI KeCancelTimer(IN OUT PKTIMER Timer)
Referenced by AddControllers(), DeviceIoctlPassive(), ReadWritePassive(), Recalibrate(), and ResetChangeFlag().
◆ StopMotor()
◆ swprintf()
◆ WaitForControllerInterrupt()