tag | line | file | source code |
FDCS | 483 | drivers/block/floppy.c | #define CHECK_RESET { if (FDCS->reset){ reset_fdc(); return; } } |
FDCS | 652 | drivers/block/floppy.c | if (!(FDCS->dor & (0x10 << UNIT(drive))) || |
FDCS | 653 | drivers/block/floppy.c | (FDCS->dor & 3) != UNIT(drive) || |
FDCS | 657 | drivers/block/floppy.c | FDCS->dor); |
FDCS | 705 | drivers/block/floppy.c | if (FDCS->address == -1) |
FDCS | 708 | drivers/block/floppy.c | olddor = FDCS->dor; |
FDCS | 721 | drivers/block/floppy.c | FDCS->dor = newdor; |
FDCS | 741 | drivers/block/floppy.c | fd_outb(FDCS->dor & ~(0x10<<UNIT(current_drive)),FD_DOR); |
FDCS | 742 | drivers/block/floppy.c | fd_outb(FDCS->dor, FD_DOR); |
FDCS | 752 | drivers/block/floppy.c | FDCS->spec1 = FDCS->spec2 = -1; |
FDCS | 753 | drivers/block/floppy.c | FDCS->need_configure = 1; |
FDCS | 754 | drivers/block/floppy.c | FDCS->perp_mode = 1; |
FDCS | 755 | drivers/block/floppy.c | FDCS->rawcmd = 0; |
FDCS | 775 | drivers/block/floppy.c | if (FDCS->rawcmd == 2) |
FDCS | 778 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 851 | drivers/block/floppy.c | if (!(FDCS->dor & (0x10 << UNIT(drive)))) |
FDCS | 926 | drivers/block/floppy.c | if (FDCS->reset){ |
FDCS | 984 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 990 | drivers/block/floppy.c | FDCS->reset=1; |
FDCS | 998 | drivers/block/floppy.c | FDCS->reset=1; |
FDCS | 1021 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 1023 | drivers/block/floppy.c | for (counter = 0; counter < 10000 && !FDCS->reset; counter++) { |
FDCS | 1041 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1054 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 1056 | drivers/block/floppy.c | for (counter = 0; counter < 10000 && !FDCS->reset; counter++) { |
FDCS | 1078 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1103 | drivers/block/floppy.c | FDCS->reset = 1; /* convenient way to return to |
FDCS | 1111 | drivers/block/floppy.c | if (FDCS->perp_mode == perp_mode) |
FDCS | 1113 | drivers/block/floppy.c | if (FDCS->version >= FDC_82077_ORIG && FDCS->has_fifo) { |
FDCS | 1116 | drivers/block/floppy.c | FDCS->perp_mode = perp_mode; |
FDCS | 1152 | drivers/block/floppy.c | if (FDCS->need_configure && FDCS->has_fifo) { |
FDCS | 1153 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 1161 | drivers/block/floppy.c | if (FDCS->reset){ |
FDCS | 1162 | drivers/block/floppy.c | FDCS->has_fifo=0; |
FDCS | 1165 | drivers/block/floppy.c | FDCS->need_configure = 0; |
FDCS | 1181 | drivers/block/floppy.c | if (FDCS->version >= FDC_82072) { |
FDCS | 1208 | drivers/block/floppy.c | if (FDCS->spec1 != spec1 || FDCS->spec2 != spec2) { |
FDCS | 1211 | drivers/block/floppy.c | output_byte(FDCS->spec1 = spec1); |
FDCS | 1212 | drivers/block/floppy.c | output_byte(FDCS->spec2 = spec2); |
FDCS | 1223 | drivers/block/floppy.c | if ((raw_cmd->rate & 3) == FDCS->dtr) |
FDCS | 1234 | drivers/block/floppy.c | FDCS->dtr = raw_cmd->rate & 3; |
FDCS | 1259 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1418 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1504 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1581 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1597 | drivers/block/floppy.c | if (fdc >= N_FDC || FDCS->address == -1){ |
FDCS | 1642 | drivers/block/floppy.c | if (FDCS->reset) { |
FDCS | 1656 | drivers/block/floppy.c | FDCS->reset = 0; |
FDCS | 1658 | drivers/block/floppy.c | if (FDCS->version >= FDC_82077) |
FDCS | 1659 | drivers/block/floppy.c | fd_outb(0x80 | (FDCS->dtr &3), FD_STATUS); |
FDCS | 1661 | drivers/block/floppy.c | fd_outb(FDCS->dor & ~0x04, FD_DOR); |
FDCS | 1663 | drivers/block/floppy.c | outb(FDCS->dor, FD_DOR); |
FDCS | 1732 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 1752 | drivers/block/floppy.c | if (!(FDCS->dor & (0x10 << UNIT(current_drive)))){ |
FDCS | 1761 | drivers/block/floppy.c | if (FDCS->dor & (0x10 << UNIT(current_drive))) |
FDCS | 1865 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 1934 | drivers/block/floppy.c | FDCS->reset = 1; |
FDCS | 2735 | drivers/block/floppy.c | FDCS->reset=1; |
FDCS | 2736 | drivers/block/floppy.c | if (FDCS->reset){ |
FDCS | 2962 | drivers/block/floppy.c | if (FDCS->rawcmd <= 1) |
FDCS | 2963 | drivers/block/floppy.c | FDCS->rawcmd = 1; |
FDCS | 2969 | drivers/block/floppy.c | FDCS->rawcmd = 2; |
FDCS | 2973 | drivers/block/floppy.c | FDCS->rawcmd = 2; |
FDCS | 2978 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 2996 | drivers/block/floppy.c | if (ret != -EINTR && FDCS->reset) |
FDCS | 3627 | drivers/block/floppy.c | if (FDCS->reset) |
FDCS | 3858 | drivers/block/floppy.c | CLEARSTRUCT(FDCS); |
FDCS | 3859 | drivers/block/floppy.c | FDCS->dtr = -1; |
FDCS | 3860 | drivers/block/floppy.c | FDCS->dor = 0x4; |
FDCS | 3885 | drivers/block/floppy.c | FDCS->driver_version = FD_DRIVER_VERSION; |
FDCS | 3887 | drivers/block/floppy.c | FDCS->track[unit] = 0; |
FDCS | 3888 | drivers/block/floppy.c | if (FDCS->address == -1) |
FDCS | 3890 | drivers/block/floppy.c | FDCS->rawcmd = 2; |
FDCS | 3892 | drivers/block/floppy.c | FDCS->address = -1; |
FDCS | 3896 | drivers/block/floppy.c | FDCS->version = get_fdc_version(); |
FDCS | 3897 | drivers/block/floppy.c | if (FDCS->version == FDC_NONE){ |
FDCS | 3898 | drivers/block/floppy.c | FDCS->address = -1; |
FDCS | 3902 | drivers/block/floppy.c | request_region(FDCS->address, 6, "floppy"); |
FDCS | 3903 | drivers/block/floppy.c | request_region(FDCS->address+7, 1, "floppy DIR"); |
FDCS | 3912 | drivers/block/floppy.c | FDCS->has_fifo = FDCS->version >= FDC_82077_ORIG; |
FDCS | 3939 | drivers/block/floppy.c | if (FDCS->address != -1){ |
FDCS | 3942 | drivers/block/floppy.c | fd_outb(FDCS->dor, FD_DOR); |
FDCS | 3959 | drivers/block/floppy.c | if (FDCS->address != -1) |
FDCS | 3960 | drivers/block/floppy.c | fd_outb(FDCS->dor, FD_DOR); |
FDCS | 4080 | drivers/block/floppy.c | if (FDCS->address != -1){ |
FDCS | 4081 | drivers/block/floppy.c | release_region(FDCS->address, 6); |
FDCS | 4082 | drivers/block/floppy.c | release_region(FDCS->address+7, 1); |