hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/s390/net/qeth_core_mpc.c
....@@ -10,7 +10,7 @@
1010 #include <asm/cio.h>
1111 #include "qeth_core_mpc.h"
1212
13
-unsigned char IDX_ACTIVATE_READ[] = {
13
+const unsigned char IDX_ACTIVATE_READ[] = {
1414 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
1515 0x19, 0x01, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00,
1616 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xc1,
....@@ -18,7 +18,7 @@
1818 0x00, 0x00
1919 };
2020
21
-unsigned char IDX_ACTIVATE_WRITE[] = {
21
+const unsigned char IDX_ACTIVATE_WRITE[] = {
2222 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
2323 0x15, 0x01, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00,
2424 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xc1,
....@@ -26,7 +26,7 @@
2626 0x00, 0x00
2727 };
2828
29
-unsigned char CM_ENABLE[] = {
29
+const unsigned char CM_ENABLE[] = {
3030 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
3131 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x63,
3232 0x10, 0x00, 0x00, 0x01,
....@@ -45,7 +45,7 @@
4545 0xff, 0xff, 0xff
4646 };
4747
48
-unsigned char CM_SETUP[] = {
48
+const unsigned char CM_SETUP[] = {
4949 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
5050 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x64,
5151 0x10, 0x00, 0x00, 0x01,
....@@ -65,7 +65,7 @@
6565 0x04, 0x06, 0xc8, 0x00
6666 };
6767
68
-unsigned char ULP_ENABLE[] = {
68
+const unsigned char ULP_ENABLE[] = {
6969 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
7070 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x6b,
7171 0x10, 0x00, 0x00, 0x01,
....@@ -85,7 +85,7 @@
8585 0xf1, 0x00, 0x00
8686 };
8787
88
-unsigned char ULP_SETUP[] = {
88
+const unsigned char ULP_SETUP[] = {
8989 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
9090 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x6c,
9191 0x10, 0x00, 0x00, 0x01,
....@@ -107,7 +107,7 @@
107107 0x00, 0x00, 0x00, 0x00
108108 };
109109
110
-unsigned char DM_ACT[] = {
110
+const unsigned char DM_ACT[] = {
111111 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05,
112112 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x55,
113113 0x10, 0x00, 0x00, 0x01,
....@@ -123,28 +123,16 @@
123123 0x05, 0x40, 0x01, 0x01, 0x00
124124 };
125125
126
-unsigned char IPA_PDU_HEADER[] = {
126
+const unsigned char IPA_PDU_HEADER[] = {
127127 0x00, 0xe0, 0x00, 0x00, 0x77, 0x77, 0x77, 0x77,
128
- 0x00, 0x00, 0x00, 0x14, 0x00, 0x00,
129
- (IPA_PDU_HEADER_SIZE+sizeof(struct qeth_ipa_cmd)) / 256,
130
- (IPA_PDU_HEADER_SIZE+sizeof(struct qeth_ipa_cmd)) % 256,
128
+ 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00,
131129 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
132130 0xc1, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
133
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x24,
134
- sizeof(struct qeth_ipa_cmd) / 256,
135
- sizeof(struct qeth_ipa_cmd) % 256,
136
- 0x00,
137
- sizeof(struct qeth_ipa_cmd) / 256,
138
- sizeof(struct qeth_ipa_cmd) % 256,
139
- 0x05,
140
- 0x77, 0x77, 0x77, 0x77,
131
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00,
132
+ 0x00, 0x00, 0x00, 0x05, 0x77, 0x77, 0x77, 0x77,
141133 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
142
- 0x01, 0x00,
143
- sizeof(struct qeth_ipa_cmd) / 256,
144
- sizeof(struct qeth_ipa_cmd) % 256,
145
- 0x00, 0x00, 0x00, 0x40,
134
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
146135 };
147
-EXPORT_SYMBOL_GPL(IPA_PDU_HEADER);
148136
149137 struct ipa_rc_msg {
150138 enum qeth_ipa_return_codes rc;
....@@ -213,11 +201,9 @@
213201 {IPA_RC_LAN_OFFLINE, "STRTLAN_LAN_DISABLED - LAN offline"},
214202 {IPA_RC_VEPA_TO_VEB_TRANSITION, "Adj. switch disabled port mode RR"},
215203 {IPA_RC_INVALID_IP_VERSION2, "Invalid IP version"},
216
- {IPA_RC_ENOMEM, "Memory problem"},
204
+ /* default for qeth_get_ipa_msg(): */
217205 {IPA_RC_FFFF, "Unknown Error"}
218206 };
219
-
220
-
221207
222208 const char *qeth_get_ipa_msg(enum qeth_ipa_return_codes rc)
223209 {