diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-04-20 20:54:19 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 23:44:39 -0400 |
| commit | 102a0aafc87ad894e7aba479df62ec4961bb6985 (patch) | |
| tree | a6f59e352209e8de42f015733314a681a8e0d947 /kernel/include/comus/drivers/ata.h | |
| parent | add ata_init to main and fix some compilation problems (diff) | |
| download | comus-102a0aafc87ad894e7aba479df62ec4961bb6985.tar.gz comus-102a0aafc87ad894e7aba479df62ec4961bb6985.tar.bz2 comus-102a0aafc87ad894e7aba479df62ec4961bb6985.zip | |
move kspin to use ms, add ata_report
Diffstat (limited to '')
| -rw-r--r-- | kernel/include/comus/drivers/ata.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/kernel/include/comus/drivers/ata.h b/kernel/include/comus/drivers/ata.h index 1f4aeb3..06d3e78 100644 --- a/kernel/include/comus/drivers/ata.h +++ b/kernel/include/comus/drivers/ata.h @@ -5,14 +5,21 @@ * @file ata.h * * @author Ian McFarlane <i.mcfarlane2002@gmail.com> + * @author Freya Murphy <freya@freyacat.org> * * ATA driver */ #include <stdbool.h> -/// Returns true if a PCE IDE device is connected and we will have disk space, -/// false on no disks found. -bool ata_init(void); +/** + * @returns 0 on success, 1 on failure + */ +int ata_init(void); + +/** + * report all ata devices to console + */ +void ata_report(void); #endif |