1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSBSPsM68kGen68360 |
---|
5 | * |
---|
6 | * @brief Board Support Package for `Generic' Motorola MC68360 |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 1996 Eric Norum <eric@norum.ca> |
---|
11 | * |
---|
12 | * COPYRIGHT (c) 1989-1999. |
---|
13 | * On-Line Applications Research Corporation (OAR). |
---|
14 | * |
---|
15 | * The license and distribution terms for this file may be |
---|
16 | * found in the file LICENSE in this distribution or at |
---|
17 | * http://www.rtems.org/license/LICENSE. |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef LIBBSP_M68K_GEN68360_BSP_H |
---|
21 | #define LIBBSP_M68K_GEN68360_BSP_H |
---|
22 | |
---|
23 | /** |
---|
24 | * @defgroup RTEMSBSPsM68kGen68360 Motorola 68360 |
---|
25 | * |
---|
26 | * @ingroup RTEMSBSPsM68k |
---|
27 | * |
---|
28 | * @brief Motorola 68360 Board Support Package. |
---|
29 | * |
---|
30 | * @{ |
---|
31 | */ |
---|
32 | |
---|
33 | #include <bspopts.h> |
---|
34 | #include <bsp/default-initial-extension.h> |
---|
35 | |
---|
36 | #include <rtems.h> |
---|
37 | |
---|
38 | #ifdef __cplusplus |
---|
39 | extern "C" { |
---|
40 | #endif |
---|
41 | |
---|
42 | struct rtems_bsdnet_ifconfig; |
---|
43 | extern int rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching); |
---|
44 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "scc1" |
---|
45 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_scc1_driver_attach |
---|
46 | |
---|
47 | extern rtems_isr_entry M68Kvec[]; /* vector table address */ |
---|
48 | |
---|
49 | /* functions */ |
---|
50 | |
---|
51 | void M360ExecuteRISC( uint16_t command ); |
---|
52 | void *M360AllocateBufferDescriptors( int count ); |
---|
53 | void *M360AllocateRiscTimers( int count ); |
---|
54 | extern char M360DefaultWatchdogFeeder; |
---|
55 | |
---|
56 | extern int m360_clock_rate; /* BRG clock rate, defined in console.c */ |
---|
57 | |
---|
58 | rtems_isr_entry set_vector( |
---|
59 | rtems_isr_entry handler, |
---|
60 | rtems_vector_number vector, |
---|
61 | int type |
---|
62 | ); |
---|
63 | |
---|
64 | /* |
---|
65 | * Definitions for Atlas Computer Equipment Inc. High Speed Bridge (HSB) |
---|
66 | */ |
---|
67 | #define ATLASHSB_ESR 0x20010000L |
---|
68 | #define ATLASHSB_USICR 0x20010001L |
---|
69 | #define ATLASHSB_DSRR 0x20010002L |
---|
70 | #define ATLASHSB_LED4 0x20010004L |
---|
71 | #define ATLASHSB_ROM_U6 0xFF080000L /* U6 flash ROM socket */ |
---|
72 | |
---|
73 | |
---|
74 | /* |
---|
75 | * definitions for PGH360 board |
---|
76 | */ |
---|
77 | #if defined(PGH360) |
---|
78 | /* |
---|
79 | * logical SPI addresses of SPI slaves available |
---|
80 | */ |
---|
81 | #define PGH360_SPI_ADDR_EEPROM 0 |
---|
82 | #define PGH360_SPI_ADDR_DISP4_DATA 1 |
---|
83 | #define PGH360_SPI_ADDR_DISP4_CTRL 2 |
---|
84 | |
---|
85 | /* |
---|
86 | * Port B bit locations of SPI slave selects |
---|
87 | */ |
---|
88 | #define PGH360_PB_SPI_DISP4_RS_MSK (1<<15) |
---|
89 | #define PGH360_PB_SPI_DISP4_CE_MSK (1<<14) |
---|
90 | #define PGH360_PB_SPI_EEP_CE_MSK (1<< 0) |
---|
91 | #endif /* defined(PGH360) */ |
---|
92 | |
---|
93 | /* |
---|
94 | * Prototypes for BSP methods which cross file boundaries |
---|
95 | */ |
---|
96 | void _Init68360(void); |
---|
97 | |
---|
98 | #ifdef __cplusplus |
---|
99 | } |
---|
100 | #endif |
---|
101 | |
---|
102 | /** @} */ |
---|
103 | |
---|
104 | #endif |
---|