RTEMS 7.0-rc1
Loading...
Searching...
No Matches
z85c30.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
10/*
11 * COPYRIGHT (c) 1998 by Radstone Technology
12 *
13 *
14 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
15 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
17 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
18 *
19 * You are hereby granted permission to use, copy, modify, and distribute
20 * this file, provided that this notice, plus the above copyright notice
21 * and disclaimer, appears in all copies. Radstone Technology will provide
22 * no support for this code.
23 *
24 * COPYRIGHT (c) 1989-1997.
25 * On-Line Applications Research Corporation (OAR).
26 *
27 * The license and distribution terms for this file may in
28 * the file LICENSE in this distribution or at
29 * http://www.rtems.org/license/LICENSE.
30 */
31
32#ifndef __Z85C30_H
33#define __Z85C30_H
34
35#include <stdint.h>
36
37#include <libchip/serial.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*
44 * Driver function table
45 */
46
47extern const console_fns z85c30_fns;
48extern const console_fns z85c30_fns_polled;
49
50/*
51 * Flow control function tables
52 */
53
54extern const console_flow z85c30_flow_RTSCTS;
55extern const console_flow z85c30_flow_DTRCTS;
56
57/*
58 * Default register access routines
59 */
60
61uint8_t z85c30_get_register( /* registers are byte-wide */
62 uintptr_t ulCtrlPort,
63 uint8_t ucRegNum
64);
65
66void z85c30_set_register(
67 uintptr_t ulCtrlPort,
68 uint8_t ucRegNum,
69 uint8_t ucData
70);
71
72uint8_t z85c30_get_data(
73 uint32_t ulDataPort
74);
75
76void z85c30_set_data(
77 uint32_t ulDataPort,
78 uint8_t ucData
79);
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
The generic libchip serial driver interface.
Definition: serial.h:113
Definition: serial.h:95