Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / hexagon / include / asm / checksum.h
blob4bc6ad96c4c5f676768834c1ba263162995ddc66
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
4 */
6 #ifndef _ASM_CHECKSUM_H
7 #define _ASM_CHECKSUM_H
9 #define do_csum do_csum
10 unsigned int do_csum(const void *voidptr, int len);
13 * computes the checksum of the TCP/UDP pseudo-header
14 * returns a 16-bit checksum, already complemented
16 #define csum_tcpudp_nofold csum_tcpudp_nofold
17 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
18 __u32 len, __u8 proto, __wsum sum);
20 #define csum_tcpudp_magic csum_tcpudp_magic
21 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
22 __u32 len, __u8 proto, __wsum sum);
24 #include <asm-generic/checksum.h>
26 #endif