mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 20:21:57 +00:00
9a6eb74d07
- idefloppy_ref_mutex -> ide_disk_ref_mutex - idefloppy_cleanup_obj() -> ide_disk_release() - ide_floppy_get() -> ide_disk_get() - ide_floppy_put() -> ide_disk_put() - ide_floppy_capacity() -> ide_gd_capacity() - ide_floppy_remove() -> ide_gd_remove() - ide_floppy_probe() -> ide_gd_probe() - idefloppy_driver -> ide_gd_driver - idefloppy_open() -> ide_gd_open() - idefloppy_release() -> ide_gd_release() - idefloppy_getgeo() -> ide_gd_getgeo() - idefloppy_media_changed() -> ide_gd_media_changed() - idefloppy_revalidate_disk() -> ide_gd_revalidate_disk() - idefloppy_ops -> ide_gd_ops - idefloppy_init() -> ide_gd_init() - idefloppy_exit() -> ide_gd_exit() - 'floppy' -> 'idkp' in ide_disk_*() and ide_gd_*() - idefloppy_floppy_t -> struct ide_floppy_obj There should be no functional changes caused by this patch. Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
34 lines
955 B
C
34 lines
955 B
C
#include <linux/kernel.h>
|
|
#include <linux/ide.h>
|
|
|
|
#include "ide-floppy.h"
|
|
|
|
static int proc_idefloppy_read_capacity(char *page, char **start, off_t off,
|
|
int count, int *eof, void *data)
|
|
{
|
|
ide_drive_t*drive = (ide_drive_t *)data;
|
|
int len;
|
|
|
|
len = sprintf(page, "%llu\n", (long long)ide_gd_capacity(drive));
|
|
PROC_IDE_READ_RETURN(page, start, off, count, eof, len);
|
|
}
|
|
|
|
ide_proc_entry_t ide_floppy_proc[] = {
|
|
{ "capacity", S_IFREG|S_IRUGO, proc_idefloppy_read_capacity, NULL },
|
|
{ "geometry", S_IFREG|S_IRUGO, proc_ide_read_geometry, NULL },
|
|
{ NULL, 0, NULL, NULL }
|
|
};
|
|
|
|
ide_devset_rw_field(bios_cyl, bios_cyl);
|
|
ide_devset_rw_field(bios_head, bios_head);
|
|
ide_devset_rw_field(bios_sect, bios_sect);
|
|
ide_devset_rw_field(ticks, pc_delay);
|
|
|
|
const struct ide_proc_devset ide_floppy_settings[] = {
|
|
IDE_PROC_DEVSET(bios_cyl, 0, 1023),
|
|
IDE_PROC_DEVSET(bios_head, 0, 255),
|
|
IDE_PROC_DEVSET(bios_sect, 0, 63),
|
|
IDE_PROC_DEVSET(ticks, 0, 255),
|
|
{ 0 },
|
|
};
|