fix: separate any i/o to sequential device from caching layer
[lunaix-os.git] / lunaix-os / includes / lunaix / block.h
index 94e87754c703436758d3f6cfeed92b96ce7cd6b9..40935f9f630bb79da872ea7874606e743630647c 100644 (file)
@@ -2,6 +2,7 @@
 #define __LUNAIX_BLOCK_H
 
 #include <hal/ahci/hba.h>
+#include <lunaix/device.h>
 
 #define LPT_SIG 0x414e554c
 #define PARTITION_NAME_SIZE 48
@@ -15,6 +16,7 @@ struct block_dev
     char bdev_id[DEV_ID_SIZE];
     char name[PARTITION_NAME_SIZE];
     struct hba_device* hd_dev;
+    struct device* dev;
     uint64_t base_lba;
     uint64_t end_lba;
 };