Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenhwuart.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Boot Loader 00003 * LICENSE: BSD - See COPYING.ARM in the top level directory 00004 * FILE: boot/armllb/hw/omap3-zoom2/hwuart.c 00005 * PURPOSE: LLB UART Initialization Routines for OMAP3 ZOOM2 00006 * PROGRAMMERS: ReactOS Portable Systems Group 00007 */ 00008 00009 #include "precomp.h" 00010 #define SERIAL_REGISTER_STRIDE 2 00011 #include "lib/cportlib/cport.c" 00012 00013 /* GLOBALS ********************************************************************/ 00014 00015 #define SERIAL_TL16CP754C_QUAD0_BASE (PVOID)0x10000000 00016 00017 CPPORT LlbHwOmap3UartPorts[4] = 00018 { 00019 {NULL, 0, 0}, 00020 {NULL, 0, 0}, 00021 {NULL, 0, 0}, 00022 {NULL, 0, 0} 00023 }; 00024 00025 /* FUNCTIONS ******************************************************************/ 00026 00027 VOID 00028 NTAPI 00029 LlbHwOmap3UartInitialize(VOID) 00030 { 00031 CpInitialize(&LlbHwOmap3UartPorts[0], SERIAL_TL16CP754C_QUAD0_BASE, 115200); 00032 } 00033 00034 VOID 00035 NTAPI 00036 LlbHwUartSendChar(IN CHAR Char) 00037 { 00038 /* Send the character */ 00039 CpPutByte(&LlbHwOmap3UartPorts[0], Char); 00040 } 00041 00042 BOOLEAN 00043 NTAPI 00044 LlbHwUartTxReady(VOID) 00045 { 00046 /* TX output buffer is ready? */ 00047 return TRUE; 00048 } 00049 00050 ULONG 00051 NTAPI 00052 LlbHwGetUartBase(IN ULONG Port) 00053 { 00054 if (Port == 0) 00055 { 00056 return 0x10000000; 00057 } 00058 00059 return 0; 00060 } 00061 00062 /* EOF */ Generated on Sat May 26 2012 04:17:47 for ReactOS by
1.7.6.1
|