1215976Sjmallett
2215976Sjmallett/***********************license start***************
3232812Sjmallett * Copyright (c) 2003-2010  Cavium Inc. (support@cavium.com). All rights
4215976Sjmallett * reserved.
5215976Sjmallett *
6215976Sjmallett *
7215976Sjmallett * Redistribution and use in source and binary forms, with or without
8215976Sjmallett * modification, are permitted provided that the following conditions are
9215976Sjmallett * met:
10215976Sjmallett *
11215976Sjmallett *   * Redistributions of source code must retain the above copyright
12215976Sjmallett *     notice, this list of conditions and the following disclaimer.
13215976Sjmallett *
14215976Sjmallett *   * Redistributions in binary form must reproduce the above
15215976Sjmallett *     copyright notice, this list of conditions and the following
16215976Sjmallett *     disclaimer in the documentation and/or other materials provided
17215976Sjmallett *     with the distribution.
18215976Sjmallett
19232812Sjmallett *   * Neither the name of Cavium Inc. nor the names of
20215976Sjmallett *     its contributors may be used to endorse or promote products
21215976Sjmallett *     derived from this software without specific prior written
22215976Sjmallett *     permission.
23215976Sjmallett
24215976Sjmallett * This Software, including technical data, may be subject to U.S. export  control
25215976Sjmallett * laws, including the U.S. Export Administration Act and its  associated
26215976Sjmallett * regulations, and may be subject to export or import  regulations in other
27215976Sjmallett * countries.
28215976Sjmallett
29215976Sjmallett * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
30232812Sjmallett * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR
31215976Sjmallett * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
32215976Sjmallett * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
33215976Sjmallett * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
34215976Sjmallett * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
35215976Sjmallett * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
36215976Sjmallett * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
37215976Sjmallett * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE  RISK ARISING OUT OF USE OR
38215976Sjmallett * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
39215976Sjmallett ***********************license end**************************************/
40215976Sjmallett
41215976Sjmallett
42215976Sjmallett/**
43215976Sjmallett * @file
44215976Sjmallett *
45215976Sjmallett * Helper utilities for enabling crypto.
46215976Sjmallett *
47215976Sjmallett * <hr>$Revision: $<hr>
48215976Sjmallett */
49215976Sjmallett
50215976Sjmallett#ifndef __CVMX_CRYPTO_H__
51215976Sjmallett#define __CVMX_CRYPTO_H__
52215976Sjmallett/**
53215976Sjmallett * Enable the dormant crypto functions.  If crypto is not already
54215976Sjmallett * enabled and it is possible to enable it, write the enable key.
55215976Sjmallett *
56215976Sjmallett * @param key  The dormant crypto enable key value.
57215976Sjmallett *
58215976Sjmallett * @return true if crypto is (or has been) enabled.
59215976Sjmallett */
60215976Sjmallettextern int cvmx_crypto_dormant_enable(uint64_t key);
61215976Sjmallett
62215976Sjmallett/**
63215976Sjmallett * Read the crypto dormant debug value.
64215976Sjmallett *
65215976Sjmallett * @return The RNM_EER_DBG.DAT value, or zero if the feature is not
66215976Sjmallett * enabled.
67215976Sjmallett */
68215976Sjmallettextern uint64_t cvmx_crypto_dormant_dbg(void);
69215976Sjmallett
70215976Sjmallett#endif /* __CVMX_CRYPTO_H__ */
71