b3fd6fdd752d3bccc6badc8306384069fb1361e8
[openwrt.git] / openwrt / target / linux / image / aruba / lzma-loader / src / uart16550.h
1 /*
2 * Copyright (C) 2001 MontaVista Software Inc.
3 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 *
10 */
11
12 #ifndef _uart16550_h_
13 #define _uart16550_h_
14
15 typedef unsigned char uint8;
16 typedef unsigned int uint32;
17
18 #define UART16550_BAUD_2400 2400
19 #define UART16550_BAUD_4800 4800
20 #define UART16550_BAUD_9600 9600
21 #define UART16550_BAUD_19200 19200
22 #define UART16550_BAUD_38400 38400
23 #define UART16550_BAUD_57600 57600
24 #define UART16550_BAUD_115200 115200
25
26 #define UART16550_PARITY_NONE 0
27 #define UART16550_PARITY_ODD 0x08
28 #define UART16550_PARITY_EVEN 0x18
29 #define UART16550_PARITY_MARK 0x28
30 #define UART16550_PARITY_SPACE 0x38
31
32 #define UART16550_DATA_5BIT 0x0
33 #define UART16550_DATA_6BIT 0x1
34 #define UART16550_DATA_7BIT 0x2
35 #define UART16550_DATA_8BIT 0x3
36
37 #define UART16550_STOP_1BIT 0x0
38 #define UART16550_STOP_2BIT 0x4
39
40 void Uart16550Init(uint32 baud, uint8 data, uint8 parity, uint8 stop);
41
42 /* blocking call */
43 uint8 Uart16550GetPoll();
44
45 void Uart16550Put(uint8 byte);
46
47 #endif
This page took 0.052444 seconds and 3 git commands to generate.