PatchworkOS
Loading...
Searching...
No Matches
port.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define ICW1_ICW4   0x01
 
#define ICW1_SINGLE   0x02
 
#define ICW1_INTERVAL4   0x04
 
#define ICW1_LEVEL   0x08
 
#define ICW1_INIT   0x10
 
#define ICW4_8086   0x01
 
#define ICW4_AUTO   0x02
 
#define ICW4_BUF_SLAVE   0x08
 
#define ICW4_BUF_MASTER   0x0C
 
#define ICW4_SFNM   0x10
 
#define QEMU_ISA_DEBUG_EXIT_PORT   0x501
 

Functions

static void port_outb (uint16_t port, uint8_t val)
 
static uint8_t port_inb (uint16_t port)
 
static void port_outw (uint16_t port, uint16_t val)
 
static uint16_t port_inw (uint16_t port)
 
static uint32_t port_inl (uint16_t port)
 
static void port_outl (uint16_t port, uint32_t val)
 
static void port_wait (void)