1 /* SPDX-License-Identifier: GPL-2.0-only
2 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
5 #ifndef _LINUX_IF_RMNET_H_
6 #define _LINUX_IF_RMNET_H_
8 struct rmnet_map_header {
9 #if defined(__LITTLE_ENDIAN_BITFIELD)
13 #elif defined (__BIG_ENDIAN_BITFIELD)
18 #error "Please fix <asm/byteorder.h>"
24 struct rmnet_map_dl_csum_trailer {
26 #if defined(__LITTLE_ENDIAN_BITFIELD)
29 #elif defined (__BIG_ENDIAN_BITFIELD)
33 #error "Please fix <asm/byteorder.h>"
35 u16 csum_start_offset;
40 struct rmnet_map_ul_csum_header {
41 __be16 csum_start_offset;
42 #if defined(__LITTLE_ENDIAN_BITFIELD)
43 u16 csum_insert_offset:14;
46 #elif defined (__BIG_ENDIAN_BITFIELD)
49 u16 csum_insert_offset:14;
51 #error "Please fix <asm/byteorder.h>"
55 #endif /* !(_LINUX_IF_RMNET_H_) */