Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:01

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsSH2
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  generic sh2
0011  *
0012  *  This include file contains all board IO definitions.
0013  */
0014 
0015 /*
0016  *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
0017  *
0018  *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
0019  *
0020  *  This program is distributed in the hope that it will be useful,
0021  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0023  *
0024  *
0025  *  COPYRIGHT (c) 1998.
0026  *  On-Line Applications Research Corporation (OAR).
0027  *
0028  *  The license and distribution terms for this file may be
0029  *  found in the file LICENSE in this distribution or at
0030  *  http://www.rtems.org/license/LICENSE.
0031  *
0032  *  Minor adaptations for sh2 by:
0033  *  John M. Mills (jmills@tga.com)
0034  *  TGA Technologies, Inc.
0035  *  100 Pinnacle Way, Suite 140
0036  *  Norcross, GA 30071 U.S.A.
0037  *
0038  *  This modified file may be copied and distributed in accordance
0039  *  the above-referenced license. It is provided for critique and
0040  *  developmental purposes without any warranty nor representation
0041  *  by the authors or by TGA Technologies.
0042  */
0043 
0044 #ifndef LIBBSP_SH_GENSH2_BSP_H
0045 #define LIBBSP_SH_GENSH2_BSP_H
0046 
0047 /**
0048  * @defgroup RTEMSBSPsSH2 SH-2
0049  *
0050  * @ingroup RTEMSBSPsSH
0051  *
0052  * @brief SH-2 Board Support Package.
0053  *
0054  * @{
0055  */
0056 
0057 #include <rtems.h>
0058 
0059 #include <bspopts.h>
0060 #include <bsp/default-initial-extension.h>
0061 
0062 #include <termios.h> /* for tcflag_t */
0063 
0064 #include <sh/sci.h>
0065 
0066 #ifdef __cplusplus
0067 extern "C" {
0068 #endif
0069 
0070 #if 1
0071 /* FIXME:
0072  *   These definitions will be no longer necessary if the old
0073  *   implementation of SCI driver will be droped
0074  */
0075 #define BSP_CONSOLE_DEVNAME "/dev/sci0"
0076 #define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0)
0077 #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
0078 #define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
0079 #endif
0080 
0081 /* Constants */
0082 
0083 /*
0084  * BSP methods that cross file boundaries.
0085  */
0086 void bsp_hw_init(void);
0087 
0088 int _sci_get_brparms(
0089   unsigned int   spd,
0090   unsigned char *smr,
0091   unsigned char *brr
0092 );
0093 
0094 #ifdef __cplusplus
0095 }
0096 #endif
0097 
0098 /** @} */
0099 
0100 #endif