aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:33 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:33 -0400
commitaa7687738af3332470e02ac1060f6c046d83c9a3 (patch)
tree2eb2cd89de0b8dcad12534e28a9178d0325ae491 /include/linux/ide.h
parent9232c14bff36d65de254f34386c00b732c5b6099 (diff)
ide: add ide_setting_ioctl() helper
* Add struct ide_ioctl_devset representing ioctl device setting. * Add ide_setting_ioctl() helper for matching given ioctl and its parameters against table of ioctl device settings. * Convert ide_setting_ioctl() and idedisk_ioctl() to use ide_setting_ioctl(). * Un-export ide_setting_mtx. While at it: * {get,set}_lba_addressing() -> {get,set}_addressing() There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 42f39781af8..64624b9b645 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -932,7 +932,19 @@ struct ide_driver_s {
932int ide_device_get(ide_drive_t *); 932int ide_device_get(ide_drive_t *);
933void ide_device_put(ide_drive_t *); 933void ide_device_put(ide_drive_t *);
934 934
935int generic_ide_ioctl(ide_drive_t *, struct file *, struct block_device *, unsigned, unsigned long); 935struct ide_ioctl_devset {
936 unsigned int get_ioctl;
937 unsigned int set_ioctl;
938
939 int (*get)(ide_drive_t *);
940 int (*set)(ide_drive_t *, int);
941};
942
943int ide_setting_ioctl(ide_drive_t *, struct block_device *, unsigned int,
944 unsigned long, const struct ide_ioctl_devset *);
945
946int generic_ide_ioctl(ide_drive_t *, struct file *, struct block_device *,
947 unsigned, unsigned long);
936 948
937extern int ide_vlb_clk; 949extern int ide_vlb_clk;
938extern int ide_pci_clk; 950extern int ide_pci_clk;