aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/fs.h2
-rw-r--r--kernel/inc/ide.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/inc/fs.h b/kernel/inc/fs.h
index 75cb49f..ff14361 100644
--- a/kernel/inc/fs.h
+++ b/kernel/inc/fs.h
@@ -47,7 +47,7 @@ struct mount_info {
void vfs_install(void);
-u32 vfs_path_mounted(const char *path);
+u32 vfs_mounted(struct device *dev, const char *path);
u32 vfs_mount(struct device *dev, const char *path);
u32 vfs_read(const char *path, void *buf, u32 offset, u32 count);
diff --git a/kernel/inc/ide.h b/kernel/inc/ide.h
index 6e43ece..dbe0652 100644
--- a/kernel/inc/ide.h
+++ b/kernel/inc/ide.h
@@ -8,6 +8,7 @@
#define BLOCK_SIZE 1024
#define BLOCK_COUNT 256 // BLOCK_SIZE / sizeof(u32)
#define SECTOR_SIZE 512
+#define SECTOR_COUNT (BLOCK_SIZE / SECTOR_SIZE)
#define ATA_PRIMARY_IO 0x1f0
#define ATA_SECONDARY_IO 0x170