hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/cavium/cpt/request_manager.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * 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.
74 */
85
96 #ifndef __REQUEST_MANAGER_H
....@@ -78,16 +75,16 @@
7875 union {
7976 u64 len;
8077 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;
8582 } s;
8683 } 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;
9188 };
9289
9390 struct cpt_info_buffer {
....@@ -117,10 +114,10 @@
117114 union vq_cmd_word0 {
118115 u64 u64;
119116 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;
124121 } s;
125122 };
126123