2 * Copyright (C) 2001 MontaVista Software Inc.
3 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
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.
15 typedef unsigned char uint8
;
16 typedef unsigned int uint32
;
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
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
32 #define UART16550_DATA_5BIT 0x0
33 #define UART16550_DATA_6BIT 0x1
34 #define UART16550_DATA_7BIT 0x2
35 #define UART16550_DATA_8BIT 0x3
37 #define UART16550_STOP_1BIT 0x0
38 #define UART16550_STOP_2BIT 0x4
40 void Uart16550Init(uint32 baud
, uint8 data
, uint8 parity
, uint8 stop
);
43 uint8
Uart16550GetPoll();
45 void Uart16550Put(uint8 byte
);
This page took 0.0525 seconds and 5 git commands to generate.