Main Page   File List  

I/O port instructions


Functions

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

Function Documentation

l4_uint8_t l4util_in8 ( l4_uint16_t  port  )  [inline]

Read byte from I/O port.

Parameters:
port I/O port address
Returns:
value

Definition at line 142 of file ARCH-amd64/port_io.h.

l4_uint16_t l4util_in16 ( l4_uint16_t  port  )  [inline]

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

Parameters:
port I/O port address
Returns:
value

Definition at line 150 of file ARCH-amd64/port_io.h.

l4_uint32_t l4util_in32 ( l4_uint16_t  port  )  [inline]

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

Parameters:
port I/O port address
Returns:
value

Definition at line 158 of file ARCH-amd64/port_io.h.

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

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

Parameters:
port I/O port address
addr address of buffer
count number of I/O operations
Returns:
value

Definition at line 166 of file ARCH-amd64/port_io.h.

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

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

Parameters:
port I/O port address
addr address of buffer
count number of I/O operations
Returns:
value

Definition at line 175 of file ARCH-amd64/port_io.h.

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

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

Parameters:
port I/O port address
addr address of buffer
count number of I/O operations
Returns:
value

Definition at line 184 of file ARCH-amd64/port_io.h.

void l4util_out8 ( l4_uint8_t  value,
l4_uint16_t  port 
) [inline]

Write byte to I/O port.

Parameters:
port I/O port address
value value to write

Definition at line 193 of file ARCH-amd64/port_io.h.

void l4util_out16 ( l4_uint16_t  value,
l4_uint16_t  port 
) [inline]

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

Parameters:
port I/O port address
value value to write

Definition at line 199 of file ARCH-amd64/port_io.h.

void l4util_out32 ( l4_uint32_t  value,
l4_uint16_t  port 
) [inline]

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

Parameters:
port I/O port address
value value to write

Definition at line 205 of file ARCH-amd64/port_io.h.


L4 Utilities, part of DROPS  © 2000-2003