Initial PCI setup.
[qemu-palcode.git] / uart.h
blobbb47b0c83e75f7d8783f765bbf94728947448ad6
1 #ifndef __UART_H_LOADED
2 #define __UART_H_LOADED
3 /*****************************************************************************
5 Copyright © 1993, 1994 Digital Equipment Corporation,
6 Maynard, Massachusetts.
8 All Rights Reserved
10 Permission to use, copy, modify, and distribute this software and its
11 documentation for any purpose and without fee is hereby granted, provided
12 that the copyright notice and this permission notice appear in all copies
13 of software and supporting documentation, and that the name of Digital not
14 be used in advertising or publicity pertaining to distribution of the software
15 without specific, written prior permission. Digital grants this permission
16 provided that you prominently mark, as not part of the original, any
17 modifications made to this software or documentation.
19 Digital Equipment Corporation disclaims all warranties and/or guarantees
20 with regard to this software, including all implied warranties of fitness for
21 a particular purpose and merchantability, and makes no representations
22 regarding the use of, or the results of the use of, the software and
23 documentation in terms of correctness, accuracy, reliability, currentness or
24 otherwise; and you rely on the software, documentation and results solely at
25 your own risk.
27 ******************************************************************************/
29 #define com1Rbr 0x3f8
30 #define com1Thr 0x3f8
31 #define com1Ier 0x3f9
32 #define com1Iir 0x3fa
33 #define com1Lcr 0x3fb
34 #define com1Mcr 0x3fc
35 #define com1Lsr 0x3fd
36 #define com1Msr 0x3fe
37 #define com1Scr 0x3ff
38 #define com1Dll 0x3f8
39 #define com1Dlm 0x3f9
41 #define com2Rbr 0x2f8
42 #define com2Thr 0x2f8
43 #define com2Ier 0x2f9
44 #define com2Iir 0x2fa
45 #define com2Lcr 0x2fb
46 #define com2Mcr 0x2fc
47 #define com2Lsr 0x2fd
48 #define com2Msr 0x2fe
49 #define com2Scr 0x2ff
50 #define com2Dll 0x2f8
51 #define com2Dlm 0x2f9
53 #define COM1 (com1Rbr - com2Rbr)
54 #define COM2 0
56 #ifndef __ASSEMBLER__
58 extern int uart_charav(int port);
59 extern int uart_getchar(int port);
60 extern void uart_putchar_raw(int port, char c);
61 extern void uart_putchar(int port, char c);
62 extern void uart_puts(int port, const char *s);
63 extern void uart_init_line(int port, int baud);
64 extern void uart_init(void);
66 #endif /* __ASSEMBLER__ */
67 #endif /* __UART_H_LOADED */