1 | /* |
---|
2 | * This include file contains all board IO definitions. |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * COPYRIGHT (c) 1989-2014. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.org/license/LICENSE. |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef LIBBSP_POWERPC_MPC8260ADS_BSP_H |
---|
15 | #define LIBBSP_POWERPC_MPC8260ADS_BSP_H |
---|
16 | |
---|
17 | #include <bspopts.h> |
---|
18 | #include <bsp/default-initial-extension.h> |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | #include <rtems/console.h> |
---|
22 | #include <rtems/clockdrv.h> |
---|
23 | #include <mpc8260.h> |
---|
24 | #include <mpc8260/cpm.h> |
---|
25 | #include <mpc8260/mmu.h> |
---|
26 | #include <mpc8260/console.h> |
---|
27 | #include <bsp/irq.h> |
---|
28 | #include <bsp/vectors.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif |
---|
33 | |
---|
34 | /* |
---|
35 | * Board configuration registers |
---|
36 | */ |
---|
37 | |
---|
38 | typedef struct bcsr |
---|
39 | |
---|
40 | { |
---|
41 | uint32_t bcsr0; /* Board Control and Status Register */ |
---|
42 | uint32_t bcsr1; |
---|
43 | uint32_t bcsr2; |
---|
44 | uint32_t bcsr3; |
---|
45 | |
---|
46 | } BCSR; |
---|
47 | |
---|
48 | /* |
---|
49 | * Network driver configuration |
---|
50 | */ |
---|
51 | struct rtems_bsdnet_ifconfig; |
---|
52 | extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching); |
---|
53 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1" |
---|
54 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach |
---|
55 | |
---|
56 | /* miscellaneous stuff assumed to exist */ |
---|
57 | |
---|
58 | /* |
---|
59 | * We need to decide how much memory will be non-cacheable. This |
---|
60 | * will mainly be memory that will be used in DMA (network and serial |
---|
61 | * buffers). |
---|
62 | */ |
---|
63 | /* |
---|
64 | #define NOCACHE_MEM_SIZE 512*1024 |
---|
65 | */ |
---|
66 | |
---|
67 | /* functions */ |
---|
68 | |
---|
69 | #if 0 |
---|
70 | void M8260ExecuteRISC( uint32_t command ); |
---|
71 | void *M8260AllocateBufferDescriptors( int count ); |
---|
72 | void *M8260AllocateRiscTimers( int count ); |
---|
73 | extern char M8260DefaultWatchdogFeeder; |
---|
74 | #endif |
---|
75 | |
---|
76 | /* |
---|
77 | * Prototypes for items shared across file boundaries in the BSP |
---|
78 | */ |
---|
79 | extern uint32_t bsp_serial_per_sec; |
---|
80 | void *bsp_idle_thread( uintptr_t ignored ); |
---|
81 | void cpu_init(void); |
---|
82 | int mbx8xx_console_get_configuration(void); |
---|
83 | |
---|
84 | #ifdef __cplusplus |
---|
85 | } |
---|
86 | #endif |
---|
87 | |
---|
88 | #endif |
---|