Searched refs:floppy (Results 1 - 101 of 101) sorted by relevance

/linux-4.1.27/drivers/ide/
H A Dide-floppy.c2 * IDE ATAPI floppy driver.
8 * This driver supports the following IDE floppy drives:
15 * Documentation/ide/ChangeLog.ide-floppy.1996-2002
42 #include "ide-floppy.h"
64 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_callback() local
82 floppy->sense_key = buf[2] & 0x0F; ide_floppy_callback()
83 floppy->asc = buf[12]; ide_floppy_callback()
84 floppy->ascq = buf[13]; ide_floppy_callback()
85 floppy->progress_indication = buf[15] & 0x80 ? ide_floppy_callback()
93 "ascq = %x", floppy->sense_key, ide_floppy_callback()
94 floppy->asc, floppy->ascq); ide_floppy_callback()
106 static void ide_floppy_report_error(struct ide_disk_obj *floppy, ide_floppy_report_error() argument
110 if (floppy->sense_key == 0x02 && ide_floppy_report_error()
111 floppy->asc == 0x3a && ide_floppy_report_error()
112 floppy->ascq == 0x00) ide_floppy_report_error()
117 floppy->drive->name, pc->c[0], floppy->sense_key, ide_floppy_report_error()
118 floppy->asc, floppy->ascq); ide_floppy_report_error()
126 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_issue_pc() local
139 ide_floppy_report_error(floppy, pc); ide_floppy_issue_pc()
166 /* A mode sense command is used to "sense" floppy parameters. */ ide_floppy_create_mode_sense_cmd()
194 struct ide_disk_obj *floppy = drive->driver_data; idefloppy_create_rw_cmd() local
195 int block = sector / floppy->bs_factor; idefloppy_create_rw_cmd()
196 int blocks = blk_rq_sectors(rq) / floppy->bs_factor; idefloppy_create_rw_cmd()
215 static void idefloppy_blockpc_cmd(struct ide_disk_obj *floppy, idefloppy_blockpc_cmd() argument
231 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_do_request() local
244 ide_floppy_report_error(floppy, drive->failed_pc); ide_floppy_do_request()
259 if (((long)blk_rq_pos(rq) % floppy->bs_factor) || ide_floppy_do_request()
260 (blk_rq_sectors(rq) % floppy->bs_factor)) { ide_floppy_do_request()
265 pc = &floppy->queued_pc; ide_floppy_do_request()
273 pc = &floppy->queued_pc; ide_floppy_do_request()
274 idefloppy_blockpc_cmd(floppy, pc, rq); ide_floppy_do_request()
312 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_get_flexible_disk_page() local
313 struct gendisk *disk = floppy->disk; ide_floppy_get_flexible_disk_page()
344 if (memcmp(page, &floppy->flexible_disk_page, 32)) ide_floppy_get_flexible_disk_page()
350 memcpy(&floppy->flexible_disk_page, page, 32); ide_floppy_get_flexible_disk_page()
354 lba_capacity = floppy->blocks * floppy->block_size; ide_floppy_get_flexible_disk_page()
360 floppy->blocks = floppy->block_size ? ide_floppy_get_flexible_disk_page()
361 capacity / floppy->block_size : 0; ide_floppy_get_flexible_disk_page()
362 drive->capacity64 = floppy->blocks * floppy->bs_factor; ide_floppy_get_flexible_disk_page()
369 * Determine if a media is present in the floppy drive, and if so, its LBA
374 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_get_capacity() local
375 struct gendisk *disk = floppy->disk; ide_floppy_get_capacity()
385 floppy->blocks = 0; ide_floppy_get_capacity()
386 floppy->bs_factor = 1; ide_floppy_get_capacity()
391 printk(KERN_ERR PFX "Can't get floppy parameters\n"); ide_floppy_get_capacity()
426 if (memcmp(cap_desc, &floppy->cap_desc, 8)) ide_floppy_get_capacity()
431 memcpy(&floppy->cap_desc, cap_desc, 8); ide_floppy_get_capacity()
437 floppy->blocks = blocks; ide_floppy_get_capacity()
438 floppy->block_size = length; ide_floppy_get_capacity()
439 floppy->bs_factor = length / 512; ide_floppy_get_capacity()
440 if (floppy->bs_factor != 1) ide_floppy_get_capacity()
446 floppy->blocks * floppy->bs_factor; ide_floppy_get_capacity()
476 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_setup() local
510 ide_proc_register_driver(drive, floppy->driver); ide_floppy_setup()
H A Dide-floppy_ioctl.c2 * ide-floppy IOCTLs handling.
14 #include "ide-floppy.h"
40 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_get_format_capacities() local
53 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { ide_floppy_get_format_capacities()
54 printk(KERN_ERR "ide-floppy: Can't get floppy parameters\n"); ide_floppy_get_format_capacities()
121 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_get_sfrp_bit() local
129 if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) ide_floppy_get_sfrp_bit()
141 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_format_unit() local
145 if (floppy->openers > 1) { ide_floppy_format_unit()
178 if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) ide_floppy_format_unit()
201 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_get_format_progress() local
207 if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf, ide_floppy_get_format_progress()
211 if (floppy->sense_key == 2 && ide_floppy_get_format_progress()
212 floppy->asc == 4 && ide_floppy_get_format_progress()
213 floppy->ascq == 4) ide_floppy_get_format_progress()
214 progress_indication = floppy->progress_indication; ide_floppy_get_format_progress()
238 struct ide_disk_obj *floppy = drive->driver_data; ide_floppy_lockdoor() local
239 struct gendisk *disk = floppy->disk; ide_floppy_lockdoor()
242 if (floppy->openers > 1) ide_floppy_lockdoor()
H A Dide-floppy.h20 /* ide-floppy.c */
H A Dide-floppy_proc.c6 #include "ide-floppy.h"
H A Dide-sysfs.c14 return "floppy"; ide_media_string()
H A Dide-gd.c20 #include "ide-floppy.h"
444 MODULE_ALIAS("ide:*m-floppy*");
445 MODULE_ALIAS("ide-floppy");
H A DMakefile94 ide-gd_mod-y += ide-floppy.o ide-floppy_ioctl.o
H A Dide-proc.c594 case ide_floppy: media = "floppy\n"; break; ide_media_proc_show()
H A Dide-probe.c136 printk(KERN_CONT "cdrom or floppy?, assuming "); ide_classify_atapi_dev()
899 request_module("ide-floppy"); ata_probe()
/linux-4.1.27/arch/arm/include/asm/
H A Dfloppy.h2 * arch/arm/include/asm/floppy.h
15 #include <mach/floppy.h>
28 0,"floppy",NULL)
45 #define fd_request_dma() request_dma(DMA_FLOPPY,"floppy")
54 * On initialisation, the floppy list is scanned, and the drives allocated
57 * then there is no floppy drive present. [to be put back in again]
81 int floppy, drive_count; fd_scandrives()
89 for (floppy = 0; floppy < 4; floppy ++) { fd_scandrives()
92 * Turn on floppy motor fd_scandrives()
104 LAST_OUT(UNIT(floppy)); fd_scandrives()
111 floppy -= 1; fd_scandrives()
/linux-4.1.27/arch/mips/include/asm/
H A Dfloppy.h38 * The DMA channel used by the floppy controller cannot access data at
41 * Went back to the 1MB limit, as some people had problems with the floppy
43 * floppy accesses go through the track buffer.
54 #include <floppy.h>
/linux-4.1.27/arch/sparc/include/asm/
H A Dfloppy_32.h1 /* asm/floppy.h: Sparc specific parts of the Floppy driver.
27 * 1) Netbsd Sun floppy driver.
90 /* Here is where we catch the floppy driver trying to initialize,
119 printk("floppy: Asked to read unknown port %d\n", port); sun_82072_fd_inb()
120 panic("floppy: Port bolixed."); sun_82072_fd_inb()
136 printk("floppy: Asked to write to unknown port %d\n", port); sun_82072_fd_outb()
137 panic("floppy: Port bolixed."); sun_82072_fd_outb()
159 printk("floppy: Asked to read unknown port %d\n", port); sun_82077_fd_inb()
160 panic("floppy: Port bolixed."); sun_82077_fd_inb()
184 printk("floppy: Asked to write to unknown port %d\n", port); sun_82077_fd_outb()
185 panic("floppy: Port bolixed."); sun_82077_fd_outb()
205 /* For pseudo-dma (Sun floppy drives have no real DMA available to
208 * assembly floppy interrupt entry point whether it should sit and eat
210 * floppy interrupt c-code. I tried very hard but I could not get the
239 panic("floppy: Giving up..."); sun_fd_set_dma_mode()
288 * ever have a floppy drive. sun_floppy_init()
291 /* We certainly don't have a floppy controller. */ sun_floppy_init()
319 sun_fdc = of_ioremap(&r, 0, fd_regs[0].reg_size, "floppy"); sun_floppy_init()
H A Dauxio_32.h14 * Secondly, it controls various floppy drive parameters.
27 /* Set the following to zero to eject the floppy. */
28 #define AUXIO_FLPY_EJCT 0x02 /* Eject floppy disk. Write only. */
38 unsigned char get_auxio(void); /* .../asm/floppy.h */
H A Dfloppy_64.h0 /* floppy.h: Sparc specific parts of the Floppy driver.
26 * 1) Netbsd Sun floppy driver.
85 /* Here is where we catch the floppy driver trying to initialize,
105 printk("floppy: Asked to read unknown port %lx\n", port); sun_82077_fd_inb()
106 panic("floppy: Port bolixed."); sun_82077_fd_inb()
123 printk("floppy: Asked to write to unknown port %lx\n", port); sun_82077_fd_outb()
124 panic("floppy: Port bolixed."); sun_82077_fd_outb()
142 /* For pseudo-dma (Sun floppy drives have no real DMA available to
145 * assembly floppy interrupt entry point whether it should sit and eat
147 * floppy interrupt c-code. I tried very hard but I could not get the
178 panic("floppy: Giving up..."); sun_fd_set_dma_mode()
234 /* Send Terminal Count pulse to floppy controller. */ sparc_floppy_irq()
257 0, "floppy", NULL); sun_fd_request_irq()
317 * XXX: Due to SUN's broken floppy connector on AX and AXi sun_pci_fd_broken_outb()
318 * we need to turn on MOTOR_0 also, if the floppy is sun_pci_fd_broken_outb()
336 * XXX: Due to SUN's broken floppy connector on AX and AXi sun_pci_fd_lde_broken_outb()
337 * we need to turn on MOTOR_0 also, if the floppy is sun_pci_fd_lde_broken_outb()
533 if (!strcmp(dp->name, "floppy")) { ebus_fdthree_p()
615 strcpy(sun_pci_fd_ebus_dma.name, "floppy");
721 * which the generic floppy driver tries to do once again.
H A Dauxio_64.h30 * T - Terminal Count: sends TC pulse to 82077 floppy controller
/linux-4.1.27/arch/powerpc/include/asm/
H A Dmediabay.h12 #define MB_FD 0 /* media bay contains floppy drive (automatic eject ?) */
13 #define MB_FD1 1 /* media bay contains floppy drive (manual eject ?) */
H A Dfloppy.h111 0, "floppy", NULL); fd_request_irq()
114 0, "floppy", NULL); fd_request_irq()
189 return request_dma(FLOPPY_DMA, "floppy"); fd_request_dma()
206 * The PowerPC has no problems with floppy DMA crossing 64k borders.
H A Ddma-mapping.h84 * only ISA DMA device we support is the floppy and we have a hack get_dma_ops()
85 * in the floppy driver directly to get a device for us. get_dma_ops()
H A Dpmac_feature.h173 * enable/disable the swim3 (floppy) cell of a mac-io ASIC
/linux-4.1.27/arch/m68k/include/asm/
H A Dsun3xflop.h1 /* sun3xflop.h: Sun3/80 specific parts of the floppy driver.
3 * Derived partially from asm-sparc/floppy.h, which is:
51 printk("floppy: Asked to read unknown port %d\n", port); sun3x_82072_fd_inb()
52 panic("floppy: Port bolixed."); sun3x_82072_fd_inb()
73 printk("floppy: Asked to write to unknown port %d\n", port); sun3x_82072_fd_outb()
74 panic("floppy: Port bolixed."); sun3x_82072_fd_outb()
79 * ASSUMPTIONS: There will only ever be one floppy sun3x_82072_fd_outb()
210 0, "floppy", NULL); sun3xflop_request_irq()
H A Dfloppy.h4 * much of this file is derived from what was originally the Q40 floppy driver.
41 /* vdma globals adapted from asm-i386/floppy.h */
88 0, "floppy", floppy_hardint); fd_request_irq()
100 #define fd_request_dma() vdma_request_dma(FLOPPY_DMA,"floppy")
H A Damigaints.h32 /* floppy disk interrupts */
/linux-4.1.27/arch/mips/include/asm/mach-generic/
H A Dfloppy.h21 #include <asm/floppy.h>
40 * How to access the floppy DMA functions.
54 return request_dma(FLOPPY_DMA, "floppy"); fd_request_dma()
100 0, "floppy", NULL); fd_request_irq()
/linux-4.1.27/include/linux/
H A Damifd.h4 /* Definitions for the Amiga floppy driver */
45 struct fd_drive_type *type; /* type of floppy for this unit */
46 struct fd_data_type *dtype; /* type of floppy for this unit */
H A Dide.h399 /* ide-floppy */
518 u8 media; /* disk, cdrom, tape, floppy, ... */
802 /* used by ide-cd, ide-floppy, etc. */
H A Dfs.h107 (specialy hack for floppy.c) */
/linux-4.1.27/arch/alpha/include/asm/
H A Dfloppy.h19 #define fd_request_dma() request_dma(FLOPPY_DMA,"floppy")
29 0, "floppy", NULL)
95 * Most Alphas have no problems with floppy DMA crossing 64k borders,
98 * However, the test is simple and fast, and this *is* floppy, after all,
102 * about the PCI DMA windows and forcing the floppy to start doing
H A Dcore_apecs.h44 limit what memory an ISA floppy or sound card or Ethernet can touch, but
/linux-4.1.27/arch/arm/mach-rpc/include/mach/
H A Dio.h22 * - floppy (at 0x3f2,0x3f4,0x3f5,0x3f7)
/linux-4.1.27/arch/x86/include/asm/
H A Dfloppy.h16 * The DMA channel used by the floppy controller cannot access data at
19 * Went back to the 1MB limit, as some people had problems with the floppy
21 * floppy accesses go through the track buffer.
37 #define fd_request_dma() CSW._request_dma(FLOPPY_DMA, "floppy")
148 0, "floppy", NULL); fd_request_irq()
151 0, "floppy", NULL); fd_request_irq()
253 * is needed to prevent corrupted CMOS RAM in case "insmod floppy"
/linux-4.1.27/drivers/block/
H A DMakefile10 obj-$(CONFIG_BLK_DEV_FD) += floppy.o
H A Dfloppy.c2 * linux/drivers/block/floppy.c
28 * call "floppy-on" directly, but have to set a special timer interrupt
38 * Automatic floppy-detection and formatting written by Werner Almesberger
40 * the floppy-change signal detection.
60 * floppy as the first thing after bootup.
65 * this helped the floppy driver as well. Much cleaner, and still seems to
69 /* 1994/6/24 --bbroad-- added the floppy table entries and made
82 /* 1994/9/17 -- Koen Holtman -- added logging of physical floppy write
98 * features to asm/floppy.h.
107 * interrupt and dma channel to asm/floppy.h. Cleaned up some formatting &
121 * 1999/08/13 -- Paul Slootman -- floppy stopped working on Alpha after 24
134 * floppy controller (lingering task on list after module is gone... boom.)
154 pr_info("floppy%d: " format, current_drive, ##args)
225 * It is not safe to reset it in other circumstances, because the floppy
239 * 3 of both floppy controllers are disabled, because switching on the
244 * NOTE: This must come before we include the arch floppy header because
250 #include <asm/floppy.h>
313 #define PH_HEAD(floppy, head) (((((floppy)->stretch & 2) >> 1) ^ head) << 2)
314 #define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH)
360 * this struct defines the different floppy drive types.
418 * This struct defines the different floppy types.
486 #define SECTSIZE (_FD_SECTSIZE(*floppy))
499 static char floppy_device_name[] = "floppy";
641 /* this routine checks whether the floppy driver is "alive" */ is_alive()
701 * Bottom half floppy driver.
715 * 1. The floppy has been changed after some i/o to that floppy already
717 * 2. No floppy disk is in the drive. This is done in order to ensure that
730 * The floppy has been changed after the last seek.
932 * cycle through all N_DRIVE floppy drives, for disk change testing.
1239 * head load time, and DMA disable flag to values needed by floppy.
1447 * for the transfer (i.e. floppy motor is on, the correct floppy is
1475 /* wait until the floppy is spinning fast enough */ setup_rw_floppy()
1510 * from the floppy controller.
1689 pr_info("floppy interrupt on bizarre fdc %d\n", fdc); floppy_interrupt()
1700 * It is OK to emit floppy commands because we are in an interrupt floppy_interrupt()
1788 pr_info("floppy driver state\n"); show_floppy()
1842 DPRINT("floppy timeout called\n"); floppy_shutdown()
1874 /* starts motor and selects floppy */ start_motor()
1922 reschedule_timeout(current_reqD, "floppy start"); floppy_start()
2236 pr_info("floppy.c: no request in request_done\n"); request_done()
2280 /* some Toshiba floppy controllers occasionnally seem to rw_interrupt()
2346 DPRINT("Auto-detected floppy type %s in fd%d\n", rw_interrupt()
2512 * tmp floppy area), how much data to load (the size of the buffer, the whole
2996 struct floppy_struct *floppy; drive_name() local
2999 floppy = floppy_type + type; drive_name()
3002 floppy = floppy_type + UDP->native_format; drive_name()
3006 if (floppy->name) drive_name()
3007 return floppy->name; drive_name()
3397 /* convert compatibility eject ioctls into floppy eject ioctl. fd_locked_ioctl()
3398 * We do this in order to provide a means to eject floppy disks before fd_locked_ioctl()
3401 cmd == 0x6470) { /* SunOS floppy eject */ fd_locked_ioctl()
3780 pr_info("floppy: error %d while reading block 0\n", err); floppy_rb0_cb()
3830 /* revalidate the floppy disk, i.e. trigger format autodetection by reading
3891 /* Determine the floppy disk controller type */
4001 DPRINT("Assuming %s floppy hardware\n", param ? "standard" : "broken"); daring()
4089 DPRINT("unknown floppy option [%s]\n", str); floppy_setup()
4096 DPRINT("botched floppy option\n"); floppy_setup()
4097 DPRINT("Read Documentation/blockdev/floppy.txt\n"); floppy_setup()
4144 .name = "floppy",
4185 floppy_wq = alloc_ordered_workqueue("floppy", 0); do_floppy_init()
4230 reschedule_timeout(MAXTIMEOUT, "floppy init"); do_floppy_init()
4299 /* Try to determine the floppy controller type */ do_floppy_init()
4322 DPRINT("no floppy controllers found\n"); do_floppy_init()
4391 /* Don't hold up the bootup by the floppy initialization */ floppy_init()
4425 p->size, "floppy")) { floppy_request_regions()
4452 DPRINT("Unable to grab IRQ%d for the floppy driver\n", floppy_grab_irq_and_dma()
4458 DPRINT("Unable to grab DMA%d for the floppy driver\n", floppy_grab_irq_and_dma()
4541 pr_info("floppy timer still active:%s\n", timeout_message); floppy_release_irq_and_dma()
4543 pr_info("auxiliary floppy timer still active\n"); floppy_release_irq_and_dma()
4555 static char *floppy; variable
4576 if (floppy) floppy_module_init()
4577 parse_floppy_cfg_string(floppy); floppy_module_init()
4624 module_param(floppy, charp, 0);
4641 __setup("floppy=", floppy_setup);
H A Dataflop.c27 * - Initialize track register when testing presence of floppy
257 * First, there is a DMA buffer in ST-RAM that is used for floppy DMA
1083 printk(KERN_INFO "fd%d: Auto-detected floppy type %s\n", fd_rwsec_done1()
1254 printk(KERN_ERR "floppy timeout\n" ); fd_times_out()
1319 * Linux, since the floppy driver can't make assumptions about the
1360 printk(KERN_ERR "floppy: clear format %p!\n", UDT); floppy_revalidate()
1424 struct atari_floppy_struct *floppy; redo_fd_request() local
1439 floppy = fd_request->rq_disk->private_data; redo_fd_request()
1440 drive = floppy - unit; redo_fd_request()
1441 type = floppy->type; redo_fd_request()
1454 set_capacity(floppy->disk, UDT->blocks); redo_fd_request()
1472 set_capacity(floppy->disk, UDT->blocks); redo_fd_request()
1513 struct atari_floppy_struct *floppy = disk->private_data; fd_locked_ioctl() local
1514 int drive = floppy - unit; fd_locked_ioctl()
1515 int type = floppy->type; fd_locked_ioctl()
1533 printk (KERN_ERR "floppy%d: found dtp %p name %s!\n", fd_locked_ioctl()
1565 if (floppy->ref != 1 && floppy->ref != -1) fd_locked_ioctl()
1570 * first of all: check for floppy change and revalidate, fd_locked_ioctl()
1578 printk (KERN_INFO "floppy%d: setting size %d spt %d str %d!\n", fd_locked_ioctl()
1609 printk (KERN_INFO "floppy%d: setting %s %p!\n", fd_locked_ioctl()
1612 set_capacity(floppy->disk, UDT->blocks); fd_locked_ioctl()
1647 printk (KERN_INFO "floppy%d: blk %d spt %d str %d!\n", fd_locked_ioctl()
1658 set_capacity(floppy->disk, UDT->blocks); fd_locked_ioctl()
1672 if (floppy->ref != 1 && floppy->ref != -1) fd_locked_ioctl()
1681 set_capacity(floppy->disk, MAX_DISK_SIZE * 2); fd_locked_ioctl()
1742 /* This function tests the physical presence of a floppy drive (not
1806 printk(KERN_INFO "Probing floppy drive(s):\n"); config_types()
1926 /* Amiga, Mac, ... don't have Atari-compatible floppy :-) */ atari_floppy_init()
1978 printk(KERN_INFO "Atari floppy driver: max. %cD, %strack buffering\n", atari_floppy_init()
2033 __setup("floppy=", atari_floppy_setup);
H A Dswim.c2 * Driver for SWIM (Sander Woz Integrated Machine) floppy controller
603 "SWIM: cannot move floppy head to track 0\n"); setup_medium()
818 /* scan floppy drives */ swim_floppy_init()
827 /* register floppy drives */ swim_floppy_init()
831 printk(KERN_ERR "Unable to get major %d for SWIM floppy\n", swim_floppy_init()
979 printk(KERN_INFO "SWIM floppy driver %s\n", DRIVER_VERSION); swim_init()
991 MODULE_DESCRIPTION("Driver for SWIM floppy controller");
H A Damiflop.c187 /* floppy internal millisecond timer stuff */
1261 printk (KERN_NOTICE "floppy disk write protected\n"); flush_track_callback()
1286 printk (KERN_NOTICE "floppy disk write protected " non_int_flush_track()
1378 struct amiga_floppy_struct *floppy; redo_fd_request() local
1390 floppy = rq->rq_disk->private_data; redo_fd_request()
1391 drive = floppy - unit; redo_fd_request()
1402 if ((int)block > floppy->blocks) { redo_fd_request()
1407 track = block / (floppy->dtype->sects * floppy->type->sect_mult); redo_fd_request()
1408 sector = block % (floppy->dtype->sects * floppy->type->sect_mult); redo_fd_request()
1421 memcpy(data, floppy->trackbuf + sector * 512, 512); redo_fd_request()
1423 memcpy(floppy->trackbuf + sector * 512, data, 512); redo_fd_request()
1436 floppy->dirty = 1; redo_fd_request()
1661 * here, sleep etc. Note that floppy-on tries to set current_DOR to point
1866 .name = "amiga-floppy",
1890 __setup("floppy=", amiga_floppy_setup);
1893 MODULE_ALIAS("platform:amiga-floppy");
H A Dswim_asm.S2 * low-level functions for the SWIM floppy controller
H A Dswim3.c3 * floppy controller found on Power Macintoshes.
1187 swim3_info("SWIM3 floppy controller %s\n", swim3_add_device()
/linux-4.1.27/arch/mips/include/asm/dec/
H A Dkn02ca.h39 #define KN02CA_IO_INR_HDFLOPPY 7 /* (*) HD (1.44MB) floppy status */
42 #define KN02CA_IO_INR_XDFLOPPY 4 /* (*) XD (2.88MB) floppy status */
/linux-4.1.27/arch/mips/include/asm/mach-jazz/
H A Dfloppy.h36 * How to access the floppy DMA functions.
92 0, "floppy", NULL); fd_request_irq()
/linux-4.1.27/arch/parisc/include/asm/
H A Dfloppy.h28 * The DMA channel used by the floppy controller cannot access data at
31 * Went back to the 1MB limit, as some people had problems with the floppy
33 * floppy accesses go through the track buffer.
48 #define fd_request_dma() CSW._request_dma(FLOPPY_DMA,"floppy")
160 0, "floppy", NULL); fd_request_irq()
163 0, "floppy", NULL); fd_request_irq()
/linux-4.1.27/include/uapi/linux/
H A Dfd.h27 #define FD_SECTBASE(floppy) ((((floppy)->stretch & FD_SECTBASEMASK) >> 2) ^ 1)
34 #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8)
35 #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \
36 512 : 128 << FD_SIZECODE(floppy) )
266 unsigned int driver_version; /* version code for floppy driver */
268 /* user programs using the floppy API should use floppy_fdc_state to
269 * get the version number of the floppy driver that they are running
H A Dfdreg.h4 * This file contains some defines for the floppy disk controller.
90 * floppy driver, except the first three. These commands may be useful for apps
H A Dcapability.h246 /* Allow setting geometry in floppy driver */
/linux-4.1.27/arch/sparc/kernel/
H A Dirq_32.c246 err = request_irq(irq, irq_handler, 0, "floppy", NULL); sparc_floppy_request_irq()
250 /* Save for later use in floppy interrupt handler */ sparc_floppy_request_irq()
292 * the floppy driver image because that would not work in the
315 * We only have one floppy interrupt so we do not need to check
H A Dauxio_64.c148 * be before device_initcall() because things like the floppy driver
H A Dsun4m_irq.c96 * floppy: 0x2b onboard Floppy
122 #define SUN4M_INT_FLOPPY 0x00400000 /* floppy disk */
H A Dentry.S69 * %l7 -- scratch [floppy byte, ld/st address, aux. data]
184 mov 11, %o0 ! floppy irq level (unused anyway)
/linux-4.1.27/arch/sh/boards/mach-se/770x/
H A Dirq.c25 * 6: floppy
/linux-4.1.27/arch/xtensa/kernel/
H A Dxtensa_ksyms.c31 #include <asm/floppy.h>
/linux-4.1.27/arch/mips/fw/arc/
H A Dtree.c82 "floppy peripheral", "tp peripheral", "modem peripheral",
/linux-4.1.27/arch/x86/
H A DMakefile259 echo ' fdimage - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)'
260 echo ' fdimage144 - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)'
261 echo ' fdimage288 - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)'
/linux-4.1.27/arch/m68k/amiga/
H A Damiints.c59 /* if floppy disk transfer complete, interrupt */ ami_int1()
H A Dplatform.c162 pdev = platform_device_register_simple("amiga-floppy", -1, amiga_init_devices()
/linux-4.1.27/arch/m68k/include/uapi/asm/
H A Dbootinfo-mac.h48 #define BI_MAC_IOP_SWIM 0x8020 /* Mac SWIM floppy IOP */
/linux-4.1.27/arch/arm/mach-rpc/
H A Driscpc.c92 * Turn off floppy. rpc_map_io()
/linux-4.1.27/arch/arm/include/uapi/asm/
H A Dsetup.h67 __u32 start; /* starting block of floppy-based RAM disk image */
/linux-4.1.27/arch/alpha/kernel/
H A Dsmc37c669.c385 unsigned floppy_a : 2; /* Type of floppy drive A */
386 unsigned floppy_b : 2; /* Type of floppy drive B */
387 unsigned floppy_c : 2; /* Type of floppy drive C */
388 unsigned floppy_d : 2; /* Type of floppy drive D */
1348 ** Enable the floppy controller DMA channel mapping SMC37c669_enable_device()
1363 ** Enable the floppy controller IRQ mapping SMC37c669_enable_device()
1378 ** Enable the floppy controller base address mapping SMC37c669_enable_device()
1562 ** Disable the floppy controller DMA channel mapping SMC37c669_disable_device()
1574 ** Disable the floppy controller IRQ mapping SMC37c669_disable_device()
1586 ** Disable the floppy controller base address mapping SMC37c669_disable_device()
2135 ** Get IRQs for parallel port and floppy controller SMC37c669_init_local_config()
2140 ** Get DRQs for parallel port and floppy controller SMC37c669_init_local_config()
2157 ** Get floppy controller base address SMC37c669_init_local_config()
2162 ** Store local configuration information for floppy controller SMC37c669_init_local_config()
2539 /* Wake up sometimes forgotten floppy, especially on DP264. */ SMC669_Init()
H A Dcore_t2.c39 * floppy to DMA only via the scatter/gather window set up for 8MB
43 * have less than 1GB of memory, floppy usage/performance will not
353 do an ISA SG area, especially for the floppy. */ t2_sg_map_window2()
H A Dsys_jensen.c47 * 0x860 - IRQ6 floppy disk
H A Dsys_sable.c73 * 7 floppy 6
232 * 7 floppy 6
H A Dcore_tsunami.c321 * specifically floppy and IDE when memory is larger than 2GB. tsunami_init_one_pchip()
/linux-4.1.27/arch/mips/pci/
H A Dfixup-fuloong2e.c114 * IRQ 6 for floppy, IRQ 7 for parallel port loongson2e_686b_func0_fixup()
/linux-4.1.27/arch/mn10300/boot/tools/
H A Dbuild.c158 "from floppy\n"); main()
/linux-4.1.27/arch/m68k/atari/
H A Dstdma.c202 "ST-DMA floppy,ACSI,IDE,Falcon-SCSI", stdma_int)) stdma_init()
/linux-4.1.27/init/
H A Ddo_mounts.c519 printk(KERN_ERR "VFS: Unable to mount root fs via NFS, trying floppy.\n"); mount_root()
532 change_floppy("root floppy"); mount_root()
H A Ddo_mounts_rd.c304 change_floppy("root floppy disk to be loaded into RAM disk"); rd_load_disk()
/linux-4.1.27/drivers/scsi/
H A Dultrastor.c33 * 14F - ISA first-party DMA HA with floppy support and WD1003 emulation.
34 * 14N - ISA HA with floppy support. I think that this is a non-DMA
36 * 24F - EISA Bus Master HA with floppy support and WD1003 emulation.
37 * 34F - VL-Bus Bus Master HA with floppy support (no WD1003 emulation).
H A Dt128.c48 * T128F Sw6 Sw7 Sw5 = 0ws Sw4 = boot Sw8 = floppy disable
H A Din2000.h123 #define SW_FLOPPY 0x40 /* bit 6 true if floppy enabled */
H A Du14-34f.c273 * 14F - ISA first-party DMA HA with floppy support and WD1003 emulation.
274 * 24F - EISA Bus Master HA with floppy support and WD1003 emulation.
303 * get acceptable performance while using floppy drive and hard disk
H A Datari_scsi.c803 * floppy or IDE driver (if one of them holds the lock). The NCR5380 atari_scsi_bus_reset()
H A DBusLogic.h559 bool floppy:1; /* Byte 10 Bit 0 */ member in struct:blogic_autoscsi
H A Daha1542.c664 /* Set the Bus on/off-times as not to ruin floppy performance */ aha1542_set_bus_times()
H A Din2000.c2107 printk("dip_switch=%02x irq=%d ioport=%02x floppy=%s sync/DOS5=%s ", (switches & 0x7f), instance->irq, hostdata->io_base, (switches & SW_FLOPPY) ? "Yes" : "No", (switches & SW_SYNC_DOS5) ? "Yes" : "No"); in2000_detect()
2228 seq_printf(m, "\ndip_switch=%02x: irq=%d io=%02x floppy=%s sync/DOS5=%s", (hd->dip_switch & 0x7f), instance->irq, hd->io_base, (hd->dip_switch & 0x40) ? "Yes" : "No", (hd->dip_switch & 0x20) ? "Yes" : "No"); in2000_show_info()
H A Dscsi_scan.c1143 * PDT=00h Direct-access device (floppy) scsi_probe_and_add_lun()
H A Dfdomain.c67 high-density external connector. The 1670 and 1680 have floppy disk
H A Ddpt_i2o.c493 if (capacity < 0x2000 ) { // floppy adpt_bios_param()
H A DNCR5380.c479 /* 300 RPM (floppy speed) */
/linux-4.1.27/arch/mips/mti-malta/
H A Dmalta-setup.c93 /* Activate floppy controller. */ fd_activate()
/linux-4.1.27/arch/m68k/q40/
H A Dq40ints.c180 { .mask = Q40_IRQ6_MASK, .irq = 6 }, /* floppy, handled elsewhere */
/linux-4.1.27/drivers/macintosh/
H A Dmacio_asic.c278 if (dev->media_bay != NULL && strcmp(np->name, "floppy") == 0) { macio_add_missing_resources()
281 printk(KERN_INFO "macio: fixed left floppy irqs\n"); macio_add_missing_resources()
H A Dmediabay.c357 "a floppy drive", poll_media_bay()
358 "a floppy drive", poll_media_bay()
/linux-4.1.27/arch/mips/jazz/
H A Djazzdma.c454 case JAZZ_FLOPPY_DMA: /* floppy */ vdma_set_mode()
/linux-4.1.27/drivers/parisc/
H A Dsuperio.c45 * A floppy disk controller
/linux-4.1.27/arch/x86/kernel/
H A Dquirks.c520 * floppy DMA. Disable HPET MSI on such platforms.
/linux-4.1.27/drivers/acpi/
H A Dacpi_pnp.c20 /* floppy */
/linux-4.1.27/drivers/input/keyboard/
H A Dlkkbd.c35 * Most easily, you'll get that from a floppy or HDD power connector.
/linux-4.1.27/arch/m68k/mac/
H A Diop.c135 * The ISM IOP controls the SWIM (floppy drive) and ADB.
/linux-4.1.27/drivers/usb/core/
H A Dmessage.c1961 * driver is bound to and create new ones; it would be like a floppy-disk
1962 * driver telling the computer to replace the floppy-disk drive with a
/linux-4.1.27/drivers/usb/storage/
H A Dunusual_devs.h314 * This virtual floppy is found in Sun equipment (x4600, x4200m2, etc.)
708 /* floppy reports multiple luns */
/linux-4.1.27/arch/x86/pci/
H A Dirq.c34 * Penalize: 3, 4, 6, 7, 12 (known ISA uses: serial, floppy, parallel and mouse)
/linux-4.1.27/block/
H A Dblk-cgroup.c489 /* some drivers (floppy) instantiate a queue w/o disk registered */ blkg_dev_name()
/linux-4.1.27/drivers/base/
H A Dplatform.c814 * device, like "pci" or "floppy", and <instance> is the enumerated
/linux-4.1.27/Documentation/cdrom/
H A Dcdrom-standard.tex156 block-devices such as floppy or hard disc drives), to define a set
646 it more-or-less looks like the old IBM-PC trying to read an empty floppy
/linux-4.1.27/fs/fat/
H A Dinode.c1458 "This looks like a DOS 1.x volume, but isn't a recognized floppy size (%llu sectors)", fat_read_static_bpb()
/linux-4.1.27/drivers/net/irda/
H A Dnsc-ircc.c822 * floppy...) are each in a different bank (Logical Device Number).
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dfeature.c2504 * appears this is wrong, the floppy connector is actually probe_motherboard()
/linux-4.1.27/fs/
H A Dblock_dev.c828 * if partno is 0; however, some drivers (floppy) use multiple bd_start_claiming()
/linux-4.1.27/drivers/hwmon/
H A Dit87.c6 * parallel port, an IR port, a MIDI port, a floppy controller, etc., in
/linux-4.1.27/drivers/video/fbdev/
H A Damifb.c228 cycles from the other DMA channels (audio, floppy and Chip RAM refresh).
/linux-4.1.27/drivers/iommu/
H A Dintel-iommu.c2436 "floppy might not work\n"); iommu_prepare_isa()

Completed in 4885 milliseconds