Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /**
0002  *  @file
0003  *
0004  *  This include file contains all console driver definitions for the
0005  *  Zilog z85c30.
0006  */
0007 
0008 /*
0009  *  COPYRIGHT (c) 1998 by Radstone Technology
0010  *
0011  *
0012  * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
0013  * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
0014  * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
0015  * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
0016  *
0017  * You are hereby granted permission to use, copy, modify, and distribute
0018  * this file, provided that this notice, plus the above copyright notice
0019  * and disclaimer, appears in all copies. Radstone Technology will provide
0020  * no support for this code.
0021  *
0022  *  COPYRIGHT (c) 1989-1997.
0023  *  On-Line Applications Research Corporation (OAR).
0024  *
0025  *  The license and distribution terms for this file may in
0026  *  the file LICENSE in this distribution or at
0027  *  http://www.rtems.org/license/LICENSE.
0028  */
0029 
0030 #ifndef __Z85C30_H
0031 #define __Z85C30_H
0032 
0033 #include <stdint.h>
0034 
0035 #include <libchip/serial.h>
0036 
0037 #ifdef __cplusplus
0038 extern "C" {
0039 #endif
0040 
0041 /*
0042  *  Driver function table
0043  */
0044 
0045 extern const console_fns z85c30_fns;
0046 extern const console_fns z85c30_fns_polled;
0047 
0048 /*
0049  *  Flow control function tables
0050  */
0051 
0052 extern const console_flow z85c30_flow_RTSCTS;
0053 extern const console_flow z85c30_flow_DTRCTS;
0054 
0055 /*
0056  * Default register access routines
0057  */
0058 
0059 uint8_t   z85c30_get_register(   /* registers are byte-wide */
0060   uintptr_t   ulCtrlPort,
0061   uint8_t     ucRegNum
0062 );
0063 
0064 void z85c30_set_register(
0065   uintptr_t   ulCtrlPort,
0066   uint8_t     ucRegNum,
0067   uint8_t     ucData
0068 );
0069 
0070 uint8_t   z85c30_get_data(
0071   uint32_t    ulDataPort
0072 );
0073 
0074 void z85c30_set_data(
0075   uint32_t    ulDataPort,
0076   uint8_t     ucData
0077 );
0078 
0079 #ifdef __cplusplus
0080 }
0081 #endif
0082 
0083 #endif