ATA devices are now asynchronous. The ATA layer itself now performs the
[gpxe.git] / src / include / gpxe / ata.h
index e0fca7a..7b348d8 100644 (file)
@@ -11,6 +11,8 @@
  *
  */
 
+struct async_operation;
+
 /**
  * An ATA Logical Block Address
  *
@@ -191,10 +193,10 @@ struct ata_device {
         *
         * @v ata               ATA device
         * @v command           ATA command
-        * @ret rc              Return status code
+        * @ret aop             Asynchronous operation
         */
-       int ( * command ) ( struct ata_device *ata,
-                           struct ata_command *command );
+       struct async_operation * ( * command ) ( struct ata_device *ata,
+                                                struct ata_command *command );
 };
 
 extern int init_atadev ( struct ata_device *ata );