source: rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h @ 21ee1c8

4.115
Last change on this file since 21ee1c8 was 21ee1c8, checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/14 at 15:57:44

m68k/gen68360: Fix warnings

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