swim3.c (05bdb9965305bbfdae79b31d22df03d1e2cfcb22) | swim3.c (3dbd53c7be1c3dd04875a0672262b56417039869) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Driver for the SWIM3 (Super Woz Integrated Machine 3) 4 * floppy controller found on Power Macintoshes. 5 * 6 * Copyright (C) 1996 Paul Mackerras. 7 */ 8 --- 868 unchanged lines hidden (view full) --- 877 fs->ejected = 1; 878 release_drive(fs); 879 return err; 880} 881 882static struct floppy_struct floppy_type = 883 { 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL }; /* 7 1.44MB 3.5" */ 884 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Driver for the SWIM3 (Super Woz Integrated Machine 3) 4 * floppy controller found on Power Macintoshes. 5 * 6 * Copyright (C) 1996 Paul Mackerras. 7 */ 8 --- 868 unchanged lines hidden (view full) --- 877 fs->ejected = 1; 878 release_drive(fs); 879 return err; 880} 881 882static struct floppy_struct floppy_type = 883 { 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL }; /* 7 1.44MB 3.5" */ 884 |
885static int floppy_locked_ioctl(struct block_device *bdev, | 885static int floppy_locked_ioctl(struct block_device *bdev, blk_mode_t mode, |
886 unsigned int cmd, unsigned long param) 887{ 888 struct floppy_state *fs = bdev->bd_disk->private_data; 889 int err; 890 891 if ((cmd & 0x80) && !capable(CAP_SYS_ADMIN)) 892 return -EPERM; 893 --- 397 unchanged lines hidden --- | 886 unsigned int cmd, unsigned long param) 887{ 888 struct floppy_state *fs = bdev->bd_disk->private_data; 889 int err; 890 891 if ((cmd & 0x80) && !capable(CAP_SYS_ADMIN)) 892 return -EPERM; 893 --- 397 unchanged lines hidden --- |