hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/ralink/rt2x00/rt2800pci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 Copyright (C) 2009 - 2010 Ivo van Doorn <IvDoorn@gmail.com>
34 Copyright (C) 2009 Alban Browaeys <prahal@yahoo.com>
....@@ -9,18 +10,6 @@
910 Copyright (C) 2009 Bart Zolnierkiewicz <bzolnier@gmail.com>
1011 <http://rt2x00.serialmonkey.com>
1112
12
- This program is free software; you can redistribute it and/or modify
13
- it under the terms of the GNU General Public License as published by
14
- the Free Software Foundation; either version 2 of the License, or
15
- (at your option) any later version.
16
-
17
- This program is distributed in the hope that it will be useful,
18
- but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- GNU General Public License for more details.
21
-
22
- You should have received a copy of the GNU General Public License
23
- along with this program; if not, see <http://www.gnu.org/licenses/>.
2413 */
2514
2615 /*
....@@ -322,6 +311,7 @@
322311 .get_survey = rt2800_get_survey,
323312 .get_ringparam = rt2x00mac_get_ringparam,
324313 .tx_frames_pending = rt2x00mac_tx_frames_pending,
314
+ .reconfig_complete = rt2x00mac_reconfig_complete,
325315 };
326316
327317 static const struct rt2800_ops rt2800pci_rt2800_ops = {
....@@ -337,6 +327,7 @@
337327 .drv_write_firmware = rt2800pci_write_firmware,
338328 .drv_init_registers = rt2800mmio_init_registers,
339329 .drv_get_txwi = rt2800mmio_get_txwi,
330
+ .drv_get_dma_done = rt2800mmio_get_dma_done,
340331 };
341332
342333 static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = {
....@@ -346,7 +337,7 @@
346337 .tbtt_tasklet = rt2800mmio_tbtt_tasklet,
347338 .rxdone_tasklet = rt2800mmio_rxdone_tasklet,
348339 .autowake_tasklet = rt2800mmio_autowake_tasklet,
349
- .probe_hw = rt2800_probe_hw,
340
+ .probe_hw = rt2800mmio_probe_hw,
350341 .get_firmware_name = rt2800pci_get_firmware_name,
351342 .check_firmware = rt2800_check_firmware,
352343 .load_firmware = rt2800_load_firmware,
....@@ -361,10 +352,11 @@
361352 .link_tuner = rt2800_link_tuner,
362353 .gain_calibration = rt2800_gain_calibration,
363354 .vco_calibration = rt2800_vco_calibration,
355
+ .watchdog = rt2800_watchdog,
364356 .start_queue = rt2800mmio_start_queue,
365357 .kick_queue = rt2800mmio_kick_queue,
366358 .stop_queue = rt2800mmio_stop_queue,
367
- .flush_queue = rt2x00mmio_flush_queue,
359
+ .flush_queue = rt2800mmio_flush_queue,
368360 .write_tx_desc = rt2800mmio_write_tx_desc,
369361 .write_tx_data = rt2800_write_tx_data,
370362 .write_beacon = rt2800_write_beacon,
....@@ -377,6 +369,7 @@
377369 .config_erp = rt2800_config_erp,
378370 .config_ant = rt2800_config_ant,
379371 .config = rt2800_config,
372
+ .pre_reset_hw = rt2800_pre_reset_hw,
380373 };
381374
382375 static const struct rt2x00_ops rt2800pci_ops = {
....@@ -462,8 +455,7 @@
462455 .id_table = rt2800pci_device_table,
463456 .probe = rt2800pci_probe,
464457 .remove = rt2x00pci_remove,
465
- .suspend = rt2x00pci_suspend,
466
- .resume = rt2x00pci_resume,
458
+ .driver.pm = &rt2x00pci_pm_ops,
467459 };
468460
469461 module_pci_driver(rt2800pci_driver);