git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: (twimap) provide an easy way for mapping kernel objects into filesystem
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
block.h
diff --git
a/lunaix-os/includes/lunaix/block.h
b/lunaix-os/includes/lunaix/block.h
index 94e87754c703436758d3f6cfeed92b96ce7cd6b9..df481d82c32bb245986ee80bba0fe4081b8c5c99 100644
(file)
--- a/
lunaix-os/includes/lunaix/block.h
+++ b/
lunaix-os/includes/lunaix/block.h
@@
-2,6
+2,7
@@
#define __LUNAIX_BLOCK_H
#include <hal/ahci/hba.h>
#define __LUNAIX_BLOCK_H
#include <hal/ahci/hba.h>
+#include <lunaix/device.h>
#define LPT_SIG 0x414e554c
#define PARTITION_NAME_SIZE 48
#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;
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;
};
uint64_t base_lba;
uint64_t end_lba;
};
@@
-42,4
+44,10
@@
block_init();
int
block_mount_disk(struct hba_device* hd_dev);
int
block_mount_disk(struct hba_device* hd_dev);
+void
+blk_mapping_init();
+
+void
+blk_set_blkmapping(struct block_dev* bdev);
+
#endif /* __LUNAIX_BLOCK_H */
#endif /* __LUNAIX_BLOCK_H */