feat: (devfs) a new filesystem for device exposure.
[lunaix-os.git] / lunaix-os / includes / hal / ahci / sata.h
index 99a45bc20c191cb60396b41634d1f18a68f4086e..a08c5f43f497b7a1322577f3974f02af04522bbe 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __LUNAIX_SATA_H
 #define __LUNAIX_SATA_H
 
-#include <stdint.h>
+#include <hal/ahci/hba.h>
 
 #define SATA_REG_FIS_D2H 0x34
 #define SATA_REG_FIS_H2D 0x27
@@ -54,15 +54,17 @@ sata_create_fis(struct sata_reg_fis* cmd_fis,
                 uint16_t sector_count);
 
 int
-sata_read_buffer(struct hba_port* port,
+sata_read_buffer(struct hba_device* dev,
                  uint64_t lba,
                  void* buffer,
                  uint32_t size);
 
 int
-sata_write_buffer(struct hba_port* port,
+sata_write_buffer(struct hba_device* dev,
                   uint64_t lba,
                   void* buffer,
                   uint32_t size);
 
+void
+sata_read_error(struct hba_port* port);
 #endif /* __LUNAIX_SATA_H */