Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsSH4
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  generic sh4 BSP
0011  *
0012  *  This include file contains all board IO definitions.
0013  */
0014 
0015 /*
0016  *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
0017  *  Author: Victor V. Vengerov <vvv@oktet.ru>
0018  *
0019  *  Based on work:
0020  *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
0021  *
0022  *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
0023  *
0024  *  This program is distributed in the hope that it will be useful,
0025  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0026  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0027  *
0028  *
0029  *  COPYRIGHT (c) 1998-2001.
0030  *  On-Line Applications Research Corporation (OAR).
0031  *
0032  *  The license and distribution terms for this file may be
0033  *  found in the file LICENSE in this distribution or at
0034  *  http://www.rtems.org/license/LICENSE.
0035  *
0036  *  Minor adaptations for sh2 by:
0037  *  John M. Mills (jmills@tga.com)
0038  *  TGA Technologies, Inc.
0039  *  100 Pinnacle Way, Suite 140
0040  *  Norcross, GA 30071 U.S.A.
0041  *
0042  *  This modified file may be copied and distributed in accordance
0043  *  the above-referenced license. It is provided for critique and
0044  *  developmental purposes without any warranty nor representation
0045  *  by the authors or by TGA Technologies.
0046  */
0047 
0048 #ifndef LIBBSP_SH_GENSH4_BSP_H
0049 #define LIBBSP_SH_GENSH4_BSP_H
0050 
0051 /**
0052  * @defgroup RTEMSBSPsSH4 SH-4
0053  *
0054  * @ingroup RTEMSBSPsSH
0055  *
0056  * @brief SH-4 Board Support Package.
0057  *
0058  * @{
0059  */
0060 
0061 #include <rtems.h>
0062 #include <bspopts.h>
0063 #include <bsp/default-initial-extension.h>
0064 
0065 #include "rtems/score/sh7750_regs.h"
0066 
0067 #ifdef __cplusplus
0068 extern "C" {
0069 #endif
0070 
0071 /* Constants */
0072 
0073 /*
0074  * Defined in start.S
0075  */
0076 extern uint32_t   boot_mode;
0077 #define SH4_BOOT_MODE_FLASH 0
0078 #define SH4_BOOT_MODE_IPL   1
0079 
0080 /*
0081  *  Device Driver Table Entries
0082  */
0083 
0084 /*
0085  * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
0086  */
0087 #undef CONSOLE_DRIVER_TABLE_ENTRY
0088 #define CONSOLE_DRIVER_TABLE_ENTRY \
0089   { console_initialize, console_open, console_close, \
0090       console_read, console_write, console_control }
0091 
0092 /*
0093  * BSP methods that cross file boundaries.
0094  */
0095 void bsp_hw_init(void);
0096 void early_hw_init(void);
0097 void bsp_cache_on(void);
0098 
0099 #ifdef __cplusplus
0100 }
0101 #endif
0102 
0103 /** @} */
0104 
0105 #endif