NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 
11 #ifndef INCLUDED_SERIAL_H
12 #define INCLUDED_SERIAL_H
13 
22 #include <nvcommon.h>
23 
32 #define MAX_SERIAL_INSTANCE (7)
33 
38 {
40  NvU8 Port;
42  NvU8 WordLength;
44  NvU8 Parity;
46  NvU8 StopBits;
48  NvU32 BaudRate;
49 };
50 
51 
56 {
58  NvU32 RegPhyBase;
60  NvU32 RegLen;
62  NvU32 RegVirtBase;
65 };
66 
70 NvError QbSerialInit(void);
71 
74 #endif // INCLUDED_SERIAL_H
NvU8 Port
Holds the UART port.
Definition: serial.h:40
NvU8 Parity
Holds the parity support. Usual value is 0.
Definition: serial.h:44
NvU32 RegPhyBase
Holds the physical address of controller (filled by the driver).
Definition: serial.h:58
Defines an internal structure for UART driver.
Definition: serial.h:55
NvU8 StopBits
Holds the Holds the stop bits. Usual value is 1.
Definition: serial.h:46
NvU32 RegVirtBase
Holds the virtual address of controller (filled by the driver).
Definition: serial.h:62
NvError QbSerialInit(void)
Registers the UART driver to driver framework.
Holds information for UART port initialization.
Definition: serial.h:37
struct QbSerialInfo * pdata
Holds the structure for platform data passed from board file.
Definition: serial.h:64
NvU32 BaudRate
Holds the baud rate.
Definition: serial.h:48
NvU8 WordLength
Holds the word-length. Usual value is 8.
Definition: serial.h:42
NvU32 RegLen
Holds the register length of the controller (filled by the driver).
Definition: serial.h:60