summaryrefslogtreecommitdiff
path: root/kernel/amd64/io/ports.h
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-07-01 10:33:05 -0400
committerSamuel Johnson <[email protected]>2025-07-01 10:33:05 -0400
commit571a656a6bd9b4b9d5c595c578d15ba79bb19ef7 (patch)
tree46f75b47f4edab4281de14ffa1c4a91a5a84f8f1 /kernel/amd64/io/ports.h
parent12fd3a91f138bf90520134682e38bf3b0341e660 (diff)
Add serial loggingHEADtrunkdev
Diffstat (limited to 'kernel/amd64/io/ports.h')
-rw-r--r--kernel/amd64/io/ports.h12
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