ReactOS  0.4.15-dev-341-g17c5fb8
hwuart.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Boot Loader
3  * LICENSE: BSD - See COPYING.ARM in the top level directory
4  * FILE: boot/armllb/hw/omap3-zoom2/hwuart.c
5  * PURPOSE: LLB UART Initialization Routines for OMAP3 ZOOM2
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 #include "precomp.h"
10 #define SERIAL_REGISTER_STRIDE 2
11 #include "lib/cportlib/cport.c"
12 
13 /* GLOBALS ********************************************************************/
14 
15 #define SERIAL_TL16CP754C_QUAD0_BASE (PVOID)0x10000000
16 
18 {
19  {NULL, 0, 0},
20  {NULL, 0, 0},
21  {NULL, 0, 0},
22  {NULL, 0, 0}
23 };
24 
25 /* FUNCTIONS ******************************************************************/
26 
27 VOID
28 NTAPI
30 {
32 }
33 
34 VOID
35 NTAPI
37 {
38  /* Send the character */
39  CpPutByte(&LlbHwOmap3UartPorts[0], Char);
40 }
41 
42 BOOLEAN
43 NTAPI
45 {
46  /* TX output buffer is ready? */
47  return TRUE;
48 }
49 
50 ULONG
51 NTAPI
53 {
54  if (Port == 0)
55  {
56  return 0x10000000;
57  }
58 
59  return 0;
60 }
61 
62 /* EOF */
CPPORT Port[4]
Definition: headless.c:34
#define IN
Definition: typedefs.h:39
VOID NTAPI LlbHwOmap3UartInitialize(VOID)
Definition: hwuart.c:15
#define TRUE
Definition: types.h:120
BOOLEAN NTAPI LlbHwUartTxReady(VOID)
Definition: hwuart.c:29
char CHAR
Definition: xmlstorage.h:175
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
#define SERIAL_TL16CP754C_QUAD0_BASE
Definition: hwuart.c:15
VOID NTAPI CpPutByte(IN PCPPORT Port, IN UCHAR Byte)
Definition: cport.c:306
NTSTATUS NTAPI CpInitialize(IN PCPPORT Port, IN PUCHAR Address, IN ULONG BaudRate)
Definition: cport.c:88
VOID NTAPI LlbHwUartSendChar(IN CHAR Char)
Definition: hwuart.c:22
CPPORT LlbHwOmap3UartPorts[4]
Definition: hwuart.c:17
ULONG NTAPI LlbHwGetUartBase(IN ULONG Port)
Definition: hwuart.c:36
unsigned int ULONG
Definition: retypes.h:1