Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsPowerPCVirtex
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*  bsp.h
0010  *
0011  *  This include file contains all GEN405 board IO definitions.
0012  *
0013  * derived from helas403/include/bsp.h:
0014  *  Id: bsp.h,v 1.4 2001/06/18 17:01:48 joel Exp
0015  *  Author: Thomas Doerfler <td@imd.m.isar.de>
0016  *              IMD Ingenieurbuero fuer Microcomputertechnik
0017  *
0018  *  Copyright (c) 1998 IMD Ingenieurbuero fuer Microcomputertechnik
0019  *
0020  *  Changes from IMD are covered by the original distributions terms.
0021  *  This file has been derived from the papyrus BSP.
0022  *
0023  *  Author: Andrew Bray <andy@i-cubed.co.uk>
0024  *
0025  *  COPYRIGHT (c) 1995 by i-cubed ltd.
0026  *
0027  *  To anyone who acknowledges that this file is provided "AS IS"
0028  *  without any express or implied warranty:
0029  *      permission to use, copy, modify, and distribute this file
0030  *      for any purpose is hereby granted without fee, provided that
0031  *      the above copyright notice and this notice appears in all
0032  *      copies, and that the name of i-cubed limited not be used in
0033  *      advertising or publicity pertaining to distribution of the
0034  *      software without specific, written prior permission.
0035  *      i-cubed limited makes no representations about the suitability
0036  *      of this software for any purpose.
0037  *
0038  *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
0039  *
0040  *  COPYRIGHT (c) 1989-1999.
0041  *  On-Line Applications Research Corporation (OAR).
0042  *
0043  *  The license and distribution terms for this file may be
0044  *  found in the file LICENSE in this distribution or at
0045  *  http://www.rtems.org/license/LICENSE.
0046  *
0047  */
0048 
0049 #ifndef LIBBSP_POWERPC_VIRTEX_BSP_H
0050 #define LIBBSP_POWERPC_VIRTEX_BSP_H
0051 
0052 /**
0053  * @defgroup RTEMSBSPsPowerPCVirtex Xilinx Virtex
0054  *
0055  * @ingroup RTEMSBSPsPowerPC
0056  *
0057  * @brief Xilinx Virtex Board Support Package.
0058  *
0059  * @{
0060  */
0061 
0062 #include <bspopts.h>
0063 
0064 #ifdef ASM
0065 /* Definition of where to store registers in alignment handler */
0066 #define ALIGN_REGS 0x0140
0067 
0068 #else
0069 #include <rtems.h>
0070 #include <bsp/irq.h>
0071 #include <bsp/vectors.h>
0072 #include <bsp/default-initial-extension.h>
0073 
0074 #ifdef __cplusplus
0075 extern "C" {
0076 #endif
0077 
0078 #define BSP_FEATURE_IRQ_EXTENSION
0079 
0080 /* Network Defines */
0081 #if 1 /* EB/doe changes */
0082 #define RTEMS_BSP_NETWORK_DRIVER_NAME     "eth0"
0083 #else
0084 #include "xiltemac.h"
0085 #define RTEMS_BSP_NETWORK_DRIVER_NAME     XILTEMAC_DRIVER_PREFIX
0086 #endif
0087 struct rtems_bsdnet_ifconfig;
0088 extern int xilTemac_driver_attach(struct rtems_bsdnet_ifconfig*, int );
0089 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH xilTemac_driver_attach
0090 
0091 #ifdef __cplusplus
0092 }
0093 #endif
0094 
0095 #endif /* ASM */
0096 
0097 /** @} */
0098 
0099 #endif