Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * * Copyright (C) 2016 Google Inc. |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 5 | * * Copyright (C) 2017-2018 Intel Corporation. |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include <device/device.h> |
| 18 | #include <device/pci.h> |
| 19 | #include <device/pci_ids.h> |
| 20 | |
| 21 | static struct device_operations dsp_dev_ops = { |
Elyes HAOUAS | 1d19127 | 2018-11-27 12:23:48 +0100 | [diff] [blame] | 22 | .read_resources = pci_dev_read_resources, |
| 23 | .set_resources = pci_dev_set_resources, |
| 24 | .enable_resources = pci_dev_enable_resources, |
Subrata Banik | 6bbc91a | 2017-12-07 14:55:51 +0530 | [diff] [blame] | 25 | .ops_pci = &pci_dev_ops_pci, |
Nico Huber | f7ed3d4 | 2019-03-14 15:50:06 +0100 | [diff] [blame] | 26 | .scan_bus = enable_static_devices, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | static const unsigned short pci_device_ids[] = { |
| 30 | PCI_DEVICE_ID_INTEL_APL_AUDIO, |
| 31 | PCI_DEVICE_ID_INTEL_CNL_AUDIO, |
| 32 | PCI_DEVICE_ID_INTEL_GLK_AUDIO, |
Subrata Banik | fb15d46 | 2017-11-27 12:14:38 +0530 | [diff] [blame] | 33 | PCI_DEVICE_ID_INTEL_SKL_AUDIO, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 34 | PCI_DEVICE_ID_INTEL_CNP_H_AUDIO, |
V Sowmya | 0873e27 | 2019-04-15 08:28:48 +0530 | [diff] [blame] | 35 | PCI_DEVICE_ID_INTEL_CMP_AUDIO, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame^] | 36 | PCI_DEVICE_ID_INTEL_CMP_H_AUDIO, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 37 | PCI_DEVICE_ID_INTEL_ICL_AUDIO, |
Ravi Sarawadi | 6b5bf40 | 2019-10-21 22:25:04 -0700 | [diff] [blame] | 38 | PCI_DEVICE_ID_INTEL_TGL_AUDIO, |
rkanabar | 263f129 | 2019-11-28 10:41:45 +0530 | [diff] [blame] | 39 | PCI_DEVICE_ID_INTEL_JSP_PRE_PROD_AUDIO, |
Lijian Zhao | 7b6a8ce | 2017-10-30 14:21:31 -0700 | [diff] [blame] | 40 | 0, |
| 41 | }; |
| 42 | |
| 43 | static const struct pci_driver dsp_driver __pci_driver = { |
| 44 | .ops = &dsp_dev_ops, |
| 45 | .vendor = PCI_VENDOR_ID_INTEL, |
| 46 | .devices = pci_device_ids, |
| 47 | }; |