ata: libata: read the shared status for successful NCQ commands once
[platform/kernel/linux-starfive.git] / include / linux / libata.h
index 8483d83..f54e02d 100644 (file)
@@ -200,6 +200,7 @@ enum {
        /* struct ata_queued_cmd flags */
        ATA_QCFLAG_ACTIVE       = (1 << 0), /* cmd not yet ack'd to scsi lyer */
        ATA_QCFLAG_DMAMAP       = (1 << 1), /* SG table is DMA mapped */
+       ATA_QCFLAG_RTF_FILLED   = (1 << 2), /* result TF has been filled */
        ATA_QCFLAG_IO           = (1 << 3), /* standard IO command */
        ATA_QCFLAG_RESULT_TF    = (1 << 4), /* result TF requested */
        ATA_QCFLAG_CLEAR_EXCL   = (1 << 5), /* clear excl_link on completion */
@@ -877,6 +878,7 @@ struct ata_port_operations {
        enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *qc);
        unsigned int (*qc_issue)(struct ata_queued_cmd *qc);
        void (*qc_fill_rtf)(struct ata_queued_cmd *qc);
+       void (*qc_ncq_fill_rtf)(struct ata_port *ap, u64 done_mask);
 
        /*
         * Configuration and exception handling