source: rtems/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h @ 6693a68

4.104.114.84.95
Last change on this file since 6693a68 was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 1998 at 11:46:28 PM

updated copyright to 1998

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*  consolex.h
2 *
3 *  This file describes the Extended Console Device Driver
4 *  This driver provides support for the standard C Library.
5 *
6 *  This file was created originally by
7 *  On-Line Applications Research Corporation (OAR)
8 *  and modified by:
9 *
10 *  Katsutoshi Shibuya - BU-Denken Co.,Ltd. - Sapporo, JAPAN
11 *
12 *  featuring support of:
13 *
14 *     - Multi-SCC chip handling
15 *     - Non-blocking I/O (O_NDELAY flag in libc)
16 *     - Raw mode device (no CR/LF detection)
17 *     - RTS/CTS flow control
18 *
19 *  COPYRIGHT (c) 1989-1998.
20 *  On-Line Applications Research Corporation (OAR).
21 *  Copyright assigned to U.S. Government, 1994.
22 *
23 *  The license and distribution terms for this file may be
24 *  found in the file LICENSE in this distribution or at
25 *  http://www.OARcorp.com/rtems/license.html.
26 *
27 *  $Id$
28 */
29
30#ifndef _CONSOLEX_DRIVER_h
31#define _CONSOLEX_DRIVER_h
32
33#include <rtems.h>
34#include <termios.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#define CONSOLEX_DRIVER_TABLE_ENTRY \
41  { consolex_initialize, consolex_open, consolex_close, \
42    consolex_read, consolex_write, consolex_control }
43
44rtems_device_driver consolex_initialize(
45  rtems_device_major_number,
46  rtems_device_minor_number,
47  void *
48);
49
50rtems_device_driver consolex_open(
51  rtems_device_major_number,
52  rtems_device_minor_number,
53  void *
54);
55
56rtems_device_driver consolex_close(
57  rtems_device_major_number,
58  rtems_device_minor_number,
59  void *
60);
61
62rtems_device_driver consolex_read(
63  rtems_device_major_number,
64  rtems_device_minor_number,
65  void *
66);
67
68rtems_device_driver consolex_write(
69  rtems_device_major_number,
70  rtems_device_minor_number,
71  void *
72);
73
74rtems_device_driver consolex_control(
75  rtems_device_major_number,
76  rtems_device_minor_number,
77  void *
78);
79
80/* Low level IO functions */
81void    SCCInitialize();
82rtems_boolean   SCCGetOne(int port, char *ch);
83char            SCCGetOneBlocked(int port);
84rtems_boolean   SCCSendOne(int port, char ch);
85void            SCCSendOneBlocked(int port, char ch);
86unsigned32      SCCSetAttributes(int port, struct termios *t);
87unsigned32      SCCGetAttributes(int port, struct termios *t);
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif
94/* end of include file */
Note: See TracBrowser for help on using the repository browser.