source: rtems/c/src/libchip/serial/z85c30.h @ 849dc107

4.104.114.84.95
Last change on this file since 849dc107 was 8414c033, checked in by Joel Sherrill <joel.sherrill@…>, on 07/15/98 at 23:54:24

Added default z85c30 register access routines.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 *  This include file contains all console driver definitions for the
3 *  Zilog z85c30.
4 *
5 *  COPYRIGHT (c) 1998 by Radstone Technology
6 *
7 *
8 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
9 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
10 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
11 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
12 *
13 * You are hereby granted permission to use, copy, modify, and distribute
14 * this file, provided that this notice, plus the above copyright notice
15 * and disclaimer, appears in all copies. Radstone Technology will provide
16 * no support for this code.
17 *
18 *  COPYRIGHT (c) 1989-1997.
19 *  On-Line Applications Research Corporation (OAR).
20 *  Copyright assigned to U.S. Government, 1994.
21 *
22 *  The license and distribution terms for this file may in
23 *  the file LICENSE in this distribution or at
24 *  http://www.OARcorp.com/rtems/license.html.
25 *
26 *  $Id:
27 */
28
29#ifndef __Z85C30_H
30#define __Z85C30_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/*
37 *  Driver function table
38 */
39
40extern console_fns z85c30_fns;
41extern console_fns z85c30_fns_polled;
42
43/*
44 *  Flow control function tables
45 */
46
47extern console_flow z85c30_flow_RTSCTS;
48extern console_flow z85c30_flow_DTRCTS;
49
50/*
51 * Default register access routines
52 */
53
54unsigned8 z85c30_get_register(   /* registers are byte-wide */
55  unsigned32  ulCtrlPort,
56  unsigned8   ucRegNum
57);
58
59void z85c30_set_register(
60  unsigned32  ulCtrlPort,
61  unsigned8   ucRegNum,
62  unsigned8   ucData
63);
64
65unsigned8 z85c30_get_data(
66  unsigned32  ulDataPort
67);
68
69void z85c30_set_data(
70  unsigned32  ulDataPort,
71  unsigned8   ucData
72);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
Note: See TracBrowser for help on using the repository browser.