blob: 51d25e23c7fbbd7c1f78eb139627a54690a92c5a [file] [log] [blame]
/***************************************************************************
* Copyright (c) 1999-2011, Broadcom Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Module Description:
* DO NOT EDIT THIS FILE DIRECTLY
*
* This module was generated magically with RDB from a source description
* file. You must edit the source file for changes to be made to this file.
*
*
* Date: Generated on Mon Sep 19 21:36:57 2011
* MD5 Checksum e020a976c1177b900eff0f3d00f22e40
*
* Compiled with: RDB Utility combo_header.pl
* RDB Parser 3.0
* unknown unknown
* Perl Interpreter 5.008008
* Operating System linux
*
* Revision History:
*
* $brcm_Log: /magnum/basemodules/chp/7358/rdb/a0/bchp_timer.h $
*
* Hydra_Software_Devel/3 9/20/11 12:22p pntruong
* SW7358-127: Added a1 and synced with central rdb.
*
***************************************************************************/
#ifndef BCHP_TIMER_H__
#define BCHP_TIMER_H__
/***************************************************************************
*TIMER - Watchdog & Programmable Timers
***************************************************************************/
#define BCHP_TIMER_TIMER_IS 0x00406680 /* TIMER INTERRUPT STATUS REGISTER */
#define BCHP_TIMER_TIMER_IE0 0x00406684 /* TIMER CPU INTERRUPT ENABLE REGISTER */
#define BCHP_TIMER_TIMER0_CTRL 0x00406688 /* TIMER0 CONTROL REGISTER */
#define BCHP_TIMER_TIMER1_CTRL 0x0040668c /* TIMER1 CONTROL REGISTER */
#define BCHP_TIMER_TIMER2_CTRL 0x00406690 /* TIMER2 CONTROL REGISTER */
#define BCHP_TIMER_TIMER3_CTRL 0x00406694 /* TIMER3 CONTROL REGISTER */
#define BCHP_TIMER_TIMER0_STAT 0x00406698 /* TIMER0 STATUS REGISTER */
#define BCHP_TIMER_TIMER1_STAT 0x0040669c /* TIMER1 STATUS REGISTER */
#define BCHP_TIMER_TIMER2_STAT 0x004066a0 /* TIMER2 STATUS REGISTER */
#define BCHP_TIMER_TIMER3_STAT 0x004066a4 /* TIMER3 STATUS REGISTER */
#define BCHP_TIMER_WDTIMEOUT 0x004066a8 /* WATCHDOG TIMEOUT REGISTER */
#define BCHP_TIMER_WDCMD 0x004066ac /* WATCHDOG COMMAND REGISTER */
#define BCHP_TIMER_WDCHIPRST_CNT 0x004066b0 /* WATCHDOG CHIP RESET COUNT REGISTER */
#define BCHP_TIMER_WDCRS 0x004066b4 /* WATCHDOG CHIP RESET STATUS REGISTER */
#define BCHP_TIMER_TIMER_IE1 0x004066b8 /* TIMER PCI INTERRUPT ENABLE REGISTER */
#define BCHP_TIMER_WDCTRL 0x004066bc /* WATCHDOG CONTROL REGISTER */
/***************************************************************************
*TIMER_IS - TIMER INTERRUPT STATUS REGISTER
***************************************************************************/
/* TIMER :: TIMER_IS :: reserved0 [31:05] */
#define BCHP_TIMER_TIMER_IS_reserved0_MASK 0xffffffe0
#define BCHP_TIMER_TIMER_IS_reserved0_SHIFT 5
/* TIMER :: TIMER_IS :: WDINT [04:04] */
#define BCHP_TIMER_TIMER_IS_WDINT_MASK 0x00000010
#define BCHP_TIMER_TIMER_IS_WDINT_SHIFT 4
#define BCHP_TIMER_TIMER_IS_WDINT_DEFAULT 0
/* TIMER :: TIMER_IS :: TMR3TO [03:03] */
#define BCHP_TIMER_TIMER_IS_TMR3TO_MASK 0x00000008
#define BCHP_TIMER_TIMER_IS_TMR3TO_SHIFT 3
#define BCHP_TIMER_TIMER_IS_TMR3TO_DEFAULT 0
/* TIMER :: TIMER_IS :: TMR2TO [02:02] */
#define BCHP_TIMER_TIMER_IS_TMR2TO_MASK 0x00000004
#define BCHP_TIMER_TIMER_IS_TMR2TO_SHIFT 2
#define BCHP_TIMER_TIMER_IS_TMR2TO_DEFAULT 0
/* TIMER :: TIMER_IS :: TMR1TO [01:01] */
#define BCHP_TIMER_TIMER_IS_TMR1TO_MASK 0x00000002
#define BCHP_TIMER_TIMER_IS_TMR1TO_SHIFT 1
#define BCHP_TIMER_TIMER_IS_TMR1TO_DEFAULT 0
/* TIMER :: TIMER_IS :: TMR0TO [00:00] */
#define BCHP_TIMER_TIMER_IS_TMR0TO_MASK 0x00000001
#define BCHP_TIMER_TIMER_IS_TMR0TO_SHIFT 0
#define BCHP_TIMER_TIMER_IS_TMR0TO_DEFAULT 0
/***************************************************************************
*TIMER_IE0 - TIMER CPU INTERRUPT ENABLE REGISTER
***************************************************************************/
/* TIMER :: TIMER_IE0 :: reserved0 [31:05] */
#define BCHP_TIMER_TIMER_IE0_reserved0_MASK 0xffffffe0
#define BCHP_TIMER_TIMER_IE0_reserved0_SHIFT 5
/* TIMER :: TIMER_IE0 :: WDINTMASK [04:04] */
#define BCHP_TIMER_TIMER_IE0_WDINTMASK_MASK 0x00000010
#define BCHP_TIMER_TIMER_IE0_WDINTMASK_SHIFT 4
#define BCHP_TIMER_TIMER_IE0_WDINTMASK_DEFAULT 0
/* TIMER :: TIMER_IE0 :: TMR3TO [03:03] */
#define BCHP_TIMER_TIMER_IE0_TMR3TO_MASK 0x00000008
#define BCHP_TIMER_TIMER_IE0_TMR3TO_SHIFT 3
#define BCHP_TIMER_TIMER_IE0_TMR3TO_DEFAULT 0
/* TIMER :: TIMER_IE0 :: TMR2TO [02:02] */
#define BCHP_TIMER_TIMER_IE0_TMR2TO_MASK 0x00000004
#define BCHP_TIMER_TIMER_IE0_TMR2TO_SHIFT 2
#define BCHP_TIMER_TIMER_IE0_TMR2TO_DEFAULT 0
/* TIMER :: TIMER_IE0 :: TMR1TO [01:01] */
#define BCHP_TIMER_TIMER_IE0_TMR1TO_MASK 0x00000002
#define BCHP_TIMER_TIMER_IE0_TMR1TO_SHIFT 1
#define BCHP_TIMER_TIMER_IE0_TMR1TO_DEFAULT 0
/* TIMER :: TIMER_IE0 :: TMR0TO [00:00] */
#define BCHP_TIMER_TIMER_IE0_TMR0TO_MASK 0x00000001
#define BCHP_TIMER_TIMER_IE0_TMR0TO_SHIFT 0
#define BCHP_TIMER_TIMER_IE0_TMR0TO_DEFAULT 0
/***************************************************************************
*TIMER0_CTRL - TIMER0 CONTROL REGISTER
***************************************************************************/
/* TIMER :: TIMER0_CTRL :: ENA [31:31] */
#define BCHP_TIMER_TIMER0_CTRL_ENA_MASK 0x80000000
#define BCHP_TIMER_TIMER0_CTRL_ENA_SHIFT 31
#define BCHP_TIMER_TIMER0_CTRL_ENA_DEFAULT 0
/* TIMER :: TIMER0_CTRL :: MODE [30:30] */
#define BCHP_TIMER_TIMER0_CTRL_MODE_MASK 0x40000000
#define BCHP_TIMER_TIMER0_CTRL_MODE_SHIFT 30
#define BCHP_TIMER_TIMER0_CTRL_MODE_DEFAULT 0
/* TIMER :: TIMER0_CTRL :: TIMEOUT_VAL [29:00] */
#define BCHP_TIMER_TIMER0_CTRL_TIMEOUT_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER0_CTRL_TIMEOUT_VAL_SHIFT 0
#define BCHP_TIMER_TIMER0_CTRL_TIMEOUT_VAL_DEFAULT 0
/***************************************************************************
*TIMER1_CTRL - TIMER1 CONTROL REGISTER
***************************************************************************/
/* TIMER :: TIMER1_CTRL :: ENA [31:31] */
#define BCHP_TIMER_TIMER1_CTRL_ENA_MASK 0x80000000
#define BCHP_TIMER_TIMER1_CTRL_ENA_SHIFT 31
#define BCHP_TIMER_TIMER1_CTRL_ENA_DEFAULT 0
/* TIMER :: TIMER1_CTRL :: MODE [30:30] */
#define BCHP_TIMER_TIMER1_CTRL_MODE_MASK 0x40000000
#define BCHP_TIMER_TIMER1_CTRL_MODE_SHIFT 30
#define BCHP_TIMER_TIMER1_CTRL_MODE_DEFAULT 0
/* TIMER :: TIMER1_CTRL :: TIMEOUT_VAL [29:00] */
#define BCHP_TIMER_TIMER1_CTRL_TIMEOUT_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER1_CTRL_TIMEOUT_VAL_SHIFT 0
#define BCHP_TIMER_TIMER1_CTRL_TIMEOUT_VAL_DEFAULT 0
/***************************************************************************
*TIMER2_CTRL - TIMER2 CONTROL REGISTER
***************************************************************************/
/* TIMER :: TIMER2_CTRL :: ENA [31:31] */
#define BCHP_TIMER_TIMER2_CTRL_ENA_MASK 0x80000000
#define BCHP_TIMER_TIMER2_CTRL_ENA_SHIFT 31
#define BCHP_TIMER_TIMER2_CTRL_ENA_DEFAULT 0
/* TIMER :: TIMER2_CTRL :: MODE [30:30] */
#define BCHP_TIMER_TIMER2_CTRL_MODE_MASK 0x40000000
#define BCHP_TIMER_TIMER2_CTRL_MODE_SHIFT 30
#define BCHP_TIMER_TIMER2_CTRL_MODE_DEFAULT 0
/* TIMER :: TIMER2_CTRL :: TIMEOUT_VAL [29:00] */
#define BCHP_TIMER_TIMER2_CTRL_TIMEOUT_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER2_CTRL_TIMEOUT_VAL_SHIFT 0
#define BCHP_TIMER_TIMER2_CTRL_TIMEOUT_VAL_DEFAULT 0
/***************************************************************************
*TIMER3_CTRL - TIMER3 CONTROL REGISTER
***************************************************************************/
/* TIMER :: TIMER3_CTRL :: ENA [31:31] */
#define BCHP_TIMER_TIMER3_CTRL_ENA_MASK 0x80000000
#define BCHP_TIMER_TIMER3_CTRL_ENA_SHIFT 31
#define BCHP_TIMER_TIMER3_CTRL_ENA_DEFAULT 0
/* TIMER :: TIMER3_CTRL :: MODE [30:30] */
#define BCHP_TIMER_TIMER3_CTRL_MODE_MASK 0x40000000
#define BCHP_TIMER_TIMER3_CTRL_MODE_SHIFT 30
#define BCHP_TIMER_TIMER3_CTRL_MODE_DEFAULT 0
/* TIMER :: TIMER3_CTRL :: TIMEOUT_VAL [29:00] */
#define BCHP_TIMER_TIMER3_CTRL_TIMEOUT_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER3_CTRL_TIMEOUT_VAL_SHIFT 0
#define BCHP_TIMER_TIMER3_CTRL_TIMEOUT_VAL_DEFAULT 0
/***************************************************************************
*TIMER0_STAT - TIMER0 STATUS REGISTER
***************************************************************************/
/* TIMER :: TIMER0_STAT :: SPARE [31:30] */
#define BCHP_TIMER_TIMER0_STAT_SPARE_MASK 0xc0000000
#define BCHP_TIMER_TIMER0_STAT_SPARE_SHIFT 30
/* TIMER :: TIMER0_STAT :: COUNTER_VAL [29:00] */
#define BCHP_TIMER_TIMER0_STAT_COUNTER_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER0_STAT_COUNTER_VAL_SHIFT 0
#define BCHP_TIMER_TIMER0_STAT_COUNTER_VAL_DEFAULT 0
/***************************************************************************
*TIMER1_STAT - TIMER1 STATUS REGISTER
***************************************************************************/
/* TIMER :: TIMER1_STAT :: SPARE [31:30] */
#define BCHP_TIMER_TIMER1_STAT_SPARE_MASK 0xc0000000
#define BCHP_TIMER_TIMER1_STAT_SPARE_SHIFT 30
/* TIMER :: TIMER1_STAT :: COUNTER_VAL [29:00] */
#define BCHP_TIMER_TIMER1_STAT_COUNTER_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER1_STAT_COUNTER_VAL_SHIFT 0
#define BCHP_TIMER_TIMER1_STAT_COUNTER_VAL_DEFAULT 0
/***************************************************************************
*TIMER2_STAT - TIMER2 STATUS REGISTER
***************************************************************************/
/* TIMER :: TIMER2_STAT :: SPARE [31:30] */
#define BCHP_TIMER_TIMER2_STAT_SPARE_MASK 0xc0000000
#define BCHP_TIMER_TIMER2_STAT_SPARE_SHIFT 30
/* TIMER :: TIMER2_STAT :: COUNTER_VAL [29:00] */
#define BCHP_TIMER_TIMER2_STAT_COUNTER_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER2_STAT_COUNTER_VAL_SHIFT 0
#define BCHP_TIMER_TIMER2_STAT_COUNTER_VAL_DEFAULT 0
/***************************************************************************
*TIMER3_STAT - TIMER3 STATUS REGISTER
***************************************************************************/
/* TIMER :: TIMER3_STAT :: SPARE [31:30] */
#define BCHP_TIMER_TIMER3_STAT_SPARE_MASK 0xc0000000
#define BCHP_TIMER_TIMER3_STAT_SPARE_SHIFT 30
/* TIMER :: TIMER3_STAT :: COUNTER_VAL [29:00] */
#define BCHP_TIMER_TIMER3_STAT_COUNTER_VAL_MASK 0x3fffffff
#define BCHP_TIMER_TIMER3_STAT_COUNTER_VAL_SHIFT 0
#define BCHP_TIMER_TIMER3_STAT_COUNTER_VAL_DEFAULT 0
/***************************************************************************
*WDTIMEOUT - WATCHDOG TIMEOUT REGISTER
***************************************************************************/
/* TIMER :: WDTIMEOUT :: WDTIMEOUT_VAL [31:00] */
#define BCHP_TIMER_WDTIMEOUT_WDTIMEOUT_VAL_MASK 0xffffffff
#define BCHP_TIMER_WDTIMEOUT_WDTIMEOUT_VAL_SHIFT 0
#define BCHP_TIMER_WDTIMEOUT_WDTIMEOUT_VAL_DEFAULT 0
/***************************************************************************
*WDCMD - WATCHDOG COMMAND REGISTER
***************************************************************************/
/* TIMER :: WDCMD :: WDCMD [31:00] */
#define BCHP_TIMER_WDCMD_WDCMD_MASK 0xffffffff
#define BCHP_TIMER_WDCMD_WDCMD_SHIFT 0
#define BCHP_TIMER_WDCMD_WDCMD_DEFAULT 0
/***************************************************************************
*WDCHIPRST_CNT - WATCHDOG CHIP RESET COUNT REGISTER
***************************************************************************/
/* TIMER :: WDCHIPRST_CNT :: reserved0 [31:26] */
#define BCHP_TIMER_WDCHIPRST_CNT_reserved0_MASK 0xfc000000
#define BCHP_TIMER_WDCHIPRST_CNT_reserved0_SHIFT 26
/* TIMER :: WDCHIPRST_CNT :: WDCHIPRST_CNT [25:00] */
#define BCHP_TIMER_WDCHIPRST_CNT_WDCHIPRST_CNT_MASK 0x03ffffff
#define BCHP_TIMER_WDCHIPRST_CNT_WDCHIPRST_CNT_SHIFT 0
#define BCHP_TIMER_WDCHIPRST_CNT_WDCHIPRST_CNT_DEFAULT 50331647
/***************************************************************************
*WDCRS - WATCHDOG CHIP RESET STATUS REGISTER
***************************************************************************/
/* TIMER :: WDCRS :: reserved0 [31:01] */
#define BCHP_TIMER_WDCRS_reserved0_MASK 0xfffffffe
#define BCHP_TIMER_WDCRS_reserved0_SHIFT 1
/* TIMER :: WDCRS :: WDCR [00:00] */
#define BCHP_TIMER_WDCRS_WDCR_MASK 0x00000001
#define BCHP_TIMER_WDCRS_WDCR_SHIFT 0
#define BCHP_TIMER_WDCRS_WDCR_DEFAULT 0
/***************************************************************************
*TIMER_IE1 - TIMER PCI INTERRUPT ENABLE REGISTER
***************************************************************************/
/* TIMER :: TIMER_IE1 :: reserved0 [31:05] */
#define BCHP_TIMER_TIMER_IE1_reserved0_MASK 0xffffffe0
#define BCHP_TIMER_TIMER_IE1_reserved0_SHIFT 5
/* TIMER :: TIMER_IE1 :: WDINTMASK [04:04] */
#define BCHP_TIMER_TIMER_IE1_WDINTMASK_MASK 0x00000010
#define BCHP_TIMER_TIMER_IE1_WDINTMASK_SHIFT 4
#define BCHP_TIMER_TIMER_IE1_WDINTMASK_DEFAULT 0
/* TIMER :: TIMER_IE1 :: TMR3TO [03:03] */
#define BCHP_TIMER_TIMER_IE1_TMR3TO_MASK 0x00000008
#define BCHP_TIMER_TIMER_IE1_TMR3TO_SHIFT 3
#define BCHP_TIMER_TIMER_IE1_TMR3TO_DEFAULT 0
/* TIMER :: TIMER_IE1 :: TMR2TO [02:02] */
#define BCHP_TIMER_TIMER_IE1_TMR2TO_MASK 0x00000004
#define BCHP_TIMER_TIMER_IE1_TMR2TO_SHIFT 2
#define BCHP_TIMER_TIMER_IE1_TMR2TO_DEFAULT 0
/* TIMER :: TIMER_IE1 :: TMR1TO [01:01] */
#define BCHP_TIMER_TIMER_IE1_TMR1TO_MASK 0x00000002
#define BCHP_TIMER_TIMER_IE1_TMR1TO_SHIFT 1
#define BCHP_TIMER_TIMER_IE1_TMR1TO_DEFAULT 0
/* TIMER :: TIMER_IE1 :: TMR0TO [00:00] */
#define BCHP_TIMER_TIMER_IE1_TMR0TO_MASK 0x00000001
#define BCHP_TIMER_TIMER_IE1_TMR0TO_SHIFT 0
#define BCHP_TIMER_TIMER_IE1_TMR0TO_DEFAULT 0
/***************************************************************************
*WDCTRL - WATCHDOG CONTROL REGISTER
***************************************************************************/
/* TIMER :: WDCTRL :: reserved0 [31:03] */
#define BCHP_TIMER_WDCTRL_reserved0_MASK 0xfffffff8
#define BCHP_TIMER_WDCTRL_reserved0_SHIFT 3
/* TIMER :: WDCTRL :: WD_COUNT_MODE [02:02] */
#define BCHP_TIMER_WDCTRL_WD_COUNT_MODE_MASK 0x00000004
#define BCHP_TIMER_WDCTRL_WD_COUNT_MODE_SHIFT 2
#define BCHP_TIMER_WDCTRL_WD_COUNT_MODE_DEFAULT 0
/* TIMER :: WDCTRL :: WD_EVENT_MODE [01:00] */
#define BCHP_TIMER_WDCTRL_WD_EVENT_MODE_MASK 0x00000003
#define BCHP_TIMER_WDCTRL_WD_EVENT_MODE_SHIFT 0
#define BCHP_TIMER_WDCTRL_WD_EVENT_MODE_DEFAULT 0
#endif /* #ifndef BCHP_TIMER_H__ */
/* End of File */