* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: constants.h
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* 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
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
#define ALREADY_INCLUDED_CONSTANTS_DOT_H
#define PAGE_4K_MASK 0xfff
#define PAGE_8K_MASK 0x1fff
#define PAGE_64K_MASK 0xffff
#define PAGE_512K_MASK 0x7ffff
#define PAGE_4M_MASK 0x3fffff
#define ALIGN_PAGE_4K .align PAGE_4K_MASK+1
#define ALIGN_PAGE_8K .align PAGE_8K_MASK+1
#define ALIGN_PAGE_64K .align PAGE_64K_MASK+1
#define ALIGN_PAGE_512K .align PAGE_512K_MASK+1
#define ALIGN_PAGE_4M .align PAGE_4M_MASK+1
#define ICACHE_LINE_SIZE_IN_BYTES 32
#define DCACHE_LINE_SIZE_IN_BYTES 32
#define PCACHE_LINE_SIZE_IN_BYTES 64
#define WCACHE_LINE_SIZE_IN_BYTES 64
#define ECACHE_LINE_SIZE_IN_BYTES_1M 64
#define ECACHE_LINE_SIZE_IN_BYTES_4M 256
#define ECACHE_LINE_SIZE_IN_BYTES_8M 512
! ASI field definitions
and alternate names
! PSTATE field definitions
! TSTATE field definitions
and initialization
! MMU
and TSB mappings
and definitions
:
! DCU_CONTROL_REGISTER field definitions
and initializations
#include "dcu_ctrl_reg.h"
! SAFARI field definitions
and initializations
#include "safari_config_reg.h"
#include "safari_port_id.h"
! ESTATE definitions
and initializations
! AFSR (Asynchronous Fault Status Register
) definitions
and initializations
! DISPATCH_CONTROL_REGISTER definitions
and initializations
#include "dispatch_ctrl_reg.h"
/* Add fields to the below list as needed. 2/24/94 lyoungs */
! TTE definitions
and switches
! TLB definitions
and constants
! ICACHE Diagnostic Access registers
' field definitions
#include "icache_instr.h"
#include "icache_snoop.h"
! DCACHE Diagnostic Access registers' field definitions
#include "dcache_snoop.h"
! WCACHE Diagnostic Access registers
' field definitions
#include "wcache_snoop.h"
! PCACHE Diagnostic Access registers' field definitions
#include "pcache_status_data.h"
#include "pcache_snoop.h"
#include "pcache_hist_tag.h"
#include "pcache_hist_data.h"
! ECACHE Diagnostic Access registers
' field definitions
#include "ecache_ctrl_reg.h"
! ASI_BRANCH_PREDICTION_ARRAY field definitions
! ASI_FDIV_SQRT_SEED field definitions
#include "fdiv_seed_tbl.h"
! ASR_PERF_CONTROL_REG field definitions
! ASR_PERF_COUNTER field definitions
! ASR_GRAPHIC_STATUS_REG field definitions
! TSB register definitions
#include "mcu_tim1_ctrl_reg.h"
#include "mcu_tim2_ctrl_reg.h"
#include "mcu_tim3_ctrl_reg.h"
#include "mcu_tim4_ctrl_reg.h"
#include "mcu_addr_dec_reg0.h"
#include "mcu_addr_dec_reg1.h"
#include "mcu_addr_dec_reg2.h"
#include "mcu_addr_dec_reg3.h"
#include "mcu_addr_ctrl_reg.h"
!Floating point status register
#include "tick_compare.h"
#include "stick_compare.h"
#include "intr_dispatch_status.h"
#include "intr_receive.h"
#include "bootbus_ctrl_reg.h"
! Poweron-sequence initialization
#include "poweron_init.h"
#define STALL_G(n) tn %icc, n
#define STALL2_G(n) sub %g0, n, %g0
#endif /* __CONSTANTS_H__*/