| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Copyright (C) 2009 - 2010 Ivo van Doorn <IvDoorn@gmail.com> |
|---|
| 3 | 4 | Copyright (C) 2009 Alban Browaeys <prahal@yahoo.com> |
|---|
| .. | .. |
|---|
| 9 | 10 | Copyright (C) 2009 Bart Zolnierkiewicz <bzolnier@gmail.com> |
|---|
| 10 | 11 | <http://rt2x00.serialmonkey.com> |
|---|
| 11 | 12 | |
|---|
| 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/>. |
|---|
| 24 | 13 | */ |
|---|
| 25 | 14 | |
|---|
| 26 | 15 | /* |
|---|
| .. | .. |
|---|
| 322 | 311 | .get_survey = rt2800_get_survey, |
|---|
| 323 | 312 | .get_ringparam = rt2x00mac_get_ringparam, |
|---|
| 324 | 313 | .tx_frames_pending = rt2x00mac_tx_frames_pending, |
|---|
| 314 | + .reconfig_complete = rt2x00mac_reconfig_complete, |
|---|
| 325 | 315 | }; |
|---|
| 326 | 316 | |
|---|
| 327 | 317 | static const struct rt2800_ops rt2800pci_rt2800_ops = { |
|---|
| .. | .. |
|---|
| 337 | 327 | .drv_write_firmware = rt2800pci_write_firmware, |
|---|
| 338 | 328 | .drv_init_registers = rt2800mmio_init_registers, |
|---|
| 339 | 329 | .drv_get_txwi = rt2800mmio_get_txwi, |
|---|
| 330 | + .drv_get_dma_done = rt2800mmio_get_dma_done, |
|---|
| 340 | 331 | }; |
|---|
| 341 | 332 | |
|---|
| 342 | 333 | static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { |
|---|
| .. | .. |
|---|
| 346 | 337 | .tbtt_tasklet = rt2800mmio_tbtt_tasklet, |
|---|
| 347 | 338 | .rxdone_tasklet = rt2800mmio_rxdone_tasklet, |
|---|
| 348 | 339 | .autowake_tasklet = rt2800mmio_autowake_tasklet, |
|---|
| 349 | | - .probe_hw = rt2800_probe_hw, |
|---|
| 340 | + .probe_hw = rt2800mmio_probe_hw, |
|---|
| 350 | 341 | .get_firmware_name = rt2800pci_get_firmware_name, |
|---|
| 351 | 342 | .check_firmware = rt2800_check_firmware, |
|---|
| 352 | 343 | .load_firmware = rt2800_load_firmware, |
|---|
| .. | .. |
|---|
| 361 | 352 | .link_tuner = rt2800_link_tuner, |
|---|
| 362 | 353 | .gain_calibration = rt2800_gain_calibration, |
|---|
| 363 | 354 | .vco_calibration = rt2800_vco_calibration, |
|---|
| 355 | + .watchdog = rt2800_watchdog, |
|---|
| 364 | 356 | .start_queue = rt2800mmio_start_queue, |
|---|
| 365 | 357 | .kick_queue = rt2800mmio_kick_queue, |
|---|
| 366 | 358 | .stop_queue = rt2800mmio_stop_queue, |
|---|
| 367 | | - .flush_queue = rt2x00mmio_flush_queue, |
|---|
| 359 | + .flush_queue = rt2800mmio_flush_queue, |
|---|
| 368 | 360 | .write_tx_desc = rt2800mmio_write_tx_desc, |
|---|
| 369 | 361 | .write_tx_data = rt2800_write_tx_data, |
|---|
| 370 | 362 | .write_beacon = rt2800_write_beacon, |
|---|
| .. | .. |
|---|
| 377 | 369 | .config_erp = rt2800_config_erp, |
|---|
| 378 | 370 | .config_ant = rt2800_config_ant, |
|---|
| 379 | 371 | .config = rt2800_config, |
|---|
| 372 | + .pre_reset_hw = rt2800_pre_reset_hw, |
|---|
| 380 | 373 | }; |
|---|
| 381 | 374 | |
|---|
| 382 | 375 | static const struct rt2x00_ops rt2800pci_ops = { |
|---|
| .. | .. |
|---|
| 462 | 455 | .id_table = rt2800pci_device_table, |
|---|
| 463 | 456 | .probe = rt2800pci_probe, |
|---|
| 464 | 457 | .remove = rt2x00pci_remove, |
|---|
| 465 | | - .suspend = rt2x00pci_suspend, |
|---|
| 466 | | - .resume = rt2x00pci_resume, |
|---|
| 458 | + .driver.pm = &rt2x00pci_pm_ops, |
|---|
| 467 | 459 | }; |
|---|
| 468 | 460 | |
|---|
| 469 | 461 | module_pci_driver(rt2800pci_driver); |
|---|