|
Pip
Architecture-dependent parts of Pip: MAL, IAL and boot
|
Include file for IO-ports operations. More...
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | FAULT_FORBIDDEN 64 |
Functions | |
| void | outb (uint16_t port, uint8_t value) |
| IO port write byte. More... | |
| void | outw (uint16_t port, uint16_t value) |
| IO port write word. More... | |
| uint8_t | inb (uint16_t port) |
| IO port read byte. More... | |
| uint16_t | inw (uint16_t port) |
| IO port read word. More... | |
| void | cg_outb (uint32_t port, uint32_t value) |
| Outb callgate method. More... | |
| uint32_t | cg_inb (uint32_t port) |
| Inb callgate method. More... | |
| void | cg_outw (uint32_t port, uint32_t value) |
| Outw callgate method. More... | |
| uint32_t | cg_inw (uint32_t port) |
| Inw callgate method. More... | |
| void | cg_outl (uint32_t port, uint32_t value) |
| Outl callgate method. More... | |
| void | cg_outaddrl (uint32_t port, uint32_t value) |
| Outaddrl callgate method. More... | |
| uint32_t | cg_inl (uint32_t port) |
| Inl callgate method. More... | |
Include file for IO-ports operations.
| #define FAULT_FORBIDDEN 64 |
| uint32_t cg_inb | ( | uint32_t | port | ) |
Inb callgate method.
| uint32_t cg_inl | ( | uint32_t | port | ) |
Inl callgate method.
| uint32_t cg_inw | ( | uint32_t | port | ) |
Inw callgate method.
| void cg_outaddrl | ( | uint32_t | port, |
| uint32_t | value | ||
| ) |
Outaddrl callgate method.
| void cg_outb | ( | uint32_t | port, |
| uint32_t | value | ||
| ) |
Outb callgate method.
| void cg_outl | ( | uint32_t | port, |
| uint32_t | value | ||
| ) |
Outl callgate method.
| void cg_outw | ( | uint32_t | port, |
| uint32_t | value | ||
| ) |
Outw callgate method.
| uint8_t inb | ( | uint16_t | port | ) |
IO port read byte.
In operation on 1-byte value.
| port | The port number |
| uint16_t inw | ( | uint16_t | port | ) |
IO port read word.
In operation on a 2-bytes value.
| port | The port number |
| void outb | ( | uint16_t | port, |
| uint8_t | value | ||
| ) |
IO port write byte.
Out operation on 1-byte value.
| port | The port number |
| value | The value to write |
| void outw | ( | uint16_t | port, |
| uint16_t | value | ||
| ) |
IO port write word.
Out operation on 2-byte value.
| port | The port number |
| value | The value to write |
1.8.13