source: rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h @ 34c4852

4.104.114.84.95
Last change on this file since 34c4852 was 34c4852, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/26/05 at 05:36:48

2005-05-26 Ralf Corsepius <ralf.corsepius@…>

  • include/bsp.h: New header guard.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*
2 * Board Support Package for `Generic' Motorola MC68360
3 *
4 * Based on the `gen68302' board support package, and covered by the
5 * original distribution terms.
6 *
7 * W. Eric Norum
8 * Saskatchewan Accelerator Laboratory
9 * University of Saskatchewan
10 * Saskatoon, Saskatchewan, CANADA
11 * eric@skatter.usask.ca
12 *
13 *  $Id$
14 */
15
16/*  bsp.h
17 *
18 *  COPYRIGHT (c) 1989-1999.
19 *  On-Line Applications Research Corporation (OAR).
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.rtems.com/license/LICENSE.
24 */
25
26#ifndef _BSP_H
27#define _BSP_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include <bspopts.h>
34
35#include <rtems.h>
36#include <rtems/console.h>
37#include <rtems/iosupp.h>
38#include <rtems/clockdrv.h>
39
40/*
41 *  confdefs.h overrides for this BSP:
42 *   - termios serial ports (defaults to 1)
43 *   - Interrupt stack space is not minimum if defined.
44 */
45
46/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
47#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
48
49/*
50 * Network driver configuration
51 */
52struct rtems_bsdnet_ifconfig;
53extern int rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
54#define RTEMS_BSP_NETWORK_DRIVER_NAME   "scc1"
55#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_scc1_driver_attach
56
57/*
58 *  Simple spin delay in microsecond units for device drivers.
59 *  This is very dependent on the clock speed of the target.
60 */
61
62#define rtems_bsp_delay( microseconds ) \
63  { register uint32_t         _delay=(microseconds); \
64    register uint32_t         _tmp=123; \
65    asm volatile( "0: \
66                     nbcd      %0 ; \
67                     nbcd      %0 ; \
68                     dbf       %1,0b" \
69                  : "=d" (_tmp), "=d" (_delay) \
70                  : "0"  (_tmp), "1"  (_delay) ); \
71  }
72
73/* Constants */
74
75/* Structures */
76
77/*
78 *  Device Driver Table Entries
79 */
80
81/*
82 * NOTE: Use the standard Console driver entry
83 */
84
85/*
86 * NOTE: Use the standard Clock driver entry
87 */
88
89/* miscellaneous stuff assumed to exist */
90
91extern rtems_configuration_table BSP_Configuration;
92
93extern m68k_isr_entry M68Kvec[];   /* vector table address */
94
95/* functions */
96
97void bsp_cleanup( void );
98
99void M360ExecuteRISC( uint16_t         command );
100void *M360AllocateBufferDescriptors( int count );
101void *M360AllocateRiscTimers( int count );
102extern char M360DefaultWatchdogFeeder;
103
104m68k_isr_entry set_vector(
105  rtems_isr_entry     handler,
106  rtems_vector_number vector,
107  int                 type
108);
109
110/*
111 * Values assigned by link editor
112 */
113extern char _RamBase[];
114extern char _HeapSize[];
115
116/*
117 * Definitions for Atlas Computer Equipment Inc. High Speed Bridge (HSB)
118 */
119#define ATLASHSB_ESR    0x20010000L
120#define ATLASHSB_USICR  0x20010001L
121#define ATLASHSB_DSRR   0x20010002L
122#define ATLASHSB_LED4   0x20010004L
123#define ATLASHSB_ROM_U6 0xFF080000L     /* U6 flash ROM socket */
124
125#ifdef __cplusplus
126}
127#endif
128
129#endif
130/* end of include file */
Note: See TracBrowser for help on using the repository browser.