OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [fads/] [v2_0/] [include/] [hal_diag.h] - Blame information for rev 454

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_HAL_HAL_DIAG_H
2
#define CYGONCE_HAL_HAL_DIAG_H
3
 
4
//=============================================================================
5
//
6
//      hal_diag.h
7
//
8
//      HAL Support for Kernel Diagnostic Routines
9
//
10
//=============================================================================
11
//####UNSUPPORTEDBEGIN####
12
//
13
// -------------------------------------------
14
// This source file has been contributed to eCos/Red Hat. It may have been
15
// changed slightly to provide an interface consistent with those of other 
16
// files.
17
//
18
// The functionality and contents of this file is supplied "AS IS"
19
// without any form of support and will not necessarily be kept up
20
// to date by Red Hat.
21
//
22
// All inquiries about this file, or the functionality provided by it,
23
// should be directed to the 'ecos-discuss' mailing list (see
24
// http://sourceware.cygnus.com/ecos/intouch.html for details).
25
//
26
// Maintained by:  <Unmaintained>
27
// -------------------------------------------
28
//
29
//####UNSUPPORTEDEND####
30
//=============================================================================
31
//####ECOSGPLCOPYRIGHTBEGIN####
32
// -------------------------------------------
33
// This file is part of eCos, the Embedded Configurable Operating System.
34
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
35
//
36
// eCos is free software; you can redistribute it and/or modify it under
37
// the terms of the GNU General Public License as published by the Free
38
// Software Foundation; either version 2 or (at your option) any later version.
39
//
40
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
41
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
42
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
43
// for more details.
44
//
45
// You should have received a copy of the GNU General Public License along
46
// with eCos; if not, write to the Free Software Foundation, Inc.,
47
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
48
//
49
// As a special exception, if other files instantiate templates or use macros
50
// or inline functions from this file, or you compile this file and link it
51
// with other works to produce a work based on this file, this file does not
52
// by itself cause the resulting work to be covered by the GNU General Public
53
// License. However the source code for this file must still be made available
54
// in accordance with section (3) of the GNU General Public License.
55
//
56
// This exception does not invalidate any other reasons why a work based on
57
// this file might be covered by the GNU General Public License.
58
//
59
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
60
// at http://sources.redhat.com/ecos/ecos-license/
61
// -------------------------------------------
62
//####ECOSGPLCOPYRIGHTEND####
63
//=============================================================================
64
//#####DESCRIPTIONBEGIN####
65
//
66
// Author(s):   nickg
67
// Contributors:nickg
68
// Date:        1998-03-02
69
// Purpose:     HAL Support for Kernel Diagnostic Routines
70
// Description: Diagnostic routines for use during kernel development.
71
// Usage:       #include <cyg/hal/hal_diag.h>
72
//
73
//####DESCRIPTIONEND####
74
//
75
//=============================================================================
76
 
77
#include <pkgconf/hal.h>
78
 
79
#include <cyg/infra/cyg_type.h>
80
 
81
#if defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG)
82
 
83
#include <cyg/hal/hal_if.h>
84
#include <cyg/hal/quicc_smc2.h>
85
 
86
#define HAL_DIAG_INIT() hal_if_diag_init()
87
#define HAL_DIAG_WRITE_CHAR(_c_) hal_if_diag_write_char(_c_)
88
#define HAL_DIAG_READ_CHAR(_c_) hal_if_diag_read_char(&_c_)
89
 
90
#ifndef CYGPRI_CONSOLE_PROCS_HANDLED
91
# define HAL_PLF_DIAG_RAW_INIT() cyg_smc2_init(9600)
92
# define HAL_PLF_DIAG_RAW_WRITE_CHAR(_c_) cyg_smc2_putchar(_c_)
93
# define HAL_PLF_DIAG_RAW_READ_CHAR(_c_) (_c_) = cyg_smc2_getchar()
94
#endif
95
 
96
#else // everything by steam
97
 
98
//-----------------------------------------------------------------------------
99
// functions implemented in hal_diag.c
100
 
101
externC void hal_diag_init(void);
102
 
103
externC void hal_diag_write_char(char c);
104
 
105
externC void hal_diag_read_char(char *c);
106
 
107
//-----------------------------------------------------------------------------
108
 
109
#define HAL_DIAG_INIT() hal_diag_init()
110
 
111
#define HAL_DIAG_WRITE_CHAR(_c_) hal_diag_write_char(_c_)
112
 
113
#define HAL_DIAG_READ_CHAR(_c_) hal_diag_read_char(&_c_)
114
 
115
#endif // CYGSEM_HAL_VIRTUAL_VECTOR_DIAG
116
 
117
//-----------------------------------------------------------------------------
118
// end of hal_diag.h
119
#endif // CYGONCE_HAL_HAL_DIAG_H

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.