Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.10 34 lines 916 B view raw
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/kernel.h> 3#include <linux/export.h> 4#include <linux/ide.h> 5#include <linux/seq_file.h> 6 7#include "ide-floppy.h" 8 9static int idefloppy_capacity_proc_show(struct seq_file *m, void *v) 10{ 11 ide_drive_t*drive = (ide_drive_t *)m->private; 12 13 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive)); 14 return 0; 15} 16 17ide_proc_entry_t ide_floppy_proc[] = { 18 { "capacity", S_IFREG|S_IRUGO, idefloppy_capacity_proc_show }, 19 { "geometry", S_IFREG|S_IRUGO, ide_geometry_proc_show }, 20 {} 21}; 22 23ide_devset_rw_field(bios_cyl, bios_cyl); 24ide_devset_rw_field(bios_head, bios_head); 25ide_devset_rw_field(bios_sect, bios_sect); 26ide_devset_rw_field(ticks, pc_delay); 27 28const struct ide_proc_devset ide_floppy_settings[] = { 29 IDE_PROC_DEVSET(bios_cyl, 0, 1023), 30 IDE_PROC_DEVSET(bios_head, 0, 255), 31 IDE_PROC_DEVSET(bios_sect, 0, 63), 32 IDE_PROC_DEVSET(ticks, 0, 255), 33 { NULL }, 34};