tag | line | file | source code |
fdc | 214 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) |
fdc | 219 | drivers/block/floppy.c | #define FDCS (&fdc_state[fdc]) |
fdc | 508 | drivers/block/floppy.c | static int fdc; /* current fdc */ |
fdc | 649 | drivers/block/floppy.c | int fdc=FDC(drive); |
fdc | 655 | drivers/block/floppy.c | fdc != FDC(drive)){ |
fdc | 702 | drivers/block/floppy.c | static int set_dor(int fdc, char mask, char data) |
fdc | 714 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
fdc | 727 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
fdc | 758 | drivers/block/floppy.c | if (FDC(drive) == fdc && |
fdc | 767 | drivers/block/floppy.c | fdc = FDC(drive); |
fdc | 770 | drivers/block/floppy.c | if (fdc != 1 && fdc != 0) { |
fdc | 774 | drivers/block/floppy.c | set_dor(fdc,~0,8); |
fdc | 775 | drivers/block/floppy.c | set_dor(1-fdc, ~8, 0); |
fdc | 850 | drivers/block/floppy.c | register int fdc=FDC(drive); |
fdc | 886 | drivers/block/floppy.c | if (!(set_dor(fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & |
fdc | 890 | drivers/block/floppy.c | set_dor(fdc, ~(0x10 << UNIT(drive)), 0); |
fdc | 1082 | drivers/block/floppy.c | status, fdc, i); |
fdc | 1473 | drivers/block/floppy.c | set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); |
fdc | 1598 | drivers/block/floppy.c | if (fdc >= N_FDC || FDCS->address == -1){ |
fdc | 1601 | drivers/block/floppy.c | printk("floppy interrupt on bizarre fdc %d\n",fdc); |
fdc | 1767 | drivers/block/floppy.c | set_dor(fdc, mask, data); |
fdc | 2967 | drivers/block/floppy.c | if (FDC(drive) != fdc) |
fdc | 3631 | drivers/block/floppy.c | printk("FDC %d is a 8272A\n",fdc); |
fdc | 3636 | drivers/block/floppy.c | fdc, r); |
fdc | 3642 | drivers/block/floppy.c | printk("FDC %d is a 82072\n",fdc); |
fdc | 3647 | drivers/block/floppy.c | fdc, r); |
fdc | 3653 | drivers/block/floppy.c | printk("FDC %d is a pre-1991 82077\n", fdc); |
fdc | 3658 | drivers/block/floppy.c | fdc, r); |
fdc | 3665 | drivers/block/floppy.c | fdc, r); |
fdc | 3669 | drivers/block/floppy.c | printk("FDC %d is a post-1991 82077\n",fdc); |
fdc | 3677 | drivers/block/floppy.c | printk("FDC %d init: SAVE: unexpected return of %d bytes.\n", fdc, r); |
fdc | 3681 | drivers/block/floppy.c | printk("FDC %d is a 3Volt 82078SL.\n",fdc); |
fdc | 3685 | drivers/block/floppy.c | printk("FDC %d is a 82078-1.\n",fdc); |
fdc | 3688 | drivers/block/floppy.c | printk("FDC %d is a 44pin 82078\n",fdc); |
fdc | 3691 | drivers/block/floppy.c | printk("FDC %d is a S82078B\n", fdc); |
fdc | 3694 | drivers/block/floppy.c | printk("FDC %d is a National Semiconductor PC87306\n", fdc); |
fdc | 3698 | drivers/block/floppy.c | fdc, reply_buffer[0] >> 5); |
fdc | 3859 | drivers/block/floppy.c | fdc = i; |
fdc | 3886 | drivers/block/floppy.c | fdc = i; |
fdc | 3917 | drivers/block/floppy.c | fdc=0; |
fdc | 3942 | drivers/block/floppy.c | fdc = i; |
fdc | 3960 | drivers/block/floppy.c | for (fdc = 0; fdc < N_FDC; fdc++) |
fdc | 3963 | drivers/block/floppy.c | fdc = 0; |
fdc | 4079 | drivers/block/floppy.c | int fdc; |
fdc | 4081 | drivers/block/floppy.c | for (fdc=0; fdc<2; fdc++) |
fdc | 76 | drivers/char/ftape/calibr.c | status = inb(fdc.msr); |
fdc | 121 | drivers/char/ftape/fc-10.c | outb(0x0, fdc.ccr); |
fdc | 146 | drivers/char/ftape/fc-10.c | outb(0, fdc.ccr); |
fdc | 148 | drivers/char/ftape/fc-10.c | outb(8, fdc.dor); |
fdc | 149 | drivers/char/ftape/fc-10.c | outb(8, fdc.dor); |
fdc | 154 | drivers/char/ftape/fc-10.c | outb(0x08, fdc.dor); /* assert reset, dma & irq enabled */ |
fdc | 155 | drivers/char/ftape/fc-10.c | outb(0x0c, fdc.dor); /* release reset */ |
fdc | 156 | drivers/char/ftape/fc-10.c | outb(0x2d, fdc.dor); /* select drive 1 */ |
fdc | 50 | drivers/char/ftape/fdc-io.c | fdc_config_info fdc = {0}; |
fdc | 95 | drivers/char/ftape/fdc-io.c | fdc_status = inb_p(fdc.msr); |
fdc | 141 | drivers/char/ftape/fdc-io.c | outb(data, fdc.fifo); |
fdc | 156 | drivers/char/ftape/fdc-io.c | *data = inb(fdc.fifo); |
fdc | 175 | drivers/char/ftape/fdc-io.c | fdc_status = inb(fdc.msr); |
fdc | 220 | drivers/char/ftape/fdc-io.c | fdc_status = inb(fdc.msr); |
fdc | 385 | drivers/char/ftape/fdc-io.c | outb_p(data, fdc.dor2); |
fdc | 387 | drivers/char/ftape/fdc-io.c | outb_p(data, fdc.dor); |
fdc | 398 | drivers/char/ftape/fdc-io.c | if (fdc.type >= i82077) { |
fdc | 399 | drivers/char/ftape/fdc-io.c | outb_p((fdc_data_rate & 0x03) | fdc_precomp, fdc.dsr); |
fdc | 401 | drivers/char/ftape/fdc-io.c | outb_p(fdc_data_rate, fdc.ccr); |
fdc | 432 | drivers/char/ftape/fdc-io.c | if (fdc.type >= i82078_1) { |
fdc | 459 | drivers/char/ftape/fdc-io.c | if (fdc.type > i82078_1) { |
fdc | 501 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl & 0x0f, fdc.dor); |
fdc | 502 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor2); |
fdc | 504 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor); /* assert reset, keep unit selected */ |
fdc | 510 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl & 0x0f, fdc.dor); |
fdc | 511 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor2); |
fdc | 513 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor); /* release reset */ |
fdc | 543 | drivers/char/ftape/fdc-io.c | if (CLK_48MHZ && fdc.type >= i82078) |
fdc | 567 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT & 0x0f, fdc.dor); |
fdc | 568 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT, fdc.dor2); |
fdc | 570 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT & 0x0f, fdc.dor); |
fdc | 571 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT, fdc.dor2); |
fdc | 573 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT, fdc.dor); |
fdc | 575 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT, fdc.dor); |
fdc | 785 | drivers/char/ftape/fdc-io.c | if (fdc.type < i82077AA) { |
fdc | 816 | drivers/char/ftape/fdc-io.c | if (fdc.type < i82077AA) { |
fdc | 849 | drivers/char/ftape/fdc-io.c | disable_dma(fdc.dma); |
fdc | 850 | drivers/char/ftape/fdc-io.c | clear_dma_ff(fdc.dma); |
fdc | 851 | drivers/char/ftape/fdc-io.c | set_dma_mode(fdc.dma, dma_mode); |
fdc | 852 | drivers/char/ftape/fdc-io.c | set_dma_addr(fdc.dma, (unsigned) buff->ptr); |
fdc | 853 | drivers/char/ftape/fdc-io.c | set_dma_count(fdc.dma, SECTOR_SIZE * buff->sector_count); |
fdc | 866 | drivers/char/ftape/fdc-io.c | enable_dma(fdc.dma); |
fdc | 903 | drivers/char/ftape/fdc-io.c | if (CLK_48MHZ && fdc.type >= i82078) |
fdc | 1020 | drivers/char/ftape/fdc-io.c | outb_p(i, fdc.tdr); |
fdc | 1021 | drivers/char/ftape/fdc-io.c | if ((inb_p(fdc.tdr) & 0x03) != i) { |
fdc | 1096 | drivers/char/ftape/fdc-io.c | fdc.irq = fdc_irq; |
fdc | 1097 | drivers/char/ftape/fdc-io.c | fdc.dma = fdc_dma; |
fdc | 1098 | drivers/char/ftape/fdc-io.c | fdc.sra = fdc_base; |
fdc | 1099 | drivers/char/ftape/fdc-io.c | fdc.srb = fdc_base + 1; |
fdc | 1100 | drivers/char/ftape/fdc-io.c | fdc.dor = fdc_base + 2; |
fdc | 1101 | drivers/char/ftape/fdc-io.c | fdc.tdr = fdc_base + 3; |
fdc | 1102 | drivers/char/ftape/fdc-io.c | fdc.msr = fdc.dsr = fdc_base + 4; |
fdc | 1103 | drivers/char/ftape/fdc-io.c | fdc.fifo = fdc_base + 5; |
fdc | 1105 | drivers/char/ftape/fdc-io.c | fdc.dor2 = fdc_base + 6; |
fdc | 1107 | drivers/char/ftape/fdc-io.c | fdc.dir = fdc.ccr = fdc_base + 7; |
fdc | 1138 | drivers/char/ftape/fdc-io.c | fdc.type = fc10; |
fdc | 1139 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1142 | drivers/char/ftape/fdc-io.c | fdc.type = no_fdc; |
fdc | 1143 | drivers/char/ftape/fdc-io.c | fdc.dor2 = 0; /* not used with std fdc */ |
fdc | 1145 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1151 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1155 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1159 | drivers/char/ftape/fdc-io.c | *(fdc.hook) = fdc_isr; /* hook our handler in */ |
fdc | 1167 | drivers/char/ftape/fdc-io.c | void (*handler) (void) = *fdc.hook; |
fdc | 1169 | drivers/char/ftape/fdc-io.c | *fdc.hook = NULL; |
fdc | 1184 | drivers/char/ftape/fdc-io.c | if (fdc.hook == &do_ftape) { |
fdc | 1187 | drivers/char/ftape/fdc-io.c | result = request_irq(fdc.irq, ftape_interrupt, SA_INTERRUPT, |
fdc | 1190 | drivers/char/ftape/fdc-io.c | TRACEx1(-1, "Unable to grab IRQ%d for ftape driver", fdc.irq); |
fdc | 1193 | drivers/char/ftape/fdc-io.c | result = request_dma(fdc.dma, ftape_id); |
fdc | 1195 | drivers/char/ftape/fdc-io.c | TRACEx1(-1, "Unable to grab DMA%d for ftape driver", fdc.dma); |
fdc | 1196 | drivers/char/ftape/fdc-io.c | free_irq(fdc.irq, NULL); |
fdc | 1199 | drivers/char/ftape/fdc-io.c | enable_irq(fdc.irq); |
fdc | 1223 | drivers/char/ftape/fdc-io.c | if (fdc.hook == &do_ftape) { |
fdc | 1224 | drivers/char/ftape/fdc-io.c | disable_dma(fdc.dma); /* just in case... */ |
fdc | 1225 | drivers/char/ftape/fdc-io.c | free_dma(fdc.dma); |
fdc | 1226 | drivers/char/ftape/fdc-io.c | disable_irq(fdc.irq); |
fdc | 1227 | drivers/char/ftape/fdc-io.c | free_irq(fdc.irq, NULL); |
fdc | 1249 | drivers/char/ftape/fdc-io.c | if (fdc.sra != 0) { |
fdc | 1250 | drivers/char/ftape/fdc-io.c | if (fdc.dor2 == 0) { |
fdc | 1251 | drivers/char/ftape/fdc-io.c | release_region(fdc.sra, 6); |
fdc | 1252 | drivers/char/ftape/fdc-io.c | release_region(fdc.sra + 7, 1); |
fdc | 1254 | drivers/char/ftape/fdc-io.c | release_region(fdc.sra, 8); |
fdc | 1274 | drivers/char/ftape/fdc-io.c | if (fdc.type == no_fdc) { /* default, means no FC-10 or 20 found */ |
fdc | 1275 | drivers/char/ftape/fdc-io.c | fdc.type = fdc_probe(); |
fdc | 1277 | drivers/char/ftape/fdc-io.c | if (fdc.type != no_fdc) { |
fdc | 1278 | drivers/char/ftape/fdc-io.c | if (fdc.type >= i82077) { |
fdc | 1291 | drivers/char/ftape/fdc-io.c | if (fdc.dor2 == 0) { |
fdc | 1292 | drivers/char/ftape/fdc-io.c | request_region(fdc.sra, 6, "fdc (ftape)"); |
fdc | 1293 | drivers/char/ftape/fdc-io.c | request_region(fdc.sra + 7, 1, "fdc (ftape)"); |
fdc | 1295 | drivers/char/ftape/fdc-io.c | request_region(fdc.sra, 8, "fdc (ftape)"); |
fdc | 147 | drivers/char/ftape/fdc-io.h | extern fdc_config_info fdc; /* FDC hardware configuration */ |
fdc | 255 | drivers/char/ftape/fdc-isr.c | dma_residue = get_dma_residue(fdc.dma); |
fdc | 256 | drivers/char/ftape/fdc-isr.c | disable_dma(fdc.dma); |
fdc | 551 | drivers/char/ftape/fdc-isr.c | *fdc.hook = fdc_isr; /* hook our handler into the fdc code again */ |
fdc | 557 | drivers/char/ftape/fdc-isr.c | status = inb_p(fdc.msr); |
fdc | 785 | drivers/char/ftape/fdc-isr.c | byte status = inb_p(fdc.msr); |
fdc | 811 | drivers/char/ftape/fdc-isr.c | *fdc.hook = fdc_isr; /* hook our handler into the fdc code again */ |
fdc | 510 | drivers/char/ftape/ftape-ctl.c | if (fdc.type >= i82078_1) |
fdc | 512 | drivers/char/ftape/ftape-ctl.c | else if (fdc.type >= i82077) |
fdc | 11 | include/linux/fdreg.h | #define FD_IOPORT fdc_state[fdc].address |