rtw8822ce.c 903 B

1234567891011121314151617181920212223242526272829303132333435
  1. // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
  2. /* Copyright(c) 2018-2019 Realtek Corporation
  3. */
  4. #include <linux/module.h>
  5. #include <linux/pci.h>
  6. #include "pci.h"
  7. #include "rtw8822c.h"
  8. static const struct pci_device_id rtw_8822ce_id_table[] = {
  9. {
  10. PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC822),
  11. .driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
  12. },
  13. {
  14. PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC82F),
  15. .driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
  16. },
  17. {}
  18. };
  19. MODULE_DEVICE_TABLE(pci, rtw_8822ce_id_table);
  20. static struct pci_driver rtw_8822ce_driver = {
  21. .name = "rtw_8822ce",
  22. .id_table = rtw_8822ce_id_table,
  23. .probe = rtw_pci_probe,
  24. .remove = rtw_pci_remove,
  25. .driver.pm = &rtw_pm_ops,
  26. .shutdown = rtw_pci_shutdown,
  27. };
  28. module_pci_driver(rtw_8822ce_driver);
  29. MODULE_AUTHOR("Realtek Corporation");
  30. MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822ce driver");
  31. MODULE_LICENSE("Dual BSD/GPL");