source: rtems/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h @ 23f689c

Last change on this file since 23f689c was 23f689c, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:44:40

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

  • clock/ckinit.c, console/console.c, consolex/cTest.c, consolex/consolex.c, consolex/consolex.h, include/bsp.h, include/coverhd.h, include/tod.h, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, timer/timer.c, timer/timerisr.S, tod/tod.c: URL for license changed.
  • 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-1999.
20 *  On-Line Applications Research Corporation (OAR).
21 *
22 *  The license and distribution terms for this file may be
23 *  found in the file LICENSE in this distribution or at
24 *  http://www.rtems.com/license/LICENSE.
25 *
26 *  $Id$
27 */
28
29#ifndef _CONSOLEX_DRIVER_h
30#define _CONSOLEX_DRIVER_h
31
32#include <rtems.h>
33#include <termios.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#define CONSOLEX_DRIVER_TABLE_ENTRY \
40  { consolex_initialize, consolex_open, consolex_close, \
41    consolex_read, consolex_write, consolex_control }
42
43rtems_device_driver consolex_initialize(
44  rtems_device_major_number,
45  rtems_device_minor_number,
46  void *
47);
48
49rtems_device_driver consolex_open(
50  rtems_device_major_number,
51  rtems_device_minor_number,
52  void *
53);
54
55rtems_device_driver consolex_close(
56  rtems_device_major_number,
57  rtems_device_minor_number,
58  void *
59);
60
61rtems_device_driver consolex_read(
62  rtems_device_major_number,
63  rtems_device_minor_number,
64  void *
65);
66
67rtems_device_driver consolex_write(
68  rtems_device_major_number,
69  rtems_device_minor_number,
70  void *
71);
72
73rtems_device_driver consolex_control(
74  rtems_device_major_number,
75  rtems_device_minor_number,
76  void *
77);
78
79/* Low level IO functions */
80void    SCCInitialize();
81rtems_boolean   SCCGetOne(int port, char *ch);
82char            SCCGetOneBlocked(int port);
83rtems_boolean   SCCSendOne(int port, char ch);
84void            SCCSendOneBlocked(int port, char ch);
85unsigned32      SCCSetAttributes(int port, struct termios *t);
86unsigned32      SCCGetAttributes(int port, struct termios *t);
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
93/* end of include file */
Note: See TracBrowser for help on using the repository browser.