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 19f76cd08603f8e57272d57685a7e01a586c0c43..e7f8d01f7cfe5f0d04d8c4ff63879f94ac31e682 100644 (file)
@@ -101,6 +101,9 @@ struct hba_device
     uint8_t cbd_size;
     uint8_t last_error;
     uint8_t last_status;
+    uint32_t alignment_offset;
+    uint32_t block_per_sec;
+    uint32_t capabilities;
 
     struct
     {
@@ -136,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 */