RTEMS: bsps/sh/gensh2/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
9/*
10 * generic sh2
11 *
12 * This include file contains all board IO definitions.
13 */
14
15/*
16 * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
17 *
18 * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 *
25 * COPYRIGHT (c) 1998.
26 * On-Line Applications Research Corporation (OAR).
27 *
28 * The license and distribution terms for this file may be
29 * found in the file LICENSE in this distribution or at
30 * http://www.rtems.org/license/LICENSE.
31 *
32 * Minor adaptations for sh2 by:
33 * John M. Mills (jmills@tga.com)
34 * TGA Technologies, Inc.
35 * 100 Pinnacle Way, Suite 140
36 * Norcross, GA 30071 U.S.A.
37 *
38 * This modified file may be copied and distributed in accordance
39 * the above-referenced license. It is provided for critique and
40 * developmental purposes without any warranty nor representation
41 * by the authors or by TGA Technologies.
42 */
43
44#ifndef LIBBSP_SH_GENSH2_BSP_H
45#define LIBBSP_SH_GENSH2_BSP_H
46
57#include <rtems.h>
58
59#include <bspopts.h>
60#include <bsp/default-initial-extension.h>
61
62#include <termios.h> /* for tcflag_t */
63
64#include <sh/sci.h>
65
66#ifdef __cplusplus
67extern "C" {
68#endif
69
70#if 1
71/* FIXME:
72 * These definitions will be no longer necessary if the old
73 * implementation of SCI driver will be droped
74 */
75#define BSP_CONSOLE_DEVNAME "/dev/sci0"
76#define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0)
77#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
78#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
79#endif
80
81/* Constants */
82
83/*
84 * BSP methods that cross file boundaries.
85 */
86void bsp_hw_init(void);
87
88int _sci_get_brparms(
89 unsigned int spd,
90 unsigned char *smr,
91 unsigned char *brr
92);
93
94#ifdef __cplusplus
95}
96#endif
97
100#endif
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems.h