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
◆ _swprintf()
◆ DriverEntry()
Definition at line 16 of file battc.c.
18{
19 DPRINT(
"Battery class driver initialized\n");
20
22}
◆ ResetChangeFlag()
Definition at line 354 of file floppy.c.
369{
371
374
375 TRACE_(FLOPPY,
"ResetChangeFlag called\n");
376
377
379
380
382
383
385
386
388 {
389 WARN_(FLOPPY,
"ResetChangeFlag(): HwSeek failed; returning STATUS_IO_DEVICE_ERROR\n");
392 }
393
395
397 {
398 WARN_(FLOPPY,
"ResetChangeFlag(): HwSenseInterruptStatus failed; bailing out\n");
401 }
402
403
405 {
406 WARN_(FLOPPY,
"ResetChangeFlag(): HwSeek failed; returning STATUS_IO_DEVICE_ERROR\n");
409 }
410
412
414 {
415 WARN_(FLOPPY,
"ResetChangeFlag(): HwSenseInterruptStatus #2 failed; bailing\n");
418 }
419
420
422 {
423 WARN_(FLOPPY,
"ResetChangeFlag(): HwDiskChanged failed; returning STATUS_IO_DEVICE_ERROR\n");
426 }
427
429
430
431 if(DiskChanged)
433
434
436}
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 1128 of file floppy.c.
1139{
1141
1142 TRACE_(FLOPPY,
"SignalMediaChanged called\n");
1143
1145
1146
1148 {
1150 Irp->IoStatus.Information = 0;
1151 return;
1152 }
1153
1154
1157 Irp->IoStatus.Information = 0;
1158
1159
1160
1161
1162
1163
1164
1165
1168}
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 159 of file floppy.c.
174{
177
178 TRACE_(FLOPPY,
"StartMotor called\n");
179
181 {
182
183 INFO_(FLOPPY,
"StartMotor: motor turner-offer is already running; waiting for it\n");
185 INFO_(FLOPPY,
"StartMotor: wait satisfied\n");
186 }
187
189
191 {
192 WARN_(FLOPPY,
"StartMotor(): warning: HwTurnOnMotor failed\n");
193 }
194}
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()
◆ WaitForControllerInterrupt()