Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
26
sdk/include/dev/sha/hgsha_v1.h
Normal file
26
sdk/include/dev/sha/hgsha_v1.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _HGSHA_V0_H_
|
||||
#define _HGSHA_V0_H_
|
||||
#include "hal/sha.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
struct hgsha_v1 {
|
||||
struct sha_dev dev;
|
||||
void *hw;
|
||||
os_mutex_t lock;
|
||||
os_semaphore_t done;
|
||||
uint32 irq_num;
|
||||
uint32 flags;
|
||||
void (*irq_func)(void *args);
|
||||
void *irq_data;
|
||||
struct sha_ctx ctx;
|
||||
struct sha_ctx *pctx;
|
||||
};
|
||||
|
||||
int32 hgsha_v1_attach(uint32 dev_id, struct hgsha_v1 *sha);
|
||||
|
||||
#endif /* _hgsha256_H_ */
|
||||
Reference in New Issue
Block a user