tag | line | file | source code |
fdc | 225 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) |
fdc | 230 | drivers/block/floppy.c | #define FDCS (&fdc_state[fdc]) |
fdc | 518 | drivers/block/floppy.c | static int fdc; /* current fdc */ |
fdc | 659 | drivers/block/floppy.c | int fdc=FDC(drive); |
fdc | 665 | drivers/block/floppy.c | fdc != FDC(drive)){ |
fdc | 712 | drivers/block/floppy.c | static int set_dor(int fdc, char mask, char data) |
fdc | 724 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
fdc | 737 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
fdc | 768 | drivers/block/floppy.c | if (FDC(drive) == fdc && |
fdc | 777 | drivers/block/floppy.c | fdc = FDC(drive); |
fdc | 780 | drivers/block/floppy.c | if (fdc != 1 && fdc != 0) { |
fdc | 784 | drivers/block/floppy.c | set_dor(fdc,~0,8); |
fdc | 786 | drivers/block/floppy.c | set_dor(1-fdc, ~8, 0); |
fdc | 862 | drivers/block/floppy.c | register int fdc=FDC(drive); |
fdc | 898 | drivers/block/floppy.c | if (!(set_dor(fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & |
fdc | 902 | drivers/block/floppy.c | set_dor(fdc, ~(0x10 << UNIT(drive)), 0); |
fdc | 1094 | drivers/block/floppy.c | status, fdc, i); |
fdc | 1498 | drivers/block/floppy.c | set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); |
fdc | 1633 | drivers/block/floppy.c | if (fdc >= N_FDC || FDCS->address == -1){ |
fdc | 1636 | drivers/block/floppy.c | printk("floppy interrupt on bizarre fdc %d\n",fdc); |
fdc | 1806 | drivers/block/floppy.c | set_dor(fdc, mask, data); |
fdc | 3007 | drivers/block/floppy.c | if (FDC(drive) != fdc) |
fdc | 3701 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 8272A\n",fdc); |
fdc | 3706 | drivers/block/floppy.c | fdc, r); |
fdc | 3712 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 82072\n",fdc); |
fdc | 3717 | drivers/block/floppy.c | fdc, r); |
fdc | 3723 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 82072A\n", fdc); |
fdc | 3730 | drivers/block/floppy.c | fdc, r); |
fdc | 3737 | drivers/block/floppy.c | fdc, r); |
fdc | 3741 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a post-1991 82077\n",fdc); |
fdc | 3749 | drivers/block/floppy.c | printk("FDC %d init: SAVE: unexpected return of %d bytes.\n", fdc, r); |
fdc | 3753 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 3Volt 82078SL.\n",fdc); |
fdc | 3757 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 82078-1.\n",fdc); |
fdc | 3760 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a 44pin 82078\n",fdc); |
fdc | 3763 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a S82078B\n", fdc); |
fdc | 3766 | drivers/block/floppy.c | printk(KERN_INFO "FDC %d is a National Semiconductor PC87306\n", fdc); |
fdc | 3770 | drivers/block/floppy.c | fdc, reply_buffer[0] >> 5); |
fdc | 3934 | drivers/block/floppy.c | fdc = i; |
fdc | 3961 | drivers/block/floppy.c | fdc = i; |
fdc | 3992 | drivers/block/floppy.c | fdc=0; |
fdc | 4017 | drivers/block/floppy.c | fdc = i; |
fdc | 4035 | drivers/block/floppy.c | for (fdc = 0; fdc < N_FDC; fdc++) |
fdc | 4038 | drivers/block/floppy.c | fdc = 0; |
fdc | 4154 | drivers/block/floppy.c | int fdc; |
fdc | 4156 | drivers/block/floppy.c | for (fdc=0; fdc<2; fdc++) |
fdc | 75 | drivers/char/ftape/calibr.c | status = inb(fdc.msr); |
fdc | 120 | drivers/char/ftape/fc-10.c | outb(0x0, fdc.ccr); |
fdc | 145 | drivers/char/ftape/fc-10.c | outb(0, fdc.ccr); |
fdc | 147 | drivers/char/ftape/fc-10.c | outb(8, fdc.dor); |
fdc | 148 | drivers/char/ftape/fc-10.c | outb(8, fdc.dor); |
fdc | 153 | drivers/char/ftape/fc-10.c | outb(0x08, fdc.dor); /* assert reset, dma & irq enabled */ |
fdc | 154 | drivers/char/ftape/fc-10.c | outb(0x0c, fdc.dor); /* release reset */ |
fdc | 155 | drivers/char/ftape/fc-10.c | outb(0x2d, fdc.dor); /* select drive 1 */ |
fdc | 49 | drivers/char/ftape/fdc-io.c | fdc_config_info fdc = {0}; |
fdc | 96 | drivers/char/ftape/fdc-io.c | fdc_status = inb_p(fdc.msr); |
fdc | 142 | drivers/char/ftape/fdc-io.c | outb(data, fdc.fifo); |
fdc | 157 | drivers/char/ftape/fdc-io.c | *data = inb(fdc.fifo); |
fdc | 176 | drivers/char/ftape/fdc-io.c | fdc_status = inb(fdc.msr); |
fdc | 221 | drivers/char/ftape/fdc-io.c | fdc_status = inb(fdc.msr); |
fdc | 386 | drivers/char/ftape/fdc-io.c | outb_p(data, fdc.dor2); |
fdc | 388 | drivers/char/ftape/fdc-io.c | outb_p(data, fdc.dor); |
fdc | 399 | drivers/char/ftape/fdc-io.c | if (fdc.type >= i82077) { |
fdc | 400 | drivers/char/ftape/fdc-io.c | outb_p((fdc_data_rate & 0x03) | fdc_precomp, fdc.dsr); |
fdc | 402 | drivers/char/ftape/fdc-io.c | outb_p(fdc_data_rate, fdc.ccr); |
fdc | 433 | drivers/char/ftape/fdc-io.c | if (fdc.type >= i82078_1) { |
fdc | 460 | drivers/char/ftape/fdc-io.c | if (fdc.type > i82078_1) { |
fdc | 502 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl & 0x0f, fdc.dor); |
fdc | 503 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor2); |
fdc | 505 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor); /* assert reset, keep unit selected */ |
fdc | 511 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl & 0x0f, fdc.dor); |
fdc | 512 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor2); |
fdc | 514 | drivers/char/ftape/fdc-io.c | outb_p(fdc_ctl, fdc.dor); /* release reset */ |
fdc | 544 | drivers/char/ftape/fdc-io.c | if (CLK_48MHZ && fdc.type >= i82078) |
fdc | 568 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT & 0x0f, fdc.dor); |
fdc | 569 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT, fdc.dor2); |
fdc | 571 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT & 0x0f, fdc.dor); |
fdc | 572 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT, fdc.dor2); |
fdc | 574 | drivers/char/ftape/fdc-io.c | outb_p(FTAPE_UNIT, fdc.dor); |
fdc | 576 | drivers/char/ftape/fdc-io.c | outb_p(FDC_RESET_NOT, fdc.dor); |
fdc | 786 | drivers/char/ftape/fdc-io.c | if (fdc.type < i82077AA) { |
fdc | 817 | drivers/char/ftape/fdc-io.c | if (fdc.type < i82077AA) { |
fdc | 850 | drivers/char/ftape/fdc-io.c | disable_dma(fdc.dma); |
fdc | 851 | drivers/char/ftape/fdc-io.c | clear_dma_ff(fdc.dma); |
fdc | 852 | drivers/char/ftape/fdc-io.c | set_dma_mode(fdc.dma, dma_mode); |
fdc | 853 | drivers/char/ftape/fdc-io.c | set_dma_addr(fdc.dma, (unsigned) buff->ptr); |
fdc | 854 | drivers/char/ftape/fdc-io.c | set_dma_count(fdc.dma, SECTOR_SIZE * buff->sector_count); |
fdc | 867 | drivers/char/ftape/fdc-io.c | enable_dma(fdc.dma); |
fdc | 904 | drivers/char/ftape/fdc-io.c | if (CLK_48MHZ && fdc.type >= i82078) |
fdc | 1021 | drivers/char/ftape/fdc-io.c | outb_p(i, fdc.tdr); |
fdc | 1022 | drivers/char/ftape/fdc-io.c | if ((inb_p(fdc.tdr) & 0x03) != i) { |
fdc | 1097 | drivers/char/ftape/fdc-io.c | fdc.irq = fdc_irq; |
fdc | 1098 | drivers/char/ftape/fdc-io.c | fdc.dma = fdc_dma; |
fdc | 1099 | drivers/char/ftape/fdc-io.c | fdc.sra = fdc_base; |
fdc | 1100 | drivers/char/ftape/fdc-io.c | fdc.srb = fdc_base + 1; |
fdc | 1101 | drivers/char/ftape/fdc-io.c | fdc.dor = fdc_base + 2; |
fdc | 1102 | drivers/char/ftape/fdc-io.c | fdc.tdr = fdc_base + 3; |
fdc | 1103 | drivers/char/ftape/fdc-io.c | fdc.msr = fdc.dsr = fdc_base + 4; |
fdc | 1104 | drivers/char/ftape/fdc-io.c | fdc.fifo = fdc_base + 5; |
fdc | 1106 | drivers/char/ftape/fdc-io.c | fdc.dor2 = fdc_base + 6; |
fdc | 1108 | drivers/char/ftape/fdc-io.c | fdc.dir = fdc.ccr = fdc_base + 7; |
fdc | 1139 | drivers/char/ftape/fdc-io.c | fdc.type = fc10; |
fdc | 1140 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1143 | drivers/char/ftape/fdc-io.c | fdc.type = no_fdc; |
fdc | 1144 | drivers/char/ftape/fdc-io.c | fdc.dor2 = 0; /* not used with std fdc */ |
fdc | 1146 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1152 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1156 | drivers/char/ftape/fdc-io.c | fdc.hook = &do_ftape; |
fdc | 1160 | drivers/char/ftape/fdc-io.c | *(fdc.hook) = fdc_isr; /* hook our handler in */ |
fdc | 1168 | drivers/char/ftape/fdc-io.c | void (*handler) (void) = *fdc.hook; |
fdc | 1170 | 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, ftape_id); |
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, ftape_id); |
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 | 254 | drivers/char/ftape/fdc-isr.c | dma_residue = get_dma_residue(fdc.dma); |
fdc | 255 | drivers/char/ftape/fdc-isr.c | disable_dma(fdc.dma); |
fdc | 550 | drivers/char/ftape/fdc-isr.c | *fdc.hook = fdc_isr; /* hook our handler into the fdc code again */ |
fdc | 556 | drivers/char/ftape/fdc-isr.c | status = inb_p(fdc.msr); |
fdc | 784 | drivers/char/ftape/fdc-isr.c | byte status = inb_p(fdc.msr); |
fdc | 810 | drivers/char/ftape/fdc-isr.c | *fdc.hook = fdc_isr; /* hook our handler into the fdc code again */ |
fdc | 509 | drivers/char/ftape/ftape-ctl.c | if (fdc.type >= i82078_1) |
fdc | 511 | drivers/char/ftape/ftape-ctl.c | else if (fdc.type >= i82077) |
fdc | 11 | include/linux/fdreg.h | #define FD_IOPORT fdc_state[fdc].address |