ReactOS 0.4.15-dev-7953-g1f49173
hwuart.c File Reference
#include "precomp.h"
#include "lib/cportlib/cport.c"
Include dependency graph for hwuart.c:

Go to the source code of this file.

Macros

#define SERIAL_REGISTER_STRIDE   2
 
#define SERIAL_TL16CP754C_QUAD0_BASE   (PVOID)0x10000000
 

Functions

VOID NTAPI LlbHwOmap3UartInitialize (VOID)
 
VOID NTAPI LlbHwUartSendChar (IN CHAR Char)
 
BOOLEAN NTAPI LlbHwUartTxReady (VOID)
 
ULONG NTAPI LlbHwGetUartBase (IN ULONG Port)
 

Variables

CPPORT LlbHwOmap3UartPorts [4]
 

Macro Definition Documentation

◆ SERIAL_REGISTER_STRIDE

#define SERIAL_REGISTER_STRIDE   2

Definition at line 10 of file hwuart.c.

◆ SERIAL_TL16CP754C_QUAD0_BASE

#define SERIAL_TL16CP754C_QUAD0_BASE   (PVOID)0x10000000

Definition at line 15 of file hwuart.c.

Function Documentation

◆ LlbHwGetUartBase()

ULONG NTAPI LlbHwGetUartBase ( IN ULONG  Port)

Definition at line 52 of file hwuart.c.

53{
54 if (Port == 0)
55 {
56 return 0x10000000;
57 }
58
59 return 0;
60}
CPPORT Port[4]
Definition: headless.c:35

◆ LlbHwOmap3UartInitialize()

VOID NTAPI LlbHwOmap3UartInitialize ( VOID  )

Definition at line 29 of file hwuart.c.

30{
32}
NTSTATUS NTAPI CpInitialize(IN PCPPORT Port, IN PUCHAR Address, IN ULONG BaudRate)
Definition: cport.c:85
CPPORT LlbHwOmap3UartPorts[4]
Definition: hwuart.c:17
#define SERIAL_TL16CP754C_QUAD0_BASE
Definition: hwuart.c:15

◆ LlbHwUartSendChar()

VOID NTAPI LlbHwUartSendChar ( IN CHAR  Char)

Definition at line 36 of file hwuart.c.

37{
38 /* Send the character */
40}
VOID NTAPI CpPutByte(IN PCPPORT Port, IN UCHAR Byte)
Definition: cport.c:303

◆ LlbHwUartTxReady()

BOOLEAN NTAPI LlbHwUartTxReady ( VOID  )

Definition at line 44 of file hwuart.c.

45{
46 /* TX output buffer is ready? */
47 return TRUE;
48}
#define TRUE
Definition: types.h:120

Variable Documentation

◆ LlbHwOmap3UartPorts

CPPORT LlbHwOmap3UartPorts[4]
Initial value:
=
{
{NULL, 0, 0},
{NULL, 0, 0},
{NULL, 0, 0},
{NULL, 0, 0}
}
#define NULL
Definition: types.h:112

Definition at line 17 of file hwuart.c.

Referenced by LlbHwOmap3UartInitialize(), and LlbHwUartSendChar().