42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
#ifndef _MAC_KEY_HW_H
|
|
#define _MAC_KEY_HW_H
|
|
#include "plc_utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* HW key related define here */
|
|
|
|
/* set avln's nid to HW */
|
|
uint32_t mac_key_hw_set_avln_nid(uint8_t avln_idx, nid_t nid);
|
|
|
|
/* get avln's nid to HW
|
|
* return nid if successful, else return INV NID
|
|
*/
|
|
uint32_t mac_key_hw_get_avln_nid(uint8_t avln_idx);
|
|
|
|
/* set key table for avln to hw */
|
|
uint32_t mac_key_hw_set_avln_key_tlb(uint8_t avln_idx, void *key_tbl_ptr);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !_MAC_KEY_HW_H
|