diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 08af43e2c081..87f54a1db3b0 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -38,6 +38,15 @@ struct ata_scsi_args { | |||
38 | void (*done)(struct scsi_cmnd *); | 38 | void (*done)(struct scsi_cmnd *); |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static inline int ata_is_builtin_hardreset(ata_reset_fn_t reset) | ||
42 | { | ||
43 | if (reset == sata_std_hardreset) | ||
44 | return 1; | ||
45 | if (reset == sata_sff_hardreset) | ||
46 | return 1; | ||
47 | return 0; | ||
48 | } | ||
49 | |||
41 | /* libata-core.c */ | 50 | /* libata-core.c */ |
42 | enum { | 51 | enum { |
43 | /* flags for ata_dev_read_id() */ | 52 | /* flags for ata_dev_read_id() */ |