/linux-4.1.27/drivers/ide/ |
H A D | ide-floppy.c | 2 * 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 D | ide-floppy_ioctl.c | 2 * 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 D | ide-floppy.h | 20 /* ide-floppy.c */
|
H A D | ide-floppy_proc.c | 6 #include "ide-floppy.h"
|
H A D | ide-sysfs.c | 14 return "floppy"; ide_media_string()
|
H A D | ide-gd.c | 20 #include "ide-floppy.h" 444 MODULE_ALIAS("ide:*m-floppy*"); 445 MODULE_ALIAS("ide-floppy");
|
H A D | Makefile | 94 ide-gd_mod-y += ide-floppy.o ide-floppy_ioctl.o
|
H A D | ide-proc.c | 594 case ide_floppy: media = "floppy\n"; break; ide_media_proc_show()
|
H A D | ide-probe.c | 136 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 D | floppy.h | 2 * 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 D | floppy.h | 38 * 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 D | floppy_32.h | 1 /* 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 D | auxio_32.h | 14 * 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 D | floppy_64.h | 0 /* 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 D | auxio_64.h | 30 * T - Terminal Count: sends TC pulse to 82077 floppy controller
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | mediabay.h | 12 #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 D | floppy.h | 111 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 D | dma-mapping.h | 84 * 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 D | pmac_feature.h | 173 * enable/disable the swim3 (floppy) cell of a mac-io ASIC
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | sun3xflop.h | 1 /* 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 D | floppy.h | 4 * 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 D | amigaints.h | 32 /* floppy disk interrupts */
|
/linux-4.1.27/arch/mips/include/asm/mach-generic/ |
H A D | floppy.h | 21 #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 D | amifd.h | 4 /* 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 D | ide.h | 399 /* ide-floppy */ 518 u8 media; /* disk, cdrom, tape, floppy, ... */ 802 /* used by ide-cd, ide-floppy, etc. */
|
H A D | fs.h | 107 (specialy hack for floppy.c) */
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | floppy.h | 19 #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 D | core_apecs.h | 44 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 D | io.h | 22 * - floppy (at 0x3f2,0x3f4,0x3f5,0x3f7)
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | floppy.h | 16 * 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 D | Makefile | 10 obj-$(CONFIG_BLK_DEV_FD) += floppy.o
|
H A D | floppy.c | 2 * 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 D | ataflop.c | 27 * - 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 D | swim.c | 2 * 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 D | amiflop.c | 187 /* 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 D | swim_asm.S | 2 * low-level functions for the SWIM floppy controller
|
H A D | swim3.c | 3 * 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 D | kn02ca.h | 39 #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 D | floppy.h | 36 * How to access the floppy DMA functions. 92 0, "floppy", NULL); fd_request_irq()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | floppy.h | 28 * 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 D | fd.h | 27 #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 D | fdreg.h | 4 * 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 D | capability.h | 246 /* Allow setting geometry in floppy driver */
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | irq_32.c | 246 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 D | auxio_64.c | 148 * be before device_initcall() because things like the floppy driver
|
H A D | sun4m_irq.c | 96 * floppy: 0x2b onboard Floppy 122 #define SUN4M_INT_FLOPPY 0x00400000 /* floppy disk */
|
H A D | entry.S | 69 * %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 D | irq.c | 25 * 6: floppy
|
/linux-4.1.27/arch/xtensa/kernel/ |
H A D | xtensa_ksyms.c | 31 #include <asm/floppy.h>
|
/linux-4.1.27/arch/mips/fw/arc/ |
H A D | tree.c | 82 "floppy peripheral", "tp peripheral", "modem peripheral",
|
/linux-4.1.27/arch/x86/ |
H A D | Makefile | 259 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 D | amiints.c | 59 /* if floppy disk transfer complete, interrupt */ ami_int1()
|
H A D | platform.c | 162 pdev = platform_device_register_simple("amiga-floppy", -1, amiga_init_devices()
|
/linux-4.1.27/arch/m68k/include/uapi/asm/ |
H A D | bootinfo-mac.h | 48 #define BI_MAC_IOP_SWIM 0x8020 /* Mac SWIM floppy IOP */
|
/linux-4.1.27/arch/arm/mach-rpc/ |
H A D | riscpc.c | 92 * Turn off floppy. rpc_map_io()
|
/linux-4.1.27/arch/arm/include/uapi/asm/ |
H A D | setup.h | 67 __u32 start; /* starting block of floppy-based RAM disk image */
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | smc37c669.c | 385 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 D | core_t2.c | 39 * 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 D | sys_jensen.c | 47 * 0x860 - IRQ6 floppy disk
|
H A D | sys_sable.c | 73 * 7 floppy 6 232 * 7 floppy 6
|
H A D | core_tsunami.c | 321 * specifically floppy and IDE when memory is larger than 2GB. tsunami_init_one_pchip()
|
/linux-4.1.27/arch/mips/pci/ |
H A D | fixup-fuloong2e.c | 114 * IRQ 6 for floppy, IRQ 7 for parallel port loongson2e_686b_func0_fixup()
|
/linux-4.1.27/arch/mn10300/boot/tools/ |
H A D | build.c | 158 "from floppy\n"); main()
|
/linux-4.1.27/arch/m68k/atari/ |
H A D | stdma.c | 202 "ST-DMA floppy,ACSI,IDE,Falcon-SCSI", stdma_int)) stdma_init()
|
/linux-4.1.27/init/ |
H A D | do_mounts.c | 519 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 D | do_mounts_rd.c | 304 change_floppy("root floppy disk to be loaded into RAM disk"); rd_load_disk()
|
/linux-4.1.27/drivers/scsi/ |
H A D | ultrastor.c | 33 * 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 D | t128.c | 48 * T128F Sw6 Sw7 Sw5 = 0ws Sw4 = boot Sw8 = floppy disable
|
H A D | in2000.h | 123 #define SW_FLOPPY 0x40 /* bit 6 true if floppy enabled */
|
H A D | u14-34f.c | 273 * 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 D | atari_scsi.c | 803 * floppy or IDE driver (if one of them holds the lock). The NCR5380 atari_scsi_bus_reset()
|
H A D | BusLogic.h | 559 bool floppy:1; /* Byte 10 Bit 0 */ member in struct:blogic_autoscsi
|
H A D | aha1542.c | 664 /* Set the Bus on/off-times as not to ruin floppy performance */ aha1542_set_bus_times()
|
H A D | in2000.c | 2107 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 D | scsi_scan.c | 1143 * PDT=00h Direct-access device (floppy) scsi_probe_and_add_lun()
|
H A D | fdomain.c | 67 high-density external connector. The 1670 and 1680 have floppy disk
|
H A D | dpt_i2o.c | 493 if (capacity < 0x2000 ) { // floppy adpt_bios_param()
|
H A D | NCR5380.c | 479 /* 300 RPM (floppy speed) */
|
/linux-4.1.27/arch/mips/mti-malta/ |
H A D | malta-setup.c | 93 /* Activate floppy controller. */ fd_activate()
|
/linux-4.1.27/arch/m68k/q40/ |
H A D | q40ints.c | 180 { .mask = Q40_IRQ6_MASK, .irq = 6 }, /* floppy, handled elsewhere */
|
/linux-4.1.27/drivers/macintosh/ |
H A D | macio_asic.c | 278 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 D | mediabay.c | 357 "a floppy drive", poll_media_bay() 358 "a floppy drive", poll_media_bay()
|
/linux-4.1.27/arch/mips/jazz/ |
H A D | jazzdma.c | 454 case JAZZ_FLOPPY_DMA: /* floppy */ vdma_set_mode()
|
/linux-4.1.27/drivers/parisc/ |
H A D | superio.c | 45 * A floppy disk controller
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | quirks.c | 520 * floppy DMA. Disable HPET MSI on such platforms.
|
/linux-4.1.27/drivers/acpi/ |
H A D | acpi_pnp.c | 20 /* floppy */
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | lkkbd.c | 35 * Most easily, you'll get that from a floppy or HDD power connector.
|
/linux-4.1.27/arch/m68k/mac/ |
H A D | iop.c | 135 * The ISM IOP controls the SWIM (floppy drive) and ADB.
|
/linux-4.1.27/drivers/usb/core/ |
H A D | message.c | 1961 * 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 D | unusual_devs.h | 314 * 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 D | irq.c | 34 * Penalize: 3, 4, 6, 7, 12 (known ISA uses: serial, floppy, parallel and mouse)
|
/linux-4.1.27/block/ |
H A D | blk-cgroup.c | 489 /* some drivers (floppy) instantiate a queue w/o disk registered */ blkg_dev_name()
|
/linux-4.1.27/drivers/base/ |
H A D | platform.c | 814 * device, like "pci" or "floppy", and <instance> is the enumerated
|
/linux-4.1.27/Documentation/cdrom/ |
H A D | cdrom-standard.tex | 156 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 D | inode.c | 1458 "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 D | nsc-ircc.c | 822 * floppy...) are each in a different bank (Logical Device Number).
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
H A D | feature.c | 2504 * appears this is wrong, the floppy connector is actually probe_motherboard()
|
/linux-4.1.27/fs/ |
H A D | block_dev.c | 828 * if partno is 0; however, some drivers (floppy) use multiple bd_start_claiming()
|
/linux-4.1.27/drivers/hwmon/ |
H A D | it87.c | 6 * parallel port, an IR port, a MIDI port, a floppy controller, etc., in
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | amifb.c | 228 cycles from the other DMA channels (audio, floppy and Chip RAM refresh).
|
/linux-4.1.27/drivers/iommu/ |
H A D | intel-iommu.c | 2436 "floppy might not work\n"); iommu_prepare_isa()
|