forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/net/wireless/intel/iwlwifi/iwl-op-mode.h
....@@ -8,6 +8,7 @@
88 * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
99 * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
1010 * Copyright(c) 2015 Intel Deutschland GmbH
11
+ * Copyright(c) 2018 - 2019 Intel Corporation
1112 *
1213 * This program is free software; you can redistribute it and/or modify
1314 * it under the terms of version 2 of the GNU General Public License as
....@@ -17,11 +18,6 @@
1718 * WITHOUT ANY WARRANTY; without even the implied warranty of
1819 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1920 * General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program; if not, write to the Free Software
23
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
24
- * USA
2521 *
2622 * The full GNU General Public License is included in this distribution
2723 * in the file called COPYING.
....@@ -35,6 +31,7 @@
3531 * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved.
3632 * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
3733 * Copyright(c) 2015 Intel Deutschland GmbH
34
+ * Copyright(c) 2018 - 2019 Intel Corporation
3835 * All rights reserved.
3936 *
4037 * Redistribution and use in source and binary forms, with or without
....@@ -143,9 +140,6 @@
143140 * @nic_config: configure NIC, called before firmware is started.
144141 * May sleep
145142 * @wimax_active: invoked when WiMax becomes active. May sleep
146
- * @enter_d0i3: configure the fw to enter d0i3. return 1 to indicate d0i3
147
- * entrance is aborted (e.g. due to held reference). May sleep.
148
- * @exit_d0i3: configure the fw to exit d0i3. May sleep.
149143 */
150144 struct iwl_op_mode_ops {
151145 struct iwl_op_mode *(*start)(struct iwl_trans *trans,
....@@ -167,8 +161,6 @@
167161 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
168162 void (*nic_config)(struct iwl_op_mode *op_mode);
169163 void (*wimax_active)(struct iwl_op_mode *op_mode);
170
- int (*enter_d0i3)(struct iwl_op_mode *op_mode);
171
- int (*exit_d0i3)(struct iwl_op_mode *op_mode);
172164 };
173165
174166 int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops);
....@@ -183,7 +175,7 @@
183175 struct iwl_op_mode {
184176 const struct iwl_op_mode_ops *ops;
185177
186
- char op_mode_specific[0] __aligned(sizeof(void *));
178
+ char op_mode_specific[] __aligned(sizeof(void *));
187179 };
188180
189181 static inline void iwl_op_mode_stop(struct iwl_op_mode *op_mode)
....@@ -259,24 +251,6 @@
259251 {
260252 might_sleep();
261253 op_mode->ops->wimax_active(op_mode);
262
-}
263
-
264
-static inline int iwl_op_mode_enter_d0i3(struct iwl_op_mode *op_mode)
265
-{
266
- might_sleep();
267
-
268
- if (!op_mode->ops->enter_d0i3)
269
- return 0;
270
- return op_mode->ops->enter_d0i3(op_mode);
271
-}
272
-
273
-static inline int iwl_op_mode_exit_d0i3(struct iwl_op_mode *op_mode)
274
-{
275
- might_sleep();
276
-
277
- if (!op_mode->ops->exit_d0i3)
278
- return 0;
279
- return op_mode->ops->exit_d0i3(op_mode);
280254 }
281255
282256 #endif /* __iwl_op_mode_h__ */