blob: d268893d3c75e28353263f28ecd00d505d57144b [file] [log] [blame]
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * * Copyright (C) 2016 Google Inc.
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +08005 * * Copyright (C) 2017-2018 Intel Corporation.
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -07006 *
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
21static struct device_operations dsp_dev_ops = {
Elyes HAOUAS1d191272018-11-27 12:23:48 +010022 .read_resources = pci_dev_read_resources,
23 .set_resources = pci_dev_set_resources,
24 .enable_resources = pci_dev_enable_resources,
Subrata Banik6bbc91a2017-12-07 14:55:51 +053025 .ops_pci = &pci_dev_ops_pci,
Elyes HAOUAS1d191272018-11-27 12:23:48 +010026 .scan_bus = scan_static_bus,
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -070027};
28
29static 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 Banikfb15d462017-11-27 12:14:38 +053033 PCI_DEVICE_ID_INTEL_SKL_AUDIO,
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +080034 PCI_DEVICE_ID_INTEL_CNP_H_AUDIO,
V Sowmya0873e272019-04-15 08:28:48 +053035 PCI_DEVICE_ID_INTEL_CMP_AUDIO,
Aamir Bohra9eac0392018-06-30 12:07:04 +053036 PCI_DEVICE_ID_INTEL_ICL_AUDIO,
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -070037 0,
38};
39
40static const struct pci_driver dsp_driver __pci_driver = {
41 .ops = &dsp_dev_ops,
42 .vendor = PCI_VENDOR_ID_INTEL,
43 .devices = pci_device_ids,
44};