|
PatchworkOS
a7b3d61
A non-POSIX operating system.
|
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | IO_PORT_MAX UINT16_MAX |
| Maximum I/O port number. | |
Typedefs | |
| typedef uint16_t | port_t |
| I/O port type. | |
Functions | |
| uint64_t | io_reserve (port_t *out, port_t minBase, port_t maxBase, uint64_t alignment, uint64_t length, const char *owner) |
| Find and reserve a range of I/O ports if available. | |
| void | io_release (port_t base, uint64_t length) |
| Release a previously reserved range of I/O ports. | |
| static void | io_out8 (port_t port, uint8_t val) |
| Write an 8-bit value to an I/O port. | |
| static uint8_t | io_in8 (port_t port) |
| Read an 8-bit value from an I/O port. | |
| static void | io_out16 (port_t port, uint16_t val) |
| Write a 16-bit value to an I/O port. | |
| static uint16_t | io_in16 (port_t port) |
| Read a 16-bit value from an I/O port. | |
| static uint32_t | io_in32 (port_t port) |
| Write a 32-bit value to an I/O port. | |
| static void | io_out32 (port_t port, uint32_t val) |
| Read a 32-bit value from an I/O port. | |