1 |
1254 |
phoenix |
#ifndef CYGONCE_HAL_CMA230_H
|
2 |
|
|
#define CYGONCE_HAL_CMA230_H
|
3 |
|
|
|
4 |
|
|
/*=============================================================================
|
5 |
|
|
//
|
6 |
|
|
// hal_cma230.h
|
7 |
|
|
//
|
8 |
|
|
// HAL Support for Kernel Diagnostic Routines
|
9 |
|
|
//
|
10 |
|
|
//=============================================================================
|
11 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
12 |
|
|
// -------------------------------------------
|
13 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
14 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
15 |
|
|
//
|
16 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
17 |
|
|
// the terms of the GNU General Public License as published by the Free
|
18 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
19 |
|
|
//
|
20 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
21 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
22 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
23 |
|
|
// for more details.
|
24 |
|
|
//
|
25 |
|
|
// You should have received a copy of the GNU General Public License along
|
26 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
27 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
28 |
|
|
//
|
29 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
30 |
|
|
// or inline functions from this file, or you compile this file and link it
|
31 |
|
|
// with other works to produce a work based on this file, this file does not
|
32 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
33 |
|
|
// License. However the source code for this file must still be made available
|
34 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
35 |
|
|
//
|
36 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
37 |
|
|
// this file might be covered by the GNU General Public License.
|
38 |
|
|
//
|
39 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
40 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
41 |
|
|
// -------------------------------------------
|
42 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
43 |
|
|
//=============================================================================
|
44 |
|
|
//#####DESCRIPTIONBEGIN####
|
45 |
|
|
//
|
46 |
|
|
// Author(s): gthomas
|
47 |
|
|
// Contributors: gthomas
|
48 |
|
|
// Date: 1999-04-19
|
49 |
|
|
// Purpose: Cogent CMA230 hardware description
|
50 |
|
|
// Description:
|
51 |
|
|
// Usage: #include <cyg/hal/hal_cma230.h>
|
52 |
|
|
//
|
53 |
|
|
//####DESCRIPTIONEND####
|
54 |
|
|
//
|
55 |
|
|
//===========================================================================*/
|
56 |
|
|
|
57 |
|
|
// Note: these defintions match the documentation, thus no attempt is made
|
58 |
|
|
// to sanitise (mangle) the names. Also, care should be taken to keep this
|
59 |
|
|
// clean for use in assembly code (no "C" constructs).
|
60 |
|
|
|
61 |
|
|
#define CMA230_ISR 0x0F600000 // Interrupt source register - Read only
|
62 |
|
|
#define CMA230_CLR 0x0F600008 // Clear interrupt source - Write only
|
63 |
|
|
#define CMA230_IMRr 0x0F600010 // Interrupt mask register - Read only
|
64 |
|
|
#define CMA230_IMRw 0x0F600018 // Interrupt mask register - Write only
|
65 |
|
|
#define CMA230_ACK1 0x0F600020 // Interrupt acknowledge slot 1 - Read only
|
66 |
|
|
#define CMA230_ACK2 0x0F600028 // Interrupt acknowledge slot 2 - Read only
|
67 |
|
|
#define CMA230_ACK3 0x0F600030 // Interrupt acknowledge slot 3 - Read only
|
68 |
|
|
|
69 |
|
|
#define CMA230_TC_COUNT 0x0F700020 // Timer value - 16 bits - Read only
|
70 |
|
|
#define CMA230_TC_PRELOAD 0x0F700028 // Timer preload - 16 bits - Write only
|
71 |
|
|
#define CMA230_TC_CLEAR 0x0F700030 // Timer clear - Write only
|
72 |
|
|
#define CMA230_TC_ENABLE 0x0F700038 // Timer enable/start - Write only
|
73 |
|
|
|
74 |
|
|
// Motherboard definitions
|
75 |
|
|
|
76 |
|
|
#define CMA101_DUARTB 0x0E900000 // Base address
|
77 |
|
|
#define CMA101_DUARTB_RHR 0x0E900000 // Receive holding register
|
78 |
|
|
#define CMA101_DUARTB_THR 0x0E900000 // Transmit holding register
|
79 |
|
|
#define CMA101_DUARTB_LBR 0x0E900000 // Low byte of baud rate
|
80 |
|
|
#define CMA101_DUARTB_IER 0x0E900008 // Interrupt enable
|
81 |
|
|
#define CMA101_DUARTB_HBR 0x0E900008 // High byte of baud rate
|
82 |
|
|
#define CMA101_DUARTB_ISR 0x0E900010 // Interrupt status
|
83 |
|
|
#define CMA101_DUARTB_FCTL 0x0E900010 // FIFO control
|
84 |
|
|
#define CMA101_DUARTB_LCTL 0x0E900018 // Line control
|
85 |
|
|
#define CMA101_DUARTB_MCTL 0x0E900020 // Modem control
|
86 |
|
|
#define CMA101_DUARTB_LSR 0x0E900028 // Line status
|
87 |
|
|
#define CMA101_DUARTB_MSR 0x0E900030 // Modem status
|
88 |
|
|
#define CMA101_DUARTB_SCR 0x0E900038 // Scratch
|
89 |
|
|
|
90 |
|
|
#define CMA101_DUARTA 0x0E900040 // Base address
|
91 |
|
|
#define CMA101_DUARTA_RHR 0x0E900040 // Receive holding register
|
92 |
|
|
#define CMA101_DUARTA_THR 0x0E900040 // Transmit holding register
|
93 |
|
|
#define CMA101_DUARTA_LBR 0x0E900040 // Low byte of baud rate
|
94 |
|
|
#define CMA101_DUARTA_IER 0x0E900048 // Interrupt enable
|
95 |
|
|
#define CMA101_DUARTA_HBR 0x0E900048 // High byte of baud rate
|
96 |
|
|
#define CMA101_DUARTA_ISR 0x0E900050 // Interrupt status
|
97 |
|
|
#define CMA101_DUARTA_FCTL 0x0E900050 // FIFO control
|
98 |
|
|
#define CMA101_DUARTA_LCTL 0x0E900058 // Line control
|
99 |
|
|
#define CMA101_DUARTA_MCTL 0x0E900060 // Modem control
|
100 |
|
|
#define CMA101_DUARTA_LSR 0x0E900068 // Line status
|
101 |
|
|
#define CMA101_DUARTA_MSR 0x0E900070 // Modem status
|
102 |
|
|
#define CMA101_DUARTA_SCR 0x0E900078 // Scratch
|
103 |
|
|
|
104 |
|
|
/*---------------------------------------------------------------------------*/
|
105 |
|
|
/* end of hal_cma230.h */
|
106 |
|
|
#endif /* CYGONCE_HAL_CMA230_H */
|