PatchworkOS
Loading...
Searching...
No Matches
Port I/O

Port I/O operations. More...

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)
 

Detailed Description

Port I/O operations.

Port I/O allow communication with hardware devices through specific I/O ports.

Macro Definition Documentation

◆ ICW1_ICW4

#define ICW1_ICW4   0x01

Definition at line 15 of file port.h.

◆ ICW1_INIT

#define ICW1_INIT   0x10

Definition at line 19 of file port.h.

◆ ICW1_INTERVAL4

#define ICW1_INTERVAL4   0x04

Definition at line 17 of file port.h.

◆ ICW1_LEVEL

#define ICW1_LEVEL   0x08

Definition at line 18 of file port.h.

◆ ICW1_SINGLE

#define ICW1_SINGLE   0x02

Definition at line 16 of file port.h.

◆ ICW4_8086

#define ICW4_8086   0x01

Definition at line 21 of file port.h.

◆ ICW4_AUTO

#define ICW4_AUTO   0x02

Definition at line 22 of file port.h.

◆ ICW4_BUF_MASTER

#define ICW4_BUF_MASTER   0x0C

Definition at line 24 of file port.h.

◆ ICW4_BUF_SLAVE

#define ICW4_BUF_SLAVE   0x08

Definition at line 23 of file port.h.

◆ ICW4_SFNM

#define ICW4_SFNM   0x10

Definition at line 25 of file port.h.

◆ QEMU_ISA_DEBUG_EXIT_PORT

#define QEMU_ISA_DEBUG_EXIT_PORT   0x501

Definition at line 27 of file port.h.

Function Documentation

◆ port_inb()

static uint8_t port_inb ( uint16_t  port)
inlinestatic

◆ port_inl()

static uint32_t port_inl ( uint16_t  port)
inlinestatic

Definition at line 53 of file port.h.

Referenced by aml_system_io_read().

◆ port_inw()

static uint16_t port_inw ( uint16_t  port)
inlinestatic

Definition at line 46 of file port.h.

Referenced by aml_system_io_read().

◆ port_outb()

static void port_outb ( uint16_t  port,
uint8_t  val 
)
inlinestatic

◆ port_outl()

static void port_outl ( uint16_t  port,
uint32_t  val 
)
inlinestatic

Definition at line 60 of file port.h.

Referenced by aml_system_io_write().

◆ port_outw()

static void port_outw ( uint16_t  port,
uint16_t  val 
)
inlinestatic

Definition at line 41 of file port.h.

Referenced by aml_system_io_write().

◆ port_wait()

static void port_wait ( void  )
inlinestatic

Definition at line 65 of file port.h.

References port_outb().

Referenced by pic_disable().