iPXE
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)
 FILE_SECBOOT (PERMITTED)
static __attribute__ ((always_inline)) void ns16550_write(struct ns16550_uart *ns16550
 Write to UART register.

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 )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ __attribute__()

__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 ) )
uint64_t address
Base address.
Definition ena.h:13
#define ioread8(io_addr)
Definition io.h:340

Definition at line 24 of file ns16550.h.

◆ data

unsigned int uint8_t data
Initial value:
{
iowrite8 ( data, ( ns16550->base + ( address << ns16550->shift ) ) )
uint8_t data[48]
Additional event data.
Definition ena.h:11
#define iowrite8(data, io_addr)
Definition io.h:370

Definition at line 25 of file ns16550.h.