cvmx.h revision 215990
1210284Sjmallett/***********************license start***************
2215990Sjmallett * Copyright (c) 2003-2010  Cavium Networks (support@cavium.com). All rights
3215990Sjmallett * reserved.
4210284Sjmallett *
5210284Sjmallett *
6215990Sjmallett * Redistribution and use in source and binary forms, with or without
7215990Sjmallett * modification, are permitted provided that the following conditions are
8215990Sjmallett * met:
9210284Sjmallett *
10215990Sjmallett *   * Redistributions of source code must retain the above copyright
11215990Sjmallett *     notice, this list of conditions and the following disclaimer.
12210284Sjmallett *
13215990Sjmallett *   * Redistributions in binary form must reproduce the above
14215990Sjmallett *     copyright notice, this list of conditions and the following
15215990Sjmallett *     disclaimer in the documentation and/or other materials provided
16215990Sjmallett *     with the distribution.
17215990Sjmallett
18215990Sjmallett *   * Neither the name of Cavium Networks nor the names of
19215990Sjmallett *     its contributors may be used to endorse or promote products
20215990Sjmallett *     derived from this software without specific prior written
21215990Sjmallett *     permission.
22215990Sjmallett
23215990Sjmallett * This Software, including technical data, may be subject to U.S. export  control
24215990Sjmallett * laws, including the U.S. Export Administration Act and its  associated
25215990Sjmallett * regulations, and may be subject to export or import  regulations in other
26215990Sjmallett * countries.
27215990Sjmallett
28215990Sjmallett * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
29215990Sjmallett * AND WITH ALL FAULTS AND CAVIUM  NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
30215990Sjmallett * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
31215990Sjmallett * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
32215990Sjmallett * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
33215990Sjmallett * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
34215990Sjmallett * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
35215990Sjmallett * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
36215990Sjmallett * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE  RISK ARISING OUT OF USE OR
37215990Sjmallett * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
38210284Sjmallett ***********************license end**************************************/
39210284Sjmallett
40210284Sjmallett
41215990Sjmallett
42210284Sjmallett/**
43210284Sjmallett * @file
44210284Sjmallett *
45210284Sjmallett * Main Octeon executive header file (This should be the second header
46210284Sjmallett * file included by an application).
47210284Sjmallett *
48215990Sjmallett * <hr>$Revision: 49448 $<hr>
49210284Sjmallett*/
50210284Sjmallett#ifndef __CVMX_H__
51210284Sjmallett#define __CVMX_H__
52210284Sjmallett
53210284Sjmallett/* Control whether simple executive applications use 1-1 TLB mappings to access physical
54210284Sjmallett** memory addresses.  This must be disabled to allow large programs that use more than
55210284Sjmallett** the 0x10000000 - 0x20000000 virtual address range.
56210284Sjmallett*/
57210284Sjmallett#ifndef CVMX_USE_1_TO_1_TLB_MAPPINGS
58210284Sjmallett#define CVMX_USE_1_TO_1_TLB_MAPPINGS 1
59210284Sjmallett#endif
60210284Sjmallett
61210284Sjmallett#ifndef CVMX_ENABLE_PARAMETER_CHECKING
62210284Sjmallett#define CVMX_ENABLE_PARAMETER_CHECKING 1
63210284Sjmallett#endif
64210284Sjmallett
65210284Sjmallett#ifndef CVMX_ENABLE_DEBUG_PRINTS
66210284Sjmallett#define CVMX_ENABLE_DEBUG_PRINTS 1
67210284Sjmallett#endif
68210284Sjmallett
69210284Sjmallett#ifdef	__cplusplus
70210284Sjmallettextern "C" {
71210284Sjmallett#endif
72210284Sjmallett
73210284Sjmallett#include "cvmx-platform.h"
74210284Sjmallett#include "cvmx-access.h"
75210284Sjmallett#include "cvmx-address.h"
76210284Sjmallett#include "cvmx-asm.h"
77210284Sjmallett#include "cvmx-packet.h"
78210284Sjmallett#include "cvmx-warn.h"
79210284Sjmallett#include "cvmx-sysinfo.h"
80210284Sjmallett#include "octeon-model.h"
81210284Sjmallett#include "cvmx-csr.h"
82215990Sjmallett#include "octeon-feature.h"
83210284Sjmallett#include "cvmx-utils.h"
84215990Sjmallett#include "cvmx-clock.h"
85210284Sjmallett
86210284Sjmallett#if defined(__mips__) && !defined(CVMX_BUILD_FOR_LINUX_HOST)
87210284Sjmallett#include "cvmx-access-native.h"
88210284Sjmallett#endif
89210284Sjmallett
90210284Sjmallett#ifdef	__cplusplus
91210284Sjmallett}
92210284Sjmallett#endif
93210284Sjmallett
94210284Sjmallett#endif  /*  __CVMX_H__  */
95