aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-disk.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 12:09:12 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 12:09:12 -0400
commit5fef0e5c0283949f95a7891c9424a9f84448116b (patch)
tree2451014fcca437fdcd101ddc57c3fda1ab4ec071 /drivers/ide/ide-disk.h
parent42619d35c7af2f88cad56425fe3981f1f65ff0bd (diff)
ide-disk: factor out generic disk handling code to ide-gd.c
While at it: - IDEDISK_VERSION -> IDE_GD_VERSION - ide_cacheflush_p() -> ide_disk_flush() - init_idedisk_capacity() -> ide_disk_init_capacity() - idedisk_set_doorlock() -> ide_disk_set_doorlock() - idedisk_setup() -> ide_disk_setup() - ide_disk_capacity() -> ide_gd_capacity() - ide_disk_remove() -> ide_gd_remove() - ide_disk_probe() -> ide_gd_probe() - ide_disk_resume() -> ide_gd_resume() - ide_device_shutdown() -> ide_gd_shutdown() - idedisk_driver -> ide_gd_driver - idedisk_open() -> ide_gd_open() - idedisk_release() -> ide_gd_release() - idedisk_getgeo() -> ide_gd_getgeo() - idedisk_media_changed() -> ide_gd_media_changed() - idedisk_revalidate_disk() -> ide_gd_revalidate_disk() - idedisk_ops -> ide_gd_ops - idedisk_init() -> ide_gd_init() - idedisk_exit() -> ide_gd_exit() 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>
Diffstat (limited to 'drivers/ide/ide-disk.h')
-rw-r--r--drivers/ide/ide-disk.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ide/ide-disk.h b/drivers/ide/ide-disk.h
index 50d674b91c8b..104ad71288a5 100644
--- a/drivers/ide/ide-disk.h
+++ b/drivers/ide/ide-disk.h
@@ -9,8 +9,14 @@ struct ide_disk_obj {
9 unsigned int openers; /* protected by BKL for now */ 9 unsigned int openers; /* protected by BKL for now */
10}; 10};
11 11
12sector_t ide_gd_capacity(ide_drive_t *);
13
12/* ide-disk.c */ 14/* ide-disk.c */
13sector_t ide_disk_capacity(ide_drive_t *); 15void ide_disk_init_capacity(ide_drive_t *);
16void ide_disk_setup(ide_drive_t *);
17void ide_disk_flush(ide_drive_t *);
18int ide_disk_set_doorlock(ide_drive_t *, int);
19ide_startstop_t ide_do_rw_disk(ide_drive_t *, struct request *, sector_t);
14ide_decl_devset(address); 20ide_decl_devset(address);
15ide_decl_devset(multcount); 21ide_decl_devset(multcount);
16ide_decl_devset(nowerr); 22ide_decl_devset(nowerr);