|
ArvernOS
|
#include <stdint.h>Functions | |
| uint8_t | port_byte_in (uint16_t port) |
| void | port_byte_out (uint16_t port, uint8_t value) |
| uint16_t | port_word_in (uint16_t port) |
| void | port_word_out (uint16_t port, uint16_t value) |
| uint32_t | port_dword_in (uint16_t port) |
| void | port_dword_out (uint16_t port, uint32_t value) |
An I/O port is usually used as a technical term for a specific address on the x86's IO bus, which is used to communicate with devices without requiring memory access (alternative). This is the aim of this module.
| uint8_t port_byte_in | ( | uint16_t | port | ) |
Reads a byte.
| port | a port number |
| void port_byte_out | ( | uint16_t | port, |
| uint8_t | value ) |
Writes a byte to a port.
| port | a port number |
| value | the new value for the port |
| uint32_t port_dword_in | ( | uint16_t | port | ) |
Reads a double word (4 bytes).
| port | a port number |
| void port_dword_out | ( | uint16_t | port, |
| uint32_t | value ) |
Writes a double word to a port.
| port | a port number |
| value | the new value for the port |
| uint16_t port_word_in | ( | uint16_t | port | ) |
Reads a word (2 bytes).
| port | a port number |
| void port_word_out | ( | uint16_t | port, |
| uint16_t | value ) |
Writes a word to a port.
| port | a port number |
| value | the new value for the port |