refactor: abstract out the code for prdte creation (by imposing a constrain on buffer...
[lunaix-os.git] / lunaix-os / includes / hal / ahci / hba.h
index 9dc7071aa2d71e5320f960d615cf05fc0ddf4553..e7f8d01f7cfe5f0d04d8c4ff63879f94ac31e682 100644 (file)
@@ -139,9 +139,10 @@ struct ahci_hba
 };
 
 int
-hba_alloc_slot(struct hba_port* port,
-               struct hba_cmdt** cmdt,
-               struct hba_cmdh** cmdh,
-               uint16_t header_options);
+hba_prepare_cmd(struct hba_port* port,
+                struct hba_cmdt** cmdt,
+                struct hba_cmdh** cmdh,
+                void* buffer,
+                unsigned int size);
 
 #endif /* __LUNAIX_HBA_H */