![]() |
|
|||
File indexing completed on 2025-05-11 08:23:56
0001 /* SPDX-License-Identifier: BSD-2-Clause */ 0002 0003 /** 0004 * @file 0005 * 0006 * @ingroup RTEMSBSPsPowerPCMPC8260ADS 0007 * 0008 * @brief Global BSP definitions. 0009 */ 0010 0011 /* 0012 * This include file contains all board IO definitions. 0013 */ 0014 0015 /** 0016 * @defgroup RTEMSBSPsPowerPCMPC8260ADS NXP MPC8260ADS 0017 * 0018 * @ingroup RTEMSBSPsPowerPC 0019 * 0020 * @brief NXP MPC8260ADS Board Support Package. 0021 * 0022 * @{ 0023 */ 0024 0025 /* 0026 * COPYRIGHT (c) 1989-2014. 0027 * On-Line Applications Research Corporation (OAR). 0028 * 0029 * Redistribution and use in source and binary forms, with or without 0030 * modification, are permitted provided that the following conditions 0031 * are met: 0032 * 1. Redistributions of source code must retain the above copyright 0033 * notice, this list of conditions and the following disclaimer. 0034 * 2. Redistributions in binary form must reproduce the above copyright 0035 * notice, this list of conditions and the following disclaimer in the 0036 * documentation and/or other materials provided with the distribution. 0037 * 0038 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0039 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0040 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0041 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 0042 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0043 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0044 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0045 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0046 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0047 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0048 * POSSIBILITY OF SUCH DAMAGE. 0049 */ 0050 0051 #ifndef LIBBSP_POWERPC_MPC8260ADS_BSP_H 0052 #define LIBBSP_POWERPC_MPC8260ADS_BSP_H 0053 0054 #include <bspopts.h> 0055 #include <bsp/default-initial-extension.h> 0056 0057 #include <rtems.h> 0058 #include <mpc8260.h> 0059 #include <mpc8260/cpm.h> 0060 #include <mpc8260/mmu.h> 0061 #include <mpc8260/console.h> 0062 #include <bsp/irq.h> 0063 #include <bsp/vectors.h> 0064 0065 #ifdef __cplusplus 0066 extern "C" { 0067 #endif 0068 0069 /* 0070 * Board configuration registers 0071 */ 0072 0073 typedef struct bcsr 0074 0075 { 0076 uint32_t bcsr0; /* Board Control and Status Register */ 0077 uint32_t bcsr1; 0078 uint32_t bcsr2; 0079 uint32_t bcsr3; 0080 0081 } BCSR; 0082 0083 /* 0084 * Network driver configuration 0085 */ 0086 struct rtems_bsdnet_ifconfig; 0087 extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching); 0088 #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1" 0089 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach 0090 0091 /* miscellaneous stuff assumed to exist */ 0092 0093 /* 0094 * We need to decide how much memory will be non-cacheable. This 0095 * will mainly be memory that will be used in DMA (network and serial 0096 * buffers). 0097 */ 0098 /* 0099 #define NOCACHE_MEM_SIZE 512*1024 0100 */ 0101 0102 /* functions */ 0103 0104 #if 0 0105 void M8260ExecuteRISC( uint32_t command ); 0106 void *M8260AllocateBufferDescriptors( int count ); 0107 void *M8260AllocateRiscTimers( int count ); 0108 extern char M8260DefaultWatchdogFeeder; 0109 #endif 0110 0111 /* 0112 * Prototypes for items shared across file boundaries in the BSP 0113 */ 0114 extern uint32_t bsp_serial_per_sec; 0115 void *bsp_idle_thread( uintptr_t ignored ); 0116 void cpu_init(void); 0117 int mbx8xx_console_get_configuration(void); 0118 0119 #ifdef __cplusplus 0120 } 0121 #endif 0122 0123 /** @} */ 0124 0125 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |