Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 2 | |
| 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
| 6 | |
| 7 | static struct device_operations dsp_dev_ops = { |
Elyes HAOUAS | 1d19127 | 2018-11-27 12:23:48 +0100 | [diff] [blame] | 8 | .read_resources = pci_dev_read_resources, |
| 9 | .set_resources = pci_dev_set_resources, |
| 10 | .enable_resources = pci_dev_enable_resources, |
Subrata Banik | 6bbc91a | 2017-12-07 14:55:51 +0530 | [diff] [blame] | 11 | .ops_pci = &pci_dev_ops_pci, |
Duncan Laurie | 10f55a2 | 2020-04-29 12:17:54 -0700 | [diff] [blame] | 12 | .scan_bus = scan_static_bus, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | static const unsigned short pci_device_ids[] = { |
| 16 | PCI_DEVICE_ID_INTEL_APL_AUDIO, |
| 17 | PCI_DEVICE_ID_INTEL_CNL_AUDIO, |
| 18 | PCI_DEVICE_ID_INTEL_GLK_AUDIO, |
Subrata Banik | fb15d46 | 2017-11-27 12:14:38 +0530 | [diff] [blame] | 19 | PCI_DEVICE_ID_INTEL_SKL_AUDIO, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 20 | PCI_DEVICE_ID_INTEL_CNP_H_AUDIO, |
V Sowmya | 0873e27 | 2019-04-15 08:28:48 +0530 | [diff] [blame] | 21 | PCI_DEVICE_ID_INTEL_CMP_AUDIO, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 22 | PCI_DEVICE_ID_INTEL_CMP_H_AUDIO, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 23 | PCI_DEVICE_ID_INTEL_ICL_AUDIO, |
Ravi Sarawadi | 6b5bf40 | 2019-10-21 22:25:04 -0700 | [diff] [blame] | 24 | PCI_DEVICE_ID_INTEL_TGL_AUDIO, |
Jeremy Soller | 191a8d7 | 2021-08-10 14:06:51 -0600 | [diff] [blame^] | 25 | PCI_DEVICE_ID_INTEL_TGL_H_AUDIO, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 26 | PCI_DEVICE_ID_INTEL_MCC_AUDIO, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 27 | PCI_DEVICE_ID_INTEL_JSP_AUDIO, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 28 | PCI_DEVICE_ID_INTEL_ADP_P_AUDIO, |
| 29 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_1, |
| 30 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_2, |
| 31 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_3, |
| 32 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_4, |
| 33 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_5, |
| 34 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_6, |
| 35 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_7, |
| 36 | PCI_DEVICE_ID_INTEL_ADP_S_AUDIO_8, |
Varshit Pandya | f4d98fdd2 | 2021-01-17 18:39:29 +0530 | [diff] [blame] | 37 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_1, |
| 38 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_2, |
| 39 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_3, |
| 40 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_4, |
| 41 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_5, |
| 42 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_6, |
| 43 | PCI_DEVICE_ID_INTEL_ADP_M_AUDIO_7, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 44 | 0, |
| 45 | }; |
| 46 | |
| 47 | static const struct pci_driver dsp_driver __pci_driver = { |
| 48 | .ops = &dsp_dev_ops, |
| 49 | .vendor = PCI_VENDOR_ID_INTEL, |
| 50 | .devices = pci_device_ids, |
| 51 | }; |