Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 3 | |
| 4 | #include <device/device.h> |
| 5 | #include <device/pci.h> |
| 6 | #include <device/pci_ids.h> |
| 7 | |
| 8 | static struct device_operations dsp_dev_ops = { |
Elyes HAOUAS | 1d19127 | 2018-11-27 12:23:48 +0100 | [diff] [blame] | 9 | .read_resources = pci_dev_read_resources, |
| 10 | .set_resources = pci_dev_set_resources, |
| 11 | .enable_resources = pci_dev_enable_resources, |
Subrata Banik | 6bbc91a | 2017-12-07 14:55:51 +0530 | [diff] [blame] | 12 | .ops_pci = &pci_dev_ops_pci, |
Nico Huber | f7ed3d4 | 2019-03-14 15:50:06 +0100 | [diff] [blame] | 13 | .scan_bus = enable_static_devices, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | static const unsigned short pci_device_ids[] = { |
| 17 | PCI_DEVICE_ID_INTEL_APL_AUDIO, |
| 18 | PCI_DEVICE_ID_INTEL_CNL_AUDIO, |
| 19 | PCI_DEVICE_ID_INTEL_GLK_AUDIO, |
Subrata Banik | fb15d46 | 2017-11-27 12:14:38 +0530 | [diff] [blame] | 20 | PCI_DEVICE_ID_INTEL_SKL_AUDIO, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 21 | PCI_DEVICE_ID_INTEL_CNP_H_AUDIO, |
V Sowmya | 0873e27 | 2019-04-15 08:28:48 +0530 | [diff] [blame] | 22 | PCI_DEVICE_ID_INTEL_CMP_AUDIO, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 23 | PCI_DEVICE_ID_INTEL_CMP_H_AUDIO, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 24 | PCI_DEVICE_ID_INTEL_ICL_AUDIO, |
Ravi Sarawadi | 6b5bf40 | 2019-10-21 22:25:04 -0700 | [diff] [blame] | 25 | PCI_DEVICE_ID_INTEL_TGL_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, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 28 | 0, |
| 29 | }; |
| 30 | |
| 31 | static const struct pci_driver dsp_driver __pci_driver = { |
| 32 | .ops = &dsp_dev_ops, |
| 33 | .vendor = PCI_VENDOR_ID_INTEL, |
| 34 | .devices = pci_device_ids, |
| 35 | }; |