source: rtems/c/src/lib/libbsp/or32/orp/console/console.h @ dcf0c5b8

4.104.114.84.95
Last change on this file since dcf0c5b8 was dcf0c5b8, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:52:18

2003-09-04 Joel Sherrill <joel@…>

  • clock/clockdrv.c, console/console.c, console/console.h, include/bsp.h, start/start.S, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, startup/setvec.c, timer/timer.c, timer/timerisr.c: URL for license changed.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/* console.h -- console header file for the Bender board using the
2 *              Or1k architecture.
3 *     
4 *  Copyright (C) 2001 Chris Ziomkowski, chris@asics.ws
5 *
6 *  This file is distributed as part of the RTEMS package from
7 *  OAR Corporation, and follows the licensing and distribution
8 *  terms as stated for RTEMS.
9 *
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#ifndef _CONSOLE_H
19#define _CONSOLE_H
20
21typedef enum {
22  TERM_LOCAL_ECHO,
23  TERM_BIT_RATE,
24} ConsoleIOCTLCommand;
25
26typedef struct {
27  ConsoleIOCTLCommand command;
28  void*                data;
29} ConsoleIOCTLRequest;
30
31typedef struct {
32  unsigned char RBR;
33  unsigned char IER;
34  unsigned char IIR;
35  unsigned char LCR;
36  unsigned char MCR;
37  unsigned char LSR;
38  unsigned char MSR;
39  unsigned char SCR;
40} UART_16450_Read;
41
42typedef struct {
43  unsigned char THR;
44  unsigned char IER;
45  unsigned char IIR;
46  unsigned char LCR;
47  unsigned char MCR;
48  unsigned char LSR;
49  unsigned char MSR;
50  unsigned char SCR;
51} UART_16450_Write;
52
53typedef struct {
54  unsigned char DLM;
55  unsigned char DLL;
56  unsigned char IIR;
57  unsigned char LCR;
58  unsigned char MCR;
59  unsigned char LSR;
60  unsigned char MSR;
61  unsigned char SCR;
62} UART_16450_Latch;
63
64typedef union {
65  UART_16450_Read   read;
66  UART_16450_Write  write;
67  UART_16450_Latch  latch;
68} UART_16450;
69
70#endif
Note: See TracBrowser for help on using the repository browser.