ReactOS 0.4.16-dev-240-gdb5fa3b
|
Go to the source code of this file.
Definition at line 179 of file hardware.h.
#define CCR_DRC_0 0x1 |
Definition at line 180 of file hardware.h.
#define CCR_DRC_1 0x2 |
Definition at line 181 of file hardware.h.
#define CCR_DRC_250000 0x2 |
Definition at line 185 of file hardware.h.
#define CCR_DRC_500000 0x0 |
Definition at line 184 of file hardware.h.
#define COMMAND_CONFIGURE 0x13 |
Definition at line 202 of file hardware.h.
#define COMMAND_FORMAT_TRACK 0xD |
Definition at line 198 of file hardware.h.
#define COMMAND_HEAD_0 0x0 |
Definition at line 253 of file hardware.h.
#define COMMAND_HEAD_1 0x1 |
Definition at line 254 of file hardware.h.
#define COMMAND_HEAD_NUMBER 0x4 |
Definition at line 235 of file hardware.h.
#define COMMAND_HEAD_NUMBER_SHIFT 0x2 |
Definition at line 236 of file hardware.h.
#define COMMAND_READ_DATA 0x6 |
Definition at line 192 of file hardware.h.
#define COMMAND_READ_DELETED_DATA 0xC |
Definition at line 197 of file hardware.h.
#define COMMAND_READ_ID 0xA |
Definition at line 196 of file hardware.h.
#define COMMAND_READ_TRACK 0x2 |
Definition at line 188 of file hardware.h.
#define COMMAND_RECALIBRATE 0x7 |
Definition at line 193 of file hardware.h.
#define COMMAND_SCAN_EQUAL 0x11 |
Definition at line 201 of file hardware.h.
#define COMMAND_SCAN_HIGH_OR_EQUAL 0x1D |
Definition at line 204 of file hardware.h.
#define COMMAND_SCAN_LOW_OR_EQUAL 0x19 |
Definition at line 203 of file hardware.h.
#define COMMAND_SEEK 0xF |
Definition at line 199 of file hardware.h.
#define COMMAND_SENSE_DRIVE_STATUS 0x4 |
Definition at line 190 of file hardware.h.
#define COMMAND_SENSE_INTERRUPT_STATUS 0x8 |
Definition at line 194 of file hardware.h.
#define COMMAND_SPECIFY 0x3 |
Definition at line 189 of file hardware.h.
Definition at line 232 of file hardware.h.
#define COMMAND_UNIT_SELECT_0 0x1 |
Definition at line 233 of file hardware.h.
#define COMMAND_UNIT_SELECT_1 0x2 |
Definition at line 234 of file hardware.h.
#define COMMAND_VERSION 0x10 |
Definition at line 200 of file hardware.h.
#define COMMAND_WRITE_DATA 0x5 |
Definition at line 191 of file hardware.h.
#define COMMAND_WRITE_DELETED_DATA 0x9 |
Definition at line 195 of file hardware.h.
Definition at line 52 of file hardware.h.
#define CONFIGURE_EFIFO 0x20 |
Definition at line 248 of file hardware.h.
#define CONFIGURE_EIS 0x40 |
Definition at line 249 of file hardware.h.
#define CONFIGURE_FIFOTHR 0xf |
Definition at line 246 of file hardware.h.
#define CONFIGURE_POLL 0x10 |
Definition at line 247 of file hardware.h.
#define CONFIGURE_PRETRK 0xff |
Definition at line 250 of file hardware.h.
#define CUS_UNIT_0 0x0 |
Definition at line 242 of file hardware.h.
#define CUS_UNIT_1 0x1 |
Definition at line 243 of file hardware.h.
Definition at line 48 of file hardware.h.
Definition at line 51 of file hardware.h.
Definition at line 45 of file hardware.h.
#define DIR_DISKETTE_CHANGE 0x80 |
Definition at line 176 of file hardware.h.
#define DIR_HIGH_DENSITY_SELECT 0x1 |
Definition at line 175 of file hardware.h.
Definition at line 76 of file hardware.h.
Definition at line 74 of file hardware.h.
Definition at line 73 of file hardware.h.
#define DOR_FLOPPY_DRIVE_SELECT_A 0x0 |
Definition at line 83 of file hardware.h.
#define DOR_FLOPPY_DRIVE_SELECT_B 0x1 |
Definition at line 84 of file hardware.h.
Definition at line 85 of file hardware.h.
Definition at line 86 of file hardware.h.
#define DOR_FLOPPY_MOTOR_ON_A 0x10 |
Definition at line 77 of file hardware.h.
#define DOR_FLOPPY_MOTOR_ON_B 0x20 |
Definition at line 78 of file hardware.h.
Definition at line 79 of file hardware.h.
Definition at line 80 of file hardware.h.
Definition at line 75 of file hardware.h.
Definition at line 99 of file hardware.h.
#define DRSR_DSEL_1MBPS 0x3 |
Definition at line 109 of file hardware.h.
#define DRSR_DSEL_250KBPS 0x2 |
Definition at line 108 of file hardware.h.
#define DRSR_DSEL_300KBPS 0x1 |
Definition at line 107 of file hardware.h.
#define DRSR_DSEL_500KBPS 0x0 |
Definition at line 106 of file hardware.h.
#define DRSR_MBZ 0x20 |
Definition at line 101 of file hardware.h.
#define DRSR_POWER_DOWN 0x40 |
Definition at line 102 of file hardware.h.
Definition at line 100 of file hardware.h.
#define DRSR_SW_RESET 0x80 |
Definition at line 103 of file hardware.h.
#define DSRA_DIRECTION 0x1 |
Definition at line 55 of file hardware.h.
#define DSRA_HEAD_1_SELECT 0x8 |
Definition at line 58 of file hardware.h.
#define DSRA_INDEX 0x4 |
Definition at line 57 of file hardware.h.
#define DSRA_INTERRUPT_PENDING 0x80 |
Definition at line 62 of file hardware.h.
#define DSRA_SECOND_DRIVE_INSTALLED 0x40 |
Definition at line 61 of file hardware.h.
#define DSRA_STEP 0x20 |
Definition at line 60 of file hardware.h.
#define DSRA_TRACK_0 0x10 |
Definition at line 59 of file hardware.h.
#define DSRA_WRITE_PROTECT 0x2 |
Definition at line 56 of file hardware.h.
#define DSRB_DRIVE_SELECT 0x20 |
Definition at line 70 of file hardware.h.
#define DSRB_MOTOR_ENABLE_0 0x1 |
Definition at line 65 of file hardware.h.
#define DSRB_MOTOR_ENABLE_1 0x2 |
Definition at line 66 of file hardware.h.
#define DSRB_READ_DATA 0x8 |
Definition at line 68 of file hardware.h.
#define DSRB_WRITE_DATA 0x10 |
Definition at line 69 of file hardware.h.
#define DSRB_WRITE_ENABLE 0x4 |
Definition at line 67 of file hardware.h.
#define FDC_PORT_BYTES 0x8 |
Definition at line 40 of file hardware.h.
Definition at line 49 of file hardware.h.
#define FLOPPY_DEFAULT_IRQ 0x6 |
Definition at line 39 of file hardware.h.
#define HW_1024_BYTES_PER_SECTOR 0x3 |
Definition at line 260 of file hardware.h.
#define HW_128_BYTES_PER_SECTOR 0x0 |
Definition at line 257 of file hardware.h.
#define HW_256_BYTES_PER_SECTOR 0x1 |
Definition at line 258 of file hardware.h.
#define HW_512_BYTES_PER_SECTOR 0x2 |
Definition at line 259 of file hardware.h.
Definition at line 47 of file hardware.h.
#define MSR_DATA_REG_READY_FOR_IO 0x80 |
Definition at line 96 of file hardware.h.
#define MSR_FLOPPY_BUSY_0 0x1 |
Definition at line 89 of file hardware.h.
#define MSR_FLOPPY_BUSY_1 0x2 |
Definition at line 90 of file hardware.h.
Definition at line 91 of file hardware.h.
Definition at line 92 of file hardware.h.
Definition at line 95 of file hardware.h.
#define MSR_NON_DMA_MODE 0x20 |
Definition at line 94 of file hardware.h.
#define MSR_READ_WRITE_IN_PROGRESS 0x10 |
Definition at line 93 of file hardware.h.
#define READ_DATA_DS0 0x1 |
Definition at line 207 of file hardware.h.
#define READ_DATA_DS1 0x2 |
Definition at line 208 of file hardware.h.
#define READ_DATA_HDS 0x4 |
Definition at line 209 of file hardware.h.
#define READ_DATA_MFM 0x40 |
Definition at line 211 of file hardware.h.
#define READ_DATA_MT 0x80 |
Definition at line 212 of file hardware.h.
#define READ_DATA_SK 0x20 |
Definition at line 210 of file hardware.h.
#define READ_ID_MFM 0x40 |
Definition at line 215 of file hardware.h.
Definition at line 50 of file hardware.h.
Definition at line 218 of file hardware.h.
Definition at line 221 of file hardware.h.
Definition at line 220 of file hardware.h.
Definition at line 219 of file hardware.h.
Definition at line 222 of file hardware.h.
#define SPECIFY_HUT_250K 0x0 |
Definition at line 225 of file hardware.h.
#define SPECIFY_HUT_300K 0x0 |
Definition at line 224 of file hardware.h.
#define SPECIFY_HUT_500K 0x0 |
Definition at line 223 of file hardware.h.
#define SPECIFY_SRT_1M 0x0 |
Definition at line 226 of file hardware.h.
#define SPECIFY_SRT_250K 0x0 |
Definition at line 229 of file hardware.h.
#define SPECIFY_SRT_300K 0x0 |
Definition at line 228 of file hardware.h.
#define SPECIFY_SRT_500K 0x0 |
Definition at line 227 of file hardware.h.
#define SR0_EQUIPMENT_CHECK 0x10 |
Definition at line 116 of file hardware.h.
#define SR0_HEAD_0 0x0 |
Definition at line 129 of file hardware.h.
#define SR0_HEAD_1 0x1 |
Definition at line 130 of file hardware.h.
#define SR0_HEAD_NUMBER_AT_INTERRUPT 0x4 /* Values defined below */ |
Definition at line 113 of file hardware.h.
Definition at line 118 of file hardware.h.
#define SR0_LCS_INVALID_COMMAND_ISSUED 0x80 |
Definition at line 135 of file hardware.h.
#define SR0_LCS_READY_SIGNAL_CHANGED 0xc0 /* Reserved on PS/2; a/k/a abnormal termination due to polling */ |
Definition at line 136 of file hardware.h.
#define SR0_LCS_SUCCESS 0x0 |
Definition at line 133 of file hardware.h.
#define SR0_LCS_TERMINATED_ABNORMALLY 0x40 |
Definition at line 134 of file hardware.h.
Definition at line 114 of file hardware.h.
Definition at line 125 of file hardware.h.
#define SR0_PST_UNIT_SELECTED_B 0x2 |
Definition at line 126 of file hardware.h.
#define SR0_SEEK_COMPLETE 0x20 |
Definition at line 117 of file hardware.h.
#define SR0_UNIT_SELECTED_A 0x0 |
Definition at line 121 of file hardware.h.
Definition at line 112 of file hardware.h.
#define SR0_UNIT_SELECTED_B 0x1 |
Definition at line 122 of file hardware.h.
#define SR0_UNIT_SELECTED_C 0x2 |
Definition at line 123 of file hardware.h.
#define SR0_UNIT_SELECTED_D 0x3 |
Definition at line 124 of file hardware.h.
#define SR1_CANNOT_FIND_ID_ADDRESS 0x1 /* Mimics SR2_WRONG_CYLINDER_DETECTED */ |
Definition at line 139 of file hardware.h.
#define SR1_CANNOT_FIND_SECTOR_ID 0x4 |
Definition at line 141 of file hardware.h.
#define SR1_CRC_ERROR 0x20 |
Definition at line 143 of file hardware.h.
#define SR1_END_OF_CYLINDER 0x80 |
Definition at line 144 of file hardware.h.
#define SR1_OVERRUN 0x10 |
Definition at line 142 of file hardware.h.
#define SR1_WRITE_PROTECT_DETECTED 0x2 |
Definition at line 140 of file hardware.h.
#define SR2_BAD_CYLINDER 0x2 |
Definition at line 148 of file hardware.h.
#define SR2_CRC_ERROR_IN_SECTOR_DATA 0x20 |
Definition at line 152 of file hardware.h.
#define SR2_MISSING_ADDRESS_MARK 0x1 |
Definition at line 147 of file hardware.h.
#define SR2_SCAN_COMMAND_EQUAL 0x8 |
Definition at line 150 of file hardware.h.
#define SR2_SCAN_COMMAND_FAILED 0x4 |
Definition at line 149 of file hardware.h.
#define SR2_SECTOR_WITH_DELETED_DATA 0x40 |
Definition at line 153 of file hardware.h.
#define SR2_WRONG_CYLINDER_DETECTED 0x10 /* Mimics SR1_CANNOT_FIND_ID_ADDRESS */ |
Definition at line 151 of file hardware.h.
#define SR3_FAULT_STATUS_SIGNAL 0x80 |
Definition at line 162 of file hardware.h.
#define SR3_READY_STATUS_SIGNAL 0x20 |
Definition at line 160 of file hardware.h.
#define SR3_SHSS_HEAD_0 0x0 |
Definition at line 171 of file hardware.h.
#define SR3_SHSS_HEAD_1 0x1 |
Definition at line 172 of file hardware.h.
#define SR3_SIDE_HEAD_SELECT_STATUS 0x4 /* Values defined below */ |
Definition at line 157 of file hardware.h.
#define SR3_TRACK_ZERO_STATUS_SIGNAL 0x10 |
Definition at line 159 of file hardware.h.
#define SR3_TWO_SIDED_STATUS_SIGNAL 0x8 |
Definition at line 158 of file hardware.h.
Definition at line 156 of file hardware.h.
#define SR3_UNIT_SELECTED_A 0x0 |
Definition at line 165 of file hardware.h.
#define SR3_UNIT_SELECTED_B 0x1 |
Definition at line 166 of file hardware.h.
#define SR3_UNIT_SELECTED_C 0x2 |
Definition at line 167 of file hardware.h.
#define SR3_UNIT_SELECTED_D 0x3 |
Definition at line 168 of file hardware.h.
#define SR3_WRITE_PROTECT_STATUS_SIGNAL 0x40 |
Definition at line 161 of file hardware.h.
Definition at line 43 of file hardware.h.
Definition at line 44 of file hardware.h.
Definition at line 46 of file hardware.h.
#define VERSION_ENHANCED 0x90 |
Definition at line 239 of file hardware.h.
NTSTATUS NTAPI HwConfigure | ( | PCONTROLLER_INFO | ControllerInfo, |
BOOLEAN | EIS, | ||
BOOLEAN | EFIFO, | ||
BOOLEAN | POLL, | ||
UCHAR | FIFOTHR, | ||
UCHAR | PRETRK | ||
) |
Definition at line 703 of file hardware.c.
Referenced by InitController().
NTSTATUS NTAPI HwDiskChanged | ( | PDRIVE_INFO | DriveInfo, |
PBOOLEAN | DiskChanged | ||
) |
Definition at line 785 of file hardware.c.
Referenced by DeviceIoctlPassive(), ReadWritePassive(), and ResetChangeFlag().
VOID NTAPI HwDumpRegisters | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 1029 of file hardware.c.
Referenced by Get_Byte(), HwReset(), ReadWritePassive(), and Send_Byte().
NTSTATUS NTAPI HwFormatTrack | ( | PCONTROLLER_INFO | ControllerInfo, |
UCHAR | Unit, | ||
UCHAR | Head, | ||
UCHAR | BytesPerSector, | ||
UCHAR | SectorsPerTrack, | ||
UCHAR | Gap3Length, | ||
UCHAR | FillerPattern | ||
) |
Definition at line 611 of file hardware.c.
NTSTATUS NTAPI HwGetVersion | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 749 of file hardware.c.
Referenced by InitController().
NTSTATUS NTAPI HwPowerOff | ( | PCONTROLLER_INFO | ControllerInfo | ) |
NTSTATUS NTAPI HwReadId | ( | PDRIVE_INFO | DriveInfo, |
UCHAR | Head | ||
) |
Definition at line 576 of file hardware.c.
Referenced by RWDetermineMediaType(), and RWSeekToCylinder().
NTSTATUS NTAPI HwReadIdResult | ( | PCONTROLLER_INFO | ControllerInfo, |
PUCHAR | CurCylinder, | ||
PUCHAR | CurHead | ||
) |
Definition at line 864 of file hardware.c.
Referenced by RWDetermineMediaType(), and RWSeekToCylinder().
NTSTATUS NTAPI HwReadWriteData | ( | PCONTROLLER_INFO | ControllerInfo, |
BOOLEAN | Read, | ||
UCHAR | Unit, | ||
UCHAR | Cylinder, | ||
UCHAR | Head, | ||
UCHAR | Sector, | ||
UCHAR | BytesPerSector, | ||
UCHAR | EndOfTrack, | ||
UCHAR | Gap3Length, | ||
UCHAR | DataLength | ||
) |
Definition at line 322 of file hardware.c.
Referenced by ReadWritePassive().
NTSTATUS NTAPI HwReadWriteResult | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 462 of file hardware.c.
Referenced by ReadWritePassive().
NTSTATUS NTAPI HwRecalibrate | ( | PDRIVE_INFO | DriveInfo | ) |
Definition at line 503 of file hardware.c.
Referenced by Recalibrate(), and RWDetermineMediaType().
NTSTATUS NTAPI HwRecalibrateResult | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 394 of file hardware.c.
Referenced by Recalibrate(), and RWDetermineMediaType().
NTSTATUS NTAPI HwReset | ( | PCONTROLLER_INFO | Controller | ) |
Definition at line 973 of file hardware.c.
Referenced by InitController().
NTSTATUS NTAPI HwSeek | ( | PDRIVE_INFO | DriveInfo, |
UCHAR | Cylinder | ||
) |
Definition at line 659 of file hardware.c.
Referenced by ResetChangeFlag(), and RWSeekToCylinder().
NTSTATUS NTAPI HwSenseDriveStatus | ( | PDRIVE_INFO | DriveInfo | ) |
Definition at line 287 of file hardware.c.
Referenced by DeviceIoctlPassive().
NTSTATUS NTAPI HwSenseDriveStatusResult | ( | PCONTROLLER_INFO | ControllerInfo, |
PUCHAR | Status | ||
) |
Definition at line 836 of file hardware.c.
Referenced by DeviceIoctlPassive().
NTSTATUS NTAPI HwSenseInterruptStatus | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 539 of file hardware.c.
Referenced by InitController(), ResetChangeFlag(), and RWSeekToCylinder().
NTSTATUS NTAPI HwSetDataRate | ( | PCONTROLLER_INFO | ControllerInfo, |
UCHAR | DataRate | ||
) |
Definition at line 204 of file hardware.c.
Referenced by InitController(), Recalibrate(), and RWDetermineMediaType().
NTSTATUS NTAPI HwSpecify | ( | PCONTROLLER_INFO | ControllerInfo, |
UCHAR | HeadLoadTime, | ||
UCHAR | HeadUnloadTime, | ||
UCHAR | StepRateTime, | ||
BOOLEAN | NonDma | ||
) |
Definition at line 925 of file hardware.c.
Referenced by InitController(), and RWDetermineMediaType().
NTSTATUS NTAPI HwTurnOffMotor | ( | PCONTROLLER_INFO | ControllerInfo | ) |
Definition at line 223 of file hardware.c.
Referenced by MotorStopDpcFunc().
NTSTATUS NTAPI HwTurnOnMotor | ( | PDRIVE_INFO | DriveInfo | ) |
Definition at line 245 of file hardware.c.
Referenced by StartMotor().