diff options
author | Marvin Borner | 2021-01-08 23:51:37 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-08 23:51:37 +0100 |
commit | ca466dbbecd387481fbde95e1e3d9b6ff279c169 (patch) | |
tree | 75eb11cee96b006aec1b5f63218d87d48522acdb /kernel/inc | |
parent | 45a9df836accd39cf2dbfbb2453496b0e4d93fa5 (diff) |
Cleanup
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/fs.h | 2 | ||||
-rw-r--r-- | kernel/inc/ide.h | 1 |
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 |