source: svn/trunk/newcon3bcm2_21bu/magnum/basemodules/std/bstd.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2006, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: bstd.h $
11 * $brcm_Revision: Hydra_Software_Devel/18 $
12 * $brcm_Date: 11/14/06 12:19p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/basemodules/std/bstd.h $
19 *
20 * Hydra_Software_Devel/18   11/14/06 12:19p erickson
21 * PR25893: reorder bstd_cfg.h include so it can be properly used
22 *
23 * Hydra_Software_Devel/17   9/15/05 7:03p erickson
24 * PR17148: moved include bchp.h below bstd_cfg.h because some projects
25 * define BCHP_CHIP in bstd_cfg.h
26 *
27 * Hydra_Software_Devel/16   9/15/05 10:54a erickson
28 * PR17148: moved BCHP checks into bchp.h
29 *
30 * Hydra_Software_Devel/15   9/14/05 2:15p erickson
31 * PR17148: added BCHP_VER check and removed deprecated BCHP_REV_XX check
32 *
33 * Hydra_Software_Devel/14   5/18/05 11:38a agin
34 * PR14720: B2, C1, C2 compilation support.
35 *
36 * Hydra_Software_Devel/14   5/18/05 11:38a agin
37 * PR14720: B2, C1, C2 compilation support.
38 *
39 * Hydra_Software_Devel/13   3/25/05 2:57p jasonh
40 * PR 14364: Added B2 and C1 revision detection.
41 *
42 * Hydra_Software_Devel/12   1/7/05 1:06p jasonh
43 * PR 13752: Removed reference to BCHP_FAMILY*
44 *
45 * Hydra_Software_Devel/11   12/30/04 2:42p hongtaoz
46 * PR13488: added C0 family rev define;
47 *
48 * Hydra_Software_Devel/10   8/17/04 3:14p aram
49 * PR11787: fixed a compile issue for C0
50 *
51 * Hydra_Software_Devel/9   8/17/04 4:15p shyam
52 * PR 12312 : Added define for B1 Rev of 7038
53 *
54 * Hydra_Software_Devel/8   5/24/04 8:03p jasonh
55 * PR 11189: Merge down from B0 to main-line
56 *
57 * Hydra_Software_Devel/Refsw_Devel_7038_B0/1   4/28/04 1:02p hongtaoz
58 * PR10566: added  support for 7038B0;
59 *
60 * Hydra_Software_Devel/7   4/15/04 12:17p erickson
61 * PR10566: Modified the #error messages to fix spelling mistake and be
62 * complete
63 *
64 * Hydra_Software_Devel/6   4/12/04 12:00p vsilyaev
65 * PR 10566: Added test  for standard defines
66 *
67 * Hydra_Software_Devel/4   4/4/03 3:16p marcusk
68 * Updated references of BSTD_XXX_ENDIAN to BSTD_ENDIAN_XXX
69 *
70 * Hydra_Software_Devel/2   3/10/03 2:43p vsilyaev
71 * Added bdbg.h header.
72 *
73 ***************************************************************************/
74#ifndef BSTD_H__
75#define BSTD_H__
76
77/* standard types */
78#include "bstd_defs.h"
79
80/* standard defines */
81#define BSTD_ENDIAN_BIG 4321
82#define BSTD_ENDIAN_LITTLE 1234
83
84/* platform specific include file. This must
85come before other basemodules which may depend upon #defines.
86Setting compile options in bstd_cfg.h or on the command line
87should be equivalent. */
88#include "bstd_cfg.h"
89
90/* base error codes */
91#include "berr.h"
92
93/* debug interface */
94#include "bdbg.h"
95
96/* chip interface */
97#include "bchp.h"
98
99/*
100 * insuring we have a proper configuration
101 */
102
103#if ((BSTD_CPU_ENDIAN != BSTD_ENDIAN_BIG) && \
104     (BSTD_CPU_ENDIAN != BSTD_ENDIAN_LITTLE))
105#error Must define BSTD_CPU_ENDIAN as BSTD_ENDIAN_BIG or BSTD_ENDIAN_LITTLE.
106#endif
107
108#endif /* #ifndef BSTD_H__ */
109
110/* end of file */
Note: See TracBrowser for help on using the repository browser.