L4Re - L4 Runtime Environment
IA32 Port I/O API
+ Collaboration diagram for IA32 Port I/O API:

Functions

l4_uint8_t l4util_in8 (l4_uint16_t port)
 Read byte from I/O port. More...
 
l4_uint16_t l4util_in16 (l4_uint16_t port)
 Read 16-bit-value from I/O port. More...
 
l4_uint32_t l4util_in32 (l4_uint16_t port)
 Read 32-bit-value from I/O port. More...
 
void l4util_ins8 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Read a block of 8-bit-values from I/O ports. More...
 
void l4util_ins16 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Read a block of 16-bit-values from I/O ports. More...
 
void l4util_ins32 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Read a block of 32-bit-values from I/O ports. More...
 
void l4util_out8 (l4_uint8_t value, l4_uint16_t port)
 Write byte to I/O port. More...
 
void l4util_out16 (l4_uint16_t value, l4_uint16_t port)
 Write 16-bit-value to I/O port. More...
 
void l4util_out32 (l4_uint32_t value, l4_uint16_t port)
 Write 32-bit-value to I/O port. More...
 
void l4util_outs8 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Write a block of bytes to I/O port. More...
 
void l4util_outs16 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Write a block of 16-bit-values to I/O port. More...
 
void l4util_outs32 (l4_uint16_t port, l4_umword_t addr, l4_umword_t count)
 Write block of 32-bit-values to I/O port. More...
 
void l4util_iodelay (void)
 delay I/O port access by writing to port 0x80
 

Detailed Description

Function Documentation

◆ l4util_in16()

l4_uint16_t l4util_in16 ( l4_uint16_t  port)
inline

Read 16-bit-value from I/O port.

Parameters
portI/O port address
Returns
value

Definition at line 180 of file port_io.h.

◆ l4util_in32()

l4_uint32_t l4util_in32 ( l4_uint16_t  port)
inline

Read 32-bit-value from I/O port.

Parameters
portI/O port address
Returns
value

Definition at line 188 of file port_io.h.

◆ l4util_in8()

l4_uint8_t l4util_in8 ( l4_uint16_t  port)
inline

Read byte from I/O port.

Parameters
portI/O port address
Returns
value

Definition at line 172 of file port_io.h.

Referenced by l4util_irq_acknowledge().

+ Here is the caller graph for this function:

◆ l4util_ins16()

void l4util_ins16 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Read a block of 16-bit-values from I/O ports.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 205 of file port_io.h.

◆ l4util_ins32()

void l4util_ins32 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Read a block of 32-bit-values from I/O ports.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 214 of file port_io.h.

◆ l4util_ins8()

void l4util_ins8 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Read a block of 8-bit-values from I/O ports.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 196 of file port_io.h.

◆ l4util_out16()

void l4util_out16 ( l4_uint16_t  value,
l4_uint16_t  port 
)
inline

Write 16-bit-value to I/O port.

Parameters
portI/O port address
valuevalue to write

Definition at line 229 of file port_io.h.

◆ l4util_out32()

void l4util_out32 ( l4_uint32_t  value,
l4_uint16_t  port 
)
inline

Write 32-bit-value to I/O port.

Parameters
portI/O port address
valuevalue to write

Definition at line 235 of file port_io.h.

◆ l4util_out8()

void l4util_out8 ( l4_uint8_t  value,
l4_uint16_t  port 
)
inline

Write byte to I/O port.

Parameters
portI/O port address
valuevalue to write

Definition at line 223 of file port_io.h.

Referenced by l4util_irq_acknowledge().

+ Here is the caller graph for this function:

◆ l4util_outs16()

void l4util_outs16 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Write a block of 16-bit-values to I/O port.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 250 of file port_io.h.

◆ l4util_outs32()

void l4util_outs32 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Write block of 32-bit-values to I/O port.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 259 of file port_io.h.

◆ l4util_outs8()

void l4util_outs8 ( l4_uint16_t  port,
l4_umword_t  addr,
l4_umword_t  count 
)
inline

Write a block of bytes to I/O port.

Parameters
portI/O port address
addraddress of buffer
countnumber of I/O operations

Definition at line 241 of file port_io.h.