1 2/***********************license start*************** 3 * Copyright (c) 2003-2010 Cavium Inc. (support@cavium.com). All rights 4 * reserved. 5 * 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are 9 * met: 10 * 11 * * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 14 * * Redistributions in binary form must reproduce the above 15 * copyright notice, this list of conditions and the following 16 * disclaimer in the documentation and/or other materials provided 17 * with the distribution. 18 19 * * Neither the name of Cavium Inc. nor the names of 20 * its contributors may be used to endorse or promote products 21 * derived from this software without specific prior written 22 * permission. 23 24 * This Software, including technical data, may be subject to U.S. export control 25 * laws, including the U.S. Export Administration Act and its associated 26 * regulations, and may be subject to export or import regulations in other 27 * countries. 28 29 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" 30 * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR 31 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO 32 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR 33 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM 34 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, 35 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF 36 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR 37 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR 38 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU. 39 ***********************license end**************************************/ 40 41 42/** 43 * @file 44 * 45 * Helper utilities for enabling crypto. 46 * 47 * <hr>$Revision: $<hr> 48 */ 49 50#ifndef __CVMX_CRYPTO_H__ 51#define __CVMX_CRYPTO_H__ 52/** 53 * Enable the dormant crypto functions. If crypto is not already 54 * enabled and it is possible to enable it, write the enable key. 55 * 56 * @param key The dormant crypto enable key value. 57 * 58 * @return true if crypto is (or has been) enabled. 59 */ 60extern int cvmx_crypto_dormant_enable(uint64_t key); 61 62/** 63 * Read the crypto dormant debug value. 64 * 65 * @return The RNM_EER_DBG.DAT value, or zero if the feature is not 66 * enabled. 67 */ 68extern uint64_t cvmx_crypto_dormant_dbg(void); 69 70#endif /* __CVMX_CRYPTO_H__ */ 71