diff options
author | Benji Dial <benji3.141@gmail.com> | 2020-05-24 11:02:43 -0400 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2020-05-24 11:02:43 -0400 |
commit | 02f14113cbf14c6f842fb43ecbc68d0c851ef3b0 (patch) | |
tree | 75d2d943d9822b3f945fd947e9b91eec1d68e900 /src/kernel/util.h | |
parent | 31d8ae388a7ded576abd3e3d99c3d9193ea6d704 (diff) | |
download | portland-os-02f14113cbf14c6f842fb43ecbc68d0c851ef3b0.tar.gz |
very basic vga, ata, serial drivers. start of fat and fs drivers
Diffstat (limited to 'src/kernel/util.h')
-rw-r--r-- | src/kernel/util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kernel/util.h b/src/kernel/util.h new file mode 100644 index 0000000..08b3e4a --- /dev/null +++ b/src/kernel/util.h @@ -0,0 +1,13 @@ +#include <stdint.h> + +void memcpy(void *from, void *to, uint32_t n); +void outb(uint16_t port, uint8_t value); +uint8_t inb(uint16_t port); +void outw(uint16_t port, uint16_t value); +uint16_t inw(uint16_t port); +void u32_dec(uint32_t n, uint8_t *b); +void u16_dec(uint16_t n, uint8_t *b); +void u8_dec(uint8_t n, uint8_t *b); +void u32_hex(uint32_t n, uint8_t *b); +void u16_hex(uint16_t n, uint8_t *b); +void u8_hex(uint8_t n, uint8_t *b);
\ No newline at end of file |