3 Copyright 2002 Broadcom Corp. All Rights Reserved.
5 This program is free software; you can distribute it and/or modify it
6 under the terms of the GNU General Public License (Version 2) as
7 published by the Free Software Foundation.
9 This program is distributed in the hope it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
20 #ifndef __BCM6345_MAP_H
21 #define __BCM6345_MAP_H
25 #include "6345_intr.h"
27 typedef struct IntControl
{
31 #define USB_CLK_EN 0x0100
32 #define EMAC_CLK_EN 0x0080
33 #define UART_CLK_EN 0x0008
34 #define CPU_CLK_EN 0x0001
37 #define SOFT_RESET 0x00000001
43 #define EI_SENSE_SHFT 0
44 #define EI_STATUS_SHFT 4
45 #define EI_CLEAR_SHFT 8
46 #define EI_MASK_SHFT 12
47 #define EI_INSENS_SHFT 16
48 #define EI_LEVEL_SHFT 20
51 #define INTC_BASE 0xfffe0000
52 #define PERF ((volatile IntControl * const) INTC_BASE)
54 #define TIMR_BASE 0xfffe0200
55 typedef struct Timer
{
69 #define TIMERENABLE 0x80000000
70 #define RSTCNTCLR 0x40000000
74 uint32 WatchDogDefCount
;
76 /* Write 0xff00 0x00ff to Start timer
77 * Write 0xee00 0x00ee to Stop and re-load default count
78 * Read from this register returns current watch dog count
82 /* Number of 40-MHz ticks for WD Reset pulse to last */
86 #define TIMER ((volatile Timer * const) TIMR_BASE)
88 typedef struct UartChannel
{
91 #define BRGEN 0x80 /* Control register bit defs */
94 #define TXPARITYEN 0x08
95 #define TXPARITYEVEN 0x04
96 #define RXPARITYEN 0x02
97 #define RXPARITYEVEN 0x01
100 #define BITS6SYM 0x10
101 #define BITS7SYM 0x20
102 #define BITS8SYM 0x30
103 #define XMITBREAK 0x40
108 #define RSTTXFIFOS 0x80
109 #define RSTRXFIFOS 0x40
118 byte DeltaIPEdgeNoSense
;
119 byte DeltaIPConfig_Mask
;
123 #define TXUNDERR 0x0002
124 #define TXOVFERR 0x0004
125 #define TXFIFOEMT 0x0020
126 #define RXOVFERR 0x0080
127 #define RXFIFONE 0x0800
128 #define RXFRAMERR 0x1000
129 #define RXPARERR 0x2000
138 #define UART_BASE 0xfffe0300
139 #define UART ((volatile Uart * const) UART_BASE)
141 typedef struct GpioControl
{
155 #define GPIO_BASE 0xfffe0400
156 #define GPIO ((volatile GpioControl * const) GPIO_BASE)
158 #define GPIO_NUM_MAX_BITS_MASK 0x0f
159 #define GPIO_NUM_TO_MASK(X) (1 << ((X) & GPIO_NUM_MAX_BITS_MASK))
This page took 0.052876 seconds and 5 git commands to generate.