diff options
Diffstat (limited to 'include/linux/libata.h')
| -rw-r--r-- | include/linux/libata.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 92297cd111f6..c0806b60c4fa 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -1651,6 +1651,13 @@ static inline bool ata_fpdma_read_log_supported(struct ata_device *dev) | |||
| 1651 | ATA_LOG_NCQ_SEND_RECV_RD_LOG_SUPPORTED); | 1651 | ATA_LOG_NCQ_SEND_RECV_RD_LOG_SUPPORTED); |
| 1652 | } | 1652 | } |
| 1653 | 1653 | ||
| 1654 | static inline bool ata_fpdma_zac_mgmt_in_supported(struct ata_device *dev) | ||
| 1655 | { | ||
| 1656 | return (dev->flags & ATA_DFLAG_NCQ_SEND_RECV) && | ||
| 1657 | (dev->ncq_send_recv_cmds[ATA_LOG_NCQ_SEND_RECV_ZAC_MGMT_OFFSET] & | ||
| 1658 | ATA_LOG_NCQ_SEND_RECV_ZAC_MGMT_IN_SUPPORTED); | ||
| 1659 | } | ||
| 1660 | |||
| 1654 | static inline void ata_qc_set_polling(struct ata_queued_cmd *qc) | 1661 | static inline void ata_qc_set_polling(struct ata_queued_cmd *qc) |
| 1655 | { | 1662 | { |
| 1656 | qc->tf.ctl |= ATA_NIEN; | 1663 | qc->tf.ctl |= ATA_NIEN; |
