1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Huawei HiNIC PCI Express Linux driver
4 * Copyright(c) 2017 Huawei Technologies Co., Ltd
10 #include <linux/types.h>
12 #define UPPER_8_BITS(data) (((data) >> 8) & 0xFF)
13 #define LOWER_8_BITS(data) ((data) & 0xFF)
21 void hinic_cpu_to_be32(void *data
, int len
);
23 void hinic_be32_to_cpu(void *data
, int len
);
25 void hinic_set_sge(struct hinic_sge
*sge
, dma_addr_t addr
, int len
);
27 dma_addr_t
hinic_sge_to_dma(struct hinic_sge
*sge
);