.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016 Cavium, Inc. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify it |
---|
5 | | - * under the terms of version 2 of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #ifndef __REQUEST_MANAGER_H |
---|
.. | .. |
---|
78 | 75 | union { |
---|
79 | 76 | u64 len; |
---|
80 | 77 | struct { |
---|
81 | | - u16 len0; |
---|
82 | | - u16 len1; |
---|
83 | | - u16 len2; |
---|
84 | | - u16 len3; |
---|
| 78 | + __be16 len0; |
---|
| 79 | + __be16 len1; |
---|
| 80 | + __be16 len2; |
---|
| 81 | + __be16 len3; |
---|
85 | 82 | } s; |
---|
86 | 83 | } u; |
---|
87 | | - u64 ptr0; |
---|
88 | | - u64 ptr1; |
---|
89 | | - u64 ptr2; |
---|
90 | | - u64 ptr3; |
---|
| 84 | + __be64 ptr0; |
---|
| 85 | + __be64 ptr1; |
---|
| 86 | + __be64 ptr2; |
---|
| 87 | + __be64 ptr3; |
---|
91 | 88 | }; |
---|
92 | 89 | |
---|
93 | 90 | struct cpt_info_buffer { |
---|
.. | .. |
---|
117 | 114 | union vq_cmd_word0 { |
---|
118 | 115 | u64 u64; |
---|
119 | 116 | struct { |
---|
120 | | - u16 opcode; |
---|
121 | | - u16 param1; |
---|
122 | | - u16 param2; |
---|
123 | | - u16 dlen; |
---|
| 117 | + __be16 opcode; |
---|
| 118 | + __be16 param1; |
---|
| 119 | + __be16 param2; |
---|
| 120 | + __be16 dlen; |
---|
124 | 121 | } s; |
---|
125 | 122 | }; |
---|
126 | 123 | |
---|