diff options
author | Samuel Johnson <[email protected]> | 2025-07-01 10:33:05 -0400 |
---|---|---|
committer | Samuel Johnson <[email protected]> | 2025-07-01 10:33:05 -0400 |
commit | 571a656a6bd9b4b9d5c595c578d15ba79bb19ef7 (patch) | |
tree | 46f75b47f4edab4281de14ffa1c4a91a5a84f8f1 /kernel/amd64/io/ports.h | |
parent | 12fd3a91f138bf90520134682e38bf3b0341e660 (diff) |
Diffstat (limited to 'kernel/amd64/io/ports.h')
-rw-r--r-- | kernel/amd64/io/ports.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/amd64/io/ports.h b/kernel/amd64/io/ports.h new file mode 100644 index 0000000..6de2acb --- /dev/null +++ b/kernel/amd64/io/ports.h @@ -0,0 +1,12 @@ +#ifndef HOS_AMD64_IO_PORTS_H +#define HOS_AMD64_IO_PORTS_H + +#include <cstdint> + +namespace hos::io +{ + extern "C" std::uint8_t inb (std::uint16_t port); + extern "C" void outb (std::uint16_t port, std::uint8_t value); +} + +#endif |