source: rtems/c/src/lib/libbsp/mips/csb350/include/bsp.h @ cba119c9

4.104.114.84.95
Last change on this file since cba119c9 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.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains some definitions specific to the
4 *  Cogent CSB350 Board.
5 *
6 *  COPYRIGHT (c) 1989-2000.
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.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef _BSP_H
17#define _BSP_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <bspopts.h>
24
25#include <rtems.h>
26#include <rtems/iosupp.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29#include <libcpu/au1x00.h>
30
31/*
32 *  Define the time limits for RTEMS Test Suite test durations.
33 *  Long test and short test duration limits are provided.  These
34 *  values are in seconds and need to be converted to ticks for the
35 *  application.
36 *
37 */
38
39#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
40#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
41
42/*
43 *  Define the interrupt mechanism for Time Test 27
44 */
45int assert_sw_irw(uint32_t irqnum);
46int negate_sw_irw(uint32_t irqnum);
47
48#define MUST_WAIT_FOR_INTERRUPT 0
49
50#define Install_tm27_vector( handler ) \
51   (void) set_vector(handler, AU1X00_IRQ_SW0, 1);
52
53#define Cause_tm27_intr() \
54  do { \
55     assert_sw_irq(0); \
56  } while(0)
57
58#define Clear_tm27_intr() \
59  do { \
60     negate_sw_irq(0); \
61  } while(0)
62
63#if 0
64#define Lower_tm27_intr() \
65  mips_enable_in_interrupt_mask( 0xff01 );
66#else
67#define Lower_tm27_intr() \
68  do { \
69     continue;\
70  } while(0)
71#endif
72
73/* Constants */
74
75/* miscellaneous stuff assumed to exist */
76
77extern rtems_configuration_table BSP_Configuration;
78
79/*
80 *  Device Driver Table Entries
81 */
82
83/*
84 * NOTE: Use the standard Console driver entry
85 */
86 
87/*
88 * NOTE: Use the standard Clock driver entry
89 */
90
91/*
92 * Network driver configuration
93 */
94extern struct rtems_bsdnet_ifconfig *config;
95
96int rtems_au1x00_emac_attach(struct rtems_bsdnet_ifconfig *config,
97                             int attaching);
98#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
99#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_au1x00_emac_attach
100
101/* functions */
102
103void bsp_cleanup( void );
104
105rtems_isr_entry set_vector(
106  rtems_isr_entry, rtems_vector_number, int );
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif
113/* end of include file */
Note: See TracBrowser for help on using the repository browser.