diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:40 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:40 -0400 |
commit | 94cd5b62ff9bb07ef065333eb97438f115a75890 (patch) | |
tree | c09f78987100b745ee5bb67df953469c0d24e618 /include | |
parent | d309e0bb8e5f29692f10790f3e966f05bbfc9355 (diff) |
ide: add ->tf_load and ->tf_read methods
* Add ->tf_load and ->tf_read methods to ide_hwif_t and set the default
methods in default_hwif_transport().
* Use ->tf_{load,read} instead o calling ide_tf_{load,read}() directly.
* Make ide_tf_{load,read}() static.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ide.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index d7d8bb69db4b..8e95579c3d34 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -427,6 +427,8 @@ struct ide_dma_ops { | |||
427 | void (*dma_timeout)(struct ide_drive_s *); | 427 | void (*dma_timeout)(struct ide_drive_s *); |
428 | }; | 428 | }; |
429 | 429 | ||
430 | struct ide_task_s; | ||
431 | |||
430 | typedef struct hwif_s { | 432 | typedef struct hwif_s { |
431 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ | 433 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ |
432 | struct hwif_s *mate; /* other hwif from same PCI chip */ | 434 | struct hwif_s *mate; /* other hwif from same PCI chip */ |
@@ -467,6 +469,9 @@ typedef struct hwif_s { | |||
467 | const struct ide_port_ops *port_ops; | 469 | const struct ide_port_ops *port_ops; |
468 | const struct ide_dma_ops *dma_ops; | 470 | const struct ide_dma_ops *dma_ops; |
469 | 471 | ||
472 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); | ||
473 | void (*tf_read)(ide_drive_t *, struct ide_task_s *); | ||
474 | |||
470 | void (*input_data)(ide_drive_t *, struct request *, void *, unsigned); | 475 | void (*input_data)(ide_drive_t *, struct request *, void *, unsigned); |
471 | void (*output_data)(ide_drive_t *, struct request *, void *, unsigned); | 476 | void (*output_data)(ide_drive_t *, struct request *, void *, unsigned); |
472 | 477 | ||
@@ -962,9 +967,6 @@ typedef struct ide_task_s { | |||
962 | 967 | ||
963 | void ide_tf_dump(const char *, struct ide_taskfile *); | 968 | void ide_tf_dump(const char *, struct ide_taskfile *); |
964 | 969 | ||
965 | void ide_tf_load(ide_drive_t *, ide_task_t *); | ||
966 | void ide_tf_read(ide_drive_t *, ide_task_t *); | ||
967 | |||
968 | extern void SELECT_DRIVE(ide_drive_t *); | 970 | extern void SELECT_DRIVE(ide_drive_t *); |
969 | extern void SELECT_MASK(ide_drive_t *, int); | 971 | extern void SELECT_MASK(ide_drive_t *, int); |
970 | 972 | ||