1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all board IO definitions. |
---|
4 | * |
---|
5 | * This file includes definitions for the MBX860 and MBX821. |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1998. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef _BSP_H |
---|
16 | #define _BSP_H |
---|
17 | |
---|
18 | #include <bspopts.h> |
---|
19 | #include <bsp/default-initial-extension.h> |
---|
20 | |
---|
21 | #include <rtems.h> |
---|
22 | #include <rtems/console.h> |
---|
23 | #include <rtems/clockdrv.h> |
---|
24 | #include <mpc8xx.h> |
---|
25 | #include <mpc8xx/cpm.h> |
---|
26 | #include <mpc8xx/mmu.h> |
---|
27 | #include <mpc8xx/console.h> |
---|
28 | #include <bsp/vectors.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif |
---|
33 | |
---|
34 | /* |
---|
35 | * Representation of initialization data in NVRAM |
---|
36 | */ |
---|
37 | typedef volatile struct nvram_config_ { |
---|
38 | unsigned char cache_mode; /* 0xFA001000 */ |
---|
39 | unsigned char console_mode; /* 0xFA001001 */ |
---|
40 | unsigned char console_printk_port; /* 0xFA001002 */ |
---|
41 | unsigned char eppcbug_smc1; /* 0xFA001003 */ |
---|
42 | unsigned long ipaddr; /* 0xFA001004 */ |
---|
43 | unsigned long netmask; /* 0xFA001008 */ |
---|
44 | unsigned char enaddr[6]; /* 0xFA00100C */ |
---|
45 | unsigned short processor_id; /* 0xFA001012 */ |
---|
46 | unsigned long rma_start; /* 0xFA001014 */ |
---|
47 | unsigned long vma_start; /* 0xFA001018 */ |
---|
48 | unsigned long ramsize; /* 0xFA00101C */ |
---|
49 | } nvram_config; |
---|
50 | |
---|
51 | /* |
---|
52 | * Pointer to the base of User Area NVRAM |
---|
53 | */ |
---|
54 | #define nvram ((nvram_config * const) 0xFA001000) |
---|
55 | |
---|
56 | /* |
---|
57 | * Network driver configuration |
---|
58 | */ |
---|
59 | struct rtems_bsdnet_ifconfig; |
---|
60 | extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching); |
---|
61 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "scc1" |
---|
62 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach |
---|
63 | |
---|
64 | /* |
---|
65 | * We need to decide how much memory will be non-cacheable. This |
---|
66 | * will mainly be memory that will be used in DMA (network and serial |
---|
67 | * buffers). |
---|
68 | */ |
---|
69 | #define NOCACHE_MEM_SIZE 512*1024 |
---|
70 | |
---|
71 | /* |
---|
72 | * indicate, that BSP has IDE driver |
---|
73 | */ |
---|
74 | #define RTEMS_BSP_HAS_IDE_DRIVER |
---|
75 | |
---|
76 | #ifdef __cplusplus |
---|
77 | } |
---|
78 | #endif |
---|
79 | |
---|
80 | #endif |
---|