iPXE
Functions | Variables
ns16550.h File Reference

16550-compatible UART More...

#include <stdint.h>
#include <ipxe/io.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __attribute__ ((always_inline)) void ns16550_write(struct ns16550_uart *ns16550
 Write to UART register. More...
 

Variables

static unsigned int address
 
static unsigned int uint8_t data
 

Detailed Description

16550-compatible UART

Definition in file ns16550.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __attribute__()

static __attribute__ ( (always_inline)  )
inlinestatic

Write to UART register.

Read from UART register.

Parameters
ns1655016550 UART
addressRegister address
dataData
ns1655016550 UART
addressRegister address
Return values
dataData

Variable Documentation

◆ address

unsigned int address
Initial value:
{
return ioread8 ( ns16550->base + ( address << ns16550->shift ) )
uint8_t ioread8(volatile uint8_t *io_addr)
Read byte from I/O-mapped or memory-mapped device.
static unsigned int address
Definition: ns16550.h:23

Definition at line 23 of file ns16550.h.

◆ data

unsigned int uint8_t data
Initial value:
{
iowrite8 ( data, ( ns16550->base + ( address << ns16550->shift ) ) )
static unsigned int address
Definition: ns16550.h:23
void iowrite8(uint8_t data, volatile uint8_t *io_addr)
Write byte to I/O-mapped or memory-mapped device.
static unsigned int uint8_t data
Definition: ns16550.h:24

Definition at line 24 of file ns16550.h.