Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drv/hisi_comp.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
/* Copyright 2020-2021 Huawei Technologies Co.,Ltd. All rights reserved. */

#include <asm/types.h>
#include <linux/types.h>
#include "drv/wd_comp_drv.h"
#include "drv/hisi_comp_huf.h"
#include "hisi_qm_udrv.h"
Expand Down
2 changes: 1 addition & 1 deletion drv/hisi_comp_huf.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
/* Copyright 2025 Huawei Technologies Co.,Ltd. All rights reserved. */

#include <asm/types.h>
#include <linux/types.h>

#include "drv/hisi_comp_huf.h"
#include "wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion drv/hisi_comp_huf.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __HISI_COMP_HUF_H
#define __HISI_COMP_HUF_H

#include <asm/types.h>
#include <linux/types.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_agg_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef __WD_AGG_DRV_H
#define __WD_AGG_DRV_H

#include <asm/types.h>
#include <linux/types.h>
#include "wd_agg.h"
#include "wd_util.h"

Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_cipher_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __WD_CIPHER_DRV_H
#define __WD_CIPHER_DRV_H

#include <asm/types.h>
#include <linux/types.h>

#include "../wd_cipher.h"
#include "../wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_comp_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define __WD_COMP_DRV_H

#include <pthread.h>
#include <asm/types.h>
#include <linux/types.h>

#include "../wd_comp.h"
#include "../wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_dh_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __WD_DH_DRV_H
#define __WD_DH_DRV_H

#include <asm/types.h>
#include <linux/types.h>

#include "../wd_dh.h"
#include "../wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_ecc_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define __WD_ECC_DRV_H

#include <stdint.h>
#include <asm/types.h>
#include <linux/types.h>

#include "../wd_ecc.h"
#include "../wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_join_gather_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef __WD_JOIN_GATHER_DRV_H
#define __WD_JOIN_GATHER_DRV_H

#include <asm/types.h>
#include <linux/types.h>
#include "wd_join_gather.h"
#include "wd_util.h"

Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_rsa_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef __WD_RSA_DRV_H
#define __WD_RSA_DRV_H

#include <asm/types.h>
#include <linux/types.h>

#include "../wd_rsa.h"
#include "../wd_util.h"
Expand Down
2 changes: 1 addition & 1 deletion include/drv/wd_udma_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __WD_UDMA_DRV_H
#define __WD_UDMA_DRV_H

#include <asm/types.h>
#include <linux/types.h>

#include "../wd_udma.h"
#include "../wd_util.h"
Expand Down
6 changes: 2 additions & 4 deletions include/wd.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <asm/types.h>
#include <linux/types.h>

#include "uacce.h"

#ifdef __cplusplus
Expand All @@ -33,9 +34,6 @@ extern "C" {
#define CRYPTO_MAX_ALG_NAME 128
#define NUMA_NO_NODE (-1)

typedef unsigned char __u8;
typedef unsigned int __u32;
typedef unsigned long long __u64;
/* Required compiler attributes */
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
Expand Down
3 changes: 2 additions & 1 deletion include/wd_agg.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#define __WD_AGG_H

#include <dlfcn.h>
#include <asm/types.h>
#include <linux/types.h>

#include "wd_dae.h"

#ifdef __cplusplus
Expand Down
1 change: 1 addition & 0 deletions include/wd_alg.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <linux/types.h>

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 2 additions & 1 deletion include/wd_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#define __WD_CIPHER_H

#include <dlfcn.h>
#include <asm/types.h>
#include <linux/types.h>

#include "wd_alg_common.h"

#ifdef __cplusplus
Expand Down
3 changes: 2 additions & 1 deletion include/wd_dae.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <dlfcn.h>
#include <stdbool.h>
#include <asm/types.h>
#include <linux/types.h>

#include "wd_alg_common.h"
#include "wd.h"

Expand Down
3 changes: 2 additions & 1 deletion include/wd_join_gather.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#define __WD_JOIN_GATHER_H

#include <dlfcn.h>
#include <asm/types.h>
#include <linux/types.h>

#include "wd_dae.h"

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion include/wd_sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#ifndef SCHED_SAMPLE_h
#define SCHED_SAMPLE_h
#include <asm/types.h>
#include <linux/types.h>
#include "wd_alg_common.h"

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion include/wd_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdbool.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <asm/types.h>
#include <linux/types.h>

#include "wd.h"
#include "wd_sched.h"
Expand Down
2 changes: 1 addition & 1 deletion include/wd_zlibwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef UADK_ZLIBWRAPPER_H
#define UADK_ZLIBWRAPPER_H

#include <asm/types.h>
#include <linux/types.h>

/*
* These APIs are used to replace the ZLIB library. So if you don't use them.
Expand Down