| 1 | #ifndef __BDK_ARCH_H__ |
| 2 | #define __BDK_ARCH_H__ |
| 3 | /***********************license start*********************************** |
| 4 | * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights |
| 5 | * reserved. |
| 6 | * |
| 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without |
| 9 | * modification, are permitted provided that the following conditions are |
| 10 | * met: |
| 11 | * |
| 12 | * * Redistributions of source code must retain the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer. |
| 14 | * |
| 15 | * * Redistributions in binary form must reproduce the above |
| 16 | * copyright notice, this list of conditions and the following |
| 17 | * disclaimer in the documentation and/or other materials provided |
| 18 | * with the distribution. |
| 19 | * |
| 20 | * * Neither the name of Cavium Inc. nor the names of |
| 21 | * its contributors may be used to endorse or promote products |
| 22 | * derived from this software without specific prior written |
| 23 | * permission. |
| 24 | * |
| 25 | * This Software, including technical data, may be subject to U.S. export |
| 26 | * control laws, including the U.S. Export Administration Act and its |
| 27 | * associated regulations, and may be subject to export or import |
| 28 | * regulations in other countries. |
| 29 | * |
| 30 | * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
| 31 | * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR |
| 32 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT |
| 33 | * TO THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY |
| 34 | * REPRESENTATION OR DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT |
| 35 | * DEFECTS, AND CAVIUM SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES |
| 36 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR |
| 37 | * PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, |
| 38 | * QUIET POSSESSION OR CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK |
| 39 | * ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES WITH YOU. |
| 40 | ***********************license end**************************************/ |
| 41 | |
| 42 | /** |
| 43 | * @file |
| 44 | * |
| 45 | * Master include file for architecture support. Use bdk.h |
| 46 | * instead of including this file directly. |
| 47 | * |
| 48 | * <hr>$Revision: 49448 $<hr> |
| 49 | */ |
| 50 | |
| 51 | #include <arch/byteorder.h> |
| 52 | |
| 53 | #ifndef __BYTE_ORDER |
| 54 | #if (__LITTLE_ENDIAN) |
| 55 | #define __BYTE_ORDER __LITTLE_ENDIAN |
| 56 | #elif defined(__BIG_ENDIAN) |
| 57 | #define __BYTE_ORDER __BIG_ENDIAN |
| 58 | #endif |
| 59 | #endif |
| 60 | |
| 61 | #ifndef __LITTLE_ENDIAN |
| 62 | #define __LITTLE_ENDIAN 1234 |
| 63 | #endif |
| 64 | #ifndef __BIG_ENDIAN |
| 65 | #define __BIG_ENDIAN 4321 |
| 66 | #endif |
| 67 | |
| 68 | #include "bdk-require.h" |
| 69 | #ifndef BDK_BUILD_HOST |
| 70 | #include "bdk-asm.h" |
| 71 | #endif |
| 72 | #include "bdk-model.h" |
| 73 | #include "bdk-numa.h" |
| 74 | #include "bdk-csr.h" |
| 75 | #ifndef BDK_BUILD_HOST |
| 76 | #include "bdk-lmt.h" |
| 77 | #endif |
| 78 | #include "bdk-warn.h" |
| 79 | #ifndef BDK_BUILD_HOST |
| 80 | #include "bdk-fuse.h" |
| 81 | #endif |
| 82 | |
| 83 | #endif |