diff options
| author | Carlos Maiolino <[email protected]> | 2025-08-25 08:15:02 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-08-25 08:18:48 +0200 |
| commit | 7b988e680727beed1d75ff4f0e48158f4465f122 (patch) | |
| tree | 95781ceec64b4cce1100c7217708fb9557304717 /src/include/toxic | |
| parent | 897269a38bf0befbb2daf1fd261acc6f95d8b2a8 (diff) | |
IO: Add in/out declarations/definitions
I've forgotten to commit this when working on interrupts. The OS
won't build without these helpers.
They are used for now mostly to setup PICs.
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/include/toxic')
| -rw-r--r-- | src/include/toxic/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/toxic/io.h b/src/include/toxic/io.h new file mode 100644 index 0000000..f2a869a --- /dev/null +++ b/src/include/toxic/io.h @@ -0,0 +1,9 @@ +#ifndef IO_H +#define IO_H + +unsigned char insb(unsigned short port); +unsigned short insw(unsigned short port); + +void outb(unsigned short port, unsigned char val); +void outw(unsigned short port, unsigned short val); +#endif /* IO_H */ |
