📄 secpinif.h
字号:
/** * \file * Security Pin Interface definitions. * See Wiki page <a href="http://ddcwww/TWiki/bin/view/Wwan/BenNevisSiliconInternalResetRegisters">BenNevisSiliconInternalResetRegisters</a> BenNevisSiliconInternalResetRegisters * for description oof the hardware registers. * * \version $Revision$ $State$ * * \date $Date$ * * \author <a href="mailto:Richard.Powell@amd.com">Richard Powell</a> * * \par Last changed by: * $Author$ * *****************************************************************************//* * Copyright 2004 ADVANCED MICRO DEVICES, INC. All Rights Reserved. * * This software and any related documentation (the "Materials") are the * confidential proprietary information of AMD. Unless otherwise provided * in an agreement specifically licensing the Materials, the Materials are * provided in confidence and may not to be used, distributed, modified, or * reproduced in whole or in part by any means. * * LIMITATION OF LIABILITY: THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY * EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO * WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, TITLE, FITNESS FOR ANY * PARTICULAR PURPOSE, OR WARRANTIES ARISING FORM CONDUCT, COURSE OF * DEALING, OR USAGE OF TRADE. IN NO EVENT SHALL AMD OR ITS LICENSORS BE * LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, * DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF * INFORMATION) ARISING OUT OF THE USE OF OR INABILITY TO USE THE * MATERIALS, EVEN IF AMD HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH * DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE EXCLUSION OR * LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE * ABOVE LIMITATION MAY NOT APPLY TO YOU. * * AMD does not assume any responsibility for any errors which may appear * in the Materials nor any responsibility to support or update the * Materials. AMD retains the right to modify the Materials at any time, * without notice, and is not obligated to provide such modified Materials * to you. * * NO SUPPORT OBLIGATION: AMD is not obligated to furnish, support, or make * any further information, software, technical information, know-how, or * show-how available to you. * *****************************************************************************/#ifndef SECPINIF_H#define SECPINIF_H/****************************************************************************** Constants*****************************************************************************//****************************************************************************** Types*****************************************************************************//****************************************************************************** Macros*****************************************************************************//** The stat_test register (offset 0x20) of the reset register group (base 0xa0400000)*/#define SECURITY_PIN_REGISTER *(Int16 *)0xa040f020/** bit 2 is GpiStat[2] */#define SECURITY_PIN_MAP (Int16)0x04/** Returns 1 if security pin is asserted 0 if not */#if !defined (PATCH_TEST_HARNESS)#if defined (SECURITY_DISABLE_PIN_HARDCODE_FALSE)#define SECURITY_DISABLE_PIN FALSE#elif defined (SECURITY_DISABLE_PIN_HARDCODE_TRUE)#define SECURITY_DISABLE_PIN TRUE#else#define SECURITY_DISABLE_PIN (SECURITY_PIN_REGISTER & SECURITY_PIN_MAP)>>2#endif#elseextern Int16 SecurityDisablePin;#define SECURITY_DISABLE_PIN SecurityDisablePin#endif/****************************************************************************** Classes*****************************************************************************//****************************************************************************** Data*****************************************************************************/#ifdef __cplusplusextern "C" {#endif#ifdef __cplusplus} /* extern "C" */#endif/****************************************************************************** Functions*****************************************************************************/#ifdef __cplusplusextern "C" {#endif#ifdef __cplusplus} /* extern "C" */#endif/****************************************************************************** Inline Functions*****************************************************************************/#endif /* #ifndef SECPINIF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -