amiflop.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) | amiflop.c (f98393a64ca1392130724c3acb4e3f325801d2b6) |
---|---|
1/* 2 * linux/amiga/amiflop.c 3 * 4 * Copyright (C) 1993 Greg Harp 5 * Portions of this driver are based on code contributed by Brad Pepers 6 * 7 * revised 28.5.95 by Joerg Dorchain 8 * - now no bugs(?) any more for both HD & DD --- 1466 unchanged lines hidden (view full) --- 1475 floppy_off(drive); 1476 rel_fdc(); 1477 } 1478 else 1479 return -EINVAL; 1480 break; 1481 case FDFMTEND: 1482 floppy_off(drive); | 1/* 2 * linux/amiga/amiflop.c 3 * 4 * Copyright (C) 1993 Greg Harp 5 * Portions of this driver are based on code contributed by Brad Pepers 6 * 7 * revised 28.5.95 by Joerg Dorchain 8 * - now no bugs(?) any more for both HD & DD --- 1466 unchanged lines hidden (view full) --- 1475 floppy_off(drive); 1476 rel_fdc(); 1477 } 1478 else 1479 return -EINVAL; 1480 break; 1481 case FDFMTEND: 1482 floppy_off(drive); |
1483 invalidate_bdev(inode->i_bdev, 0); | 1483 invalidate_bdev(inode->i_bdev); |
1484 break; 1485 case FDGETPRM: 1486 memset((void *)&getprm, 0, sizeof (getprm)); 1487 getprm.track=unit[drive].type->tracks; 1488 getprm.head=unit[drive].type->heads; 1489 getprm.sect=unit[drive].dtype->sects * unit[drive].type->sect_mult; 1490 getprm.size=unit[drive].blocks; 1491 if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) --- 364 unchanged lines hidden --- | 1484 break; 1485 case FDGETPRM: 1486 memset((void *)&getprm, 0, sizeof (getprm)); 1487 getprm.track=unit[drive].type->tracks; 1488 getprm.head=unit[drive].type->heads; 1489 getprm.sect=unit[drive].dtype->sects * unit[drive].type->sect_mult; 1490 getprm.size=unit[drive].blocks; 1491 if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) --- 364 unchanged lines hidden --- |